TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Must-have Django packages

154 点作者 rule30超过 11 年前

15 条评论

falcolas超过 11 年前
Interesting, my fairly large django project uses none of those. Instead, the addons we consider to be critical are these these:<p><pre><code> django-debreach django-redis jinja2 pytz </code></pre> Redis for queues and caching, debreach to secure the CSRF tokens and vary your content length to avoid the BREACH vulnerability. jinja2 for doing templates outside of returning data, and pytz so you can use timezones in your data models.<p>I also recommend installing `flup` and running via fastcgi, but that&#x27;s open to interpretation.
评论 #7032184 未加载
评论 #7033721 未加载
sdfjkl超过 11 年前
Amusingly, my must-have Django packages are mostly things that replace large chunks of Django (Jinja2 for templates, a DB connector&#x2F;ORM for whatever database the project needs, which even for PostgreSQL is often plain SQLAlchemy).<p>I guess I&#x27;ll just use flask.py or something for my next project. This is not meant as criticism, just my personal experience.
评论 #7032431 未加载
评论 #7035783 未加载
belluchan超过 11 年前
Django guardian&#x27;s performance is ridiculously bad. Better roll your own. We&#x27;re using it and stuck with it at this point, but some of our page loads have thousands of queries because of all the permission lookups. Permissions probably need to be cached in memory.
famousactress超过 11 年前
Notable omission of South ( <a href="http://south.aeracode.org/" rel="nofollow">http:&#x2F;&#x2F;south.aeracode.org&#x2F;</a> )
评论 #7033294 未加载
michaelmior超过 11 年前
&quot;Must-have&quot; anything always feels like clickbait to me.
评论 #7031621 未加载
评论 #7031622 未加载
aikii超过 11 年前
Cripsy forms, because simple things like adding the necessary markup for bootstrap to forms is super-boring otherwise ; in general, it helps with custom form layout, which is usually a template maintenance hell<p><a href="https://github.com/maraujop/django-crispy-forms" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;maraujop&#x2F;django-crispy-forms</a>
dkoch超过 11 年前
I&#x27;ve found django-allauth a bit friendlier than django-social-auth, and it covers registration of local accounts in one package.
评论 #7031960 未加载
评论 #7034902 未加载
评论 #7033517 未加载
mixmastamyk超过 11 年前
Everyone recommends the django-toolbar for spotting slowdowns in your SQL... ok, installed it. I almost never see any tips on how to actually do that though. What now?<p>(I suppose the SQL part of my app is not the problem though, rather the number crunching that happens on the data returned. I do lots of caching on the results instead to make the site seem responsive.)
评论 #7033289 未加载
评论 #7032631 未加载
reinhardt超过 11 年前
I&#x27;ve been away from the Django ecosystem for the last few years.. how is Pinax doing these days?
评论 #7034483 未加载
TheMakeA超过 11 年前
What are people using these days for compiling their static assets (js minification + concatenation, etc)? We have been using django-pipeline but it has been a nightmare.
评论 #7032296 未加载
评论 #7032420 未加载
评论 #7033339 未加载
评论 #7033415 未加载
评论 #7031991 未加载
评论 #7032399 未加载
评论 #7033195 未加载
评论 #7032042 未加载
评论 #7031934 未加载
评论 #7032319 未加载
评论 #7034877 未加载
porter超过 11 年前
What about South?
评论 #7031640 未加载
评论 #7031455 未加载
glynjackson超过 11 年前
A few I work with on most projects are...<p>Backend: one of the most popular API Frameworks is Tastypie. Authentication and authorization: Django Userena. Debugging: Django Extensions. Django CMS Django Haystack<p>These are a must for your tool kit.
评论 #7033575 未加载
collyw超过 11 年前
I currently use Tasypie.<p>Would I gain anything switching to Django REST framework?
评论 #7031499 未加载
评论 #7031641 未加载
评论 #7031515 未加载
bonemachine超过 11 年前
Wow, man. That&#x27;s a lot of boilerplate.
waterlion超过 11 年前
&quot;Django REST framework is an insane framework&quot;<p>I&#x27;m fed up with this kind of oppressive language. This is heteronormative and is discriminatory to the mentally ill. It&#x27;s stuff like this that leads to the imbalance and under-representation in the industry. Let&#x27;s boycott this author.<p>(I would love not to have to write &quot;&lt;&#x2F;satire&gt;&quot; but having seen some of the comments here, I think I need to. I wonder how many white-knights-for-women use language like this without thinking. We need some flexibility in the way people are allowed to express themselves.)
评论 #7032312 未加载
评论 #7032001 未加载
评论 #7032467 未加载
评论 #7034915 未加载
评论 #7032935 未加载
评论 #7032135 未加载