django/django
View on GitHub ↗ ★ 91,713 Python
The Web framework for perfectionists with deadlines.
152 mentions on Hacker News by 134 people: 15 stories, 137 comments · first 2011-07-19 · latest 2026-07-27
20082026
-
…defaults to no threading [0], and just uses the plain WSGIServer instead of the threaded mixin. [0] https://github.com/django/django/blob/main/django/core/serve...
comment by shakna · 2026-07-27 · in Some more things about Django I've been enjoying -
…was using a VCS with branches before moving to git/github, and have a look at the repo history: https://github.com/django/django/commits/stable/6.0.x Yes, every commit is prefixed with the branch name. Because, unlike mercurial, git is…
comment by ezst · 2026-04-14 · in GitHub Stacked PRs -
Has it been merged into the GitHub repo? I wasn't aware of that and I don't see it here: https://github.com/django/django/tree/main/django/tasks/back...
comment by benatkin · 2025-11-29 · in A first look at Django's new background tasks -
…Martin von Löwis). In fact a limited shim layer was initially committed based on Vinay’s efforts: https://github.com/django/django/commit/5e6ded2e58597fa324c5... The team ultimately decided to use and re-export six for the convenience of…
comment by masklinn · 2025-11-20 · in What Killed Perl? -
…get with git while most other VCSes (like Mercurial, my preference) got right from the start. ¹: https://github.com/django/django/commits/stable/6.0.x
comment by ezst · 2025-10-05 · in FyneDesk: A full desktop environment for Linux written in Go -
…implementation [2] and the easiest path there is (that I can think of) a Celery wrapper =) [1] https://github.com/django/django/blob/main/django/tasks/base... [2] https://github.com/django/django/blob/main/django/tasks/back...
comment by proszkinasenne2 · 2025-09-18 · in Django 6.0 alpha 1 released -
"settings.py" is your local configuration. The global default is still Chicago: * https://github.com/django/django/blob/main/django/conf/globa...
comment by throw0101a · 2025-08-13 · in The Factory Timezone -
▲ 2
Composite primary key support lands in Djangostory by eloh · 2024-12-01 · 1 comment
-
There is an ongoing effort to include back the equivalent in core [here]( https://github.com/django/django/pull/17554 )
comment by charettes · 2024-09-02 · in Taming the beast that is the Django ORM – An introduction -
…three years ago in a one-line change.[0] Presumably the fix was already in the training data. [0] https://github.com/django/django/pull/13933
comment by mtlynch · 2024-04-09 · in AutoCodeRover: Autonomous Program Improvement -
…2: https://www.twitch.tv/j_blow 3: https://www.youtube.com/watch?v=rysgxl35EGc 4: https://github.com/django/django/blob/main/django/db/models/... 5: https://docs.djangoproject.com/en/4.2/topics/db/aggregation/
comment by imran-iq · 2023-10-04 · in Strong static typing, a hill I'm willing to die on -
…easy, thanks to Django's built-in syndication library (a feature for over 18 years at this point https://github.com/django/django/commit/944de9e9e638bc239b03... )
comment by simonw · 2023-08-19 · in Why your blog still needs RSS -
…though, it seems like the implementation supporting all this is around ~20,000 lines of Python: https://github.com/django/django/tree/main/django/db/models That doesn't strike me as a super lightweight. For comparison, all of Flask (a…
comment by lelandbatey · 2023-08-14 · in Python: Just Write SQL -
…increase those periodically (the latter part that LastPass is struggling with, per the article). https://github.com/django/django/blob/650ce967825aa192222391...
comment by 8organicbits · 2023-06-25 · in LastPass users locked out due to MFA resets -
…bcrypt, and a database library like psycopg2), but they are small and mostly self-contained. [0] https://github.com/django/django/blob/main/setup.cfg#L39-L42 [1] https://github.com/django/asgiref/blob/main/setup.cfg#L34-L3...
comment by Kwpolska · 2023-04-07 · in Building GitHub with Ruby on Rails -
…the post, but Monkey Patching core Django files is not to be taken lightly in production code. [0] https://github.com/django/django/blob/main/django/db/models/...
comment by irjustin · 2023-03-27 · in Ban 1+N in Django -
With the new GitHub code search, the first result is the DeleteView class: https://github.com/django/django/blob/bd366ca2aeffa869b7dbc0...
comment by MapleWalnut · 2023-02-06 · in The technology behind GitHub’s new code search -
…there are 0 code results. Zero. GitHub search is mystifyingly bad, I hope this is a LOT better. [0] https://github.com/django/django/search?q=DeleteView&type=co... [1] https://github.com/django/django/blob/main/django/views/gene...
comment by drcongo · 2023-02-06 · in The technology behind GitHub’s new code search -
Django is an WebFramework, Meinheld is an WSGI Server framework. https://github.com/django/django https://github.com/mopemope/meinheld So django meinheld is basically saying that i used Django served by meinheld in that benchmark.
comment by cirospaciari · 2023-01-10 · in Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3 -
…Django in a thread that can be restarted on code change [1] ; It does not keep the state in memory. https://github.com/django/django/blob/e34dfad0a310c616c7b62e...
comment by okso · 2022-11-30 · in Change Python Code While Running Without Losing State -
…> $ pip freeze | wc -l > 13 > $ pip install django psycopg2-binary > $ pip freeze | wc -l > 4 1. https://github.com/django/django/blob/60a7bd89860e504c0c33b0...
comment by orf · 2022-11-28 · in Open Source and Saying “No” -
…legendary PR to the Django docs that fixed all kinds of words that "minimize difficulty involved": https://github.com/django/django/pull/11482
comment by simonw · 2022-11-08 · in Just don’t -
GitHub says it's 97.1% python and doesn't list C. https://github.com/django/django
comment by rascul · 2022-10-29 · in Rust Web Framework Comparison -
…fire in terms of code quality. Opening random file on github: django.core.serializers.python https://github.com/django/django/blob/main/django/core/seria... - function name doesn't match pep8 - name doesn't match its behavior - docstring…
comment by vokracko · 2022-09-21 · in Ask HN: What's the best source code you've read? -
https://github.com/django/django Django's codebase is a pleasure to read. The directory structure is intuitive to navigate, and test coverage is great.
comment by umangsh · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…bug[1] referencing "for diversity reasons". Maybe there are scholarly papers on this issue? 0: https://github.com/django/django/pull/2692 1: https://bugs.python.org/issue34605
comment by judge2020 · 2022-05-11 · in D1: Our SQL database -
…to do something with Django, I just read the code [1] and then everything is easy and clear. [1]: https://github.com/django/django
comment by sirodoht · 2022-03-21 · in Ask HN: Codebases with great, easy to read code? -
….com/django/deps/blob/main/accepted/0008-black... 1: https://news.ycombinator.com/item?id=30130316 2: https://github.com/django/django/pull/15387
comment by samwillis · 2022-02-08 · in Django: Reformatted code with Black -
…doesn't support it but at least it's possible to have clients behave in a reasonable way. [1] https://github.com/django/django/pull/15387#issuecomment-103...
comment by tempay · 2022-02-08 · in Django: Reformatted code with Black -
▲ 19
Django: Reformatted code with Blackstory by collinmanderson · 2022-02-08 · 4 comments
-
▲ 284
Django: Reformatted code with Blackstory by tams · 2022-02-08 · 245 comments
-
Very true, and I have been following this pull request implementing Async Queryset with interest: https://github.com/django/django/pull/14843 So far they are only going down the the queryset level, it then uses a thread pool for the db…
comment by samwillis · 2022-02-05 · in Django Ninja – Fast Django REST Framework for Building APIs -
…while trying to maintain backward-compatibility. Here's rough code (again, from 2015): https://github.com/django/django/pull/4553 Since 2015, Django now has class-based-indexes which should make things slightly easier:…
comment by collinmanderson · 2021-11-22 · in Django 4.0 release candidate 1 released -
The API is being worked on: https://github.com/django/django/pull/14843
comment by julienpalard · 2021-11-22 · in Django 4.0 release candidate 1 released -
…well written. Fun little tidbit, Django abuses the fact that bools are ints in it's partition util: https://github.com/django/django/blob/01bf679e59850bb7b3e639...
comment by DangitBobby · 2021-10-10 · in Understanding Python through its builtins -
▲ 130
Django 4.0 will include a built-in Redis cache back endstory by stanulilic · 2021-09-17 · 58 comments
-
The patch was reverted later: https://github.com/django/django/pull/1653
comment by jwilk · 2021-07-27 · in Ask HN: Why are username and password fields limited to certain characters? -
…to be hashed. Longer the password, longer the hashing takes. Django had to patch this back in 2013: https://github.com/django/django/commit/5ecc0f828ebe270cfc92...
comment by marklit · 2021-07-27 · in Ask HN: Why are username and password fields limited to certain characters? -
…Note this [1] recommends using zip files for speed, especially for larger repositories: pip install https://github.com/django/django/archive/master.zip pip install https://github.com/django/django/archive/stable/1.7.x.zip [1]…
comment by stinos · 2021-04-08 · in How to make a Python package in 2021 -
…a small audit of Seafile years ago and I don't think that argument flies. For example, they copied https://github.com/django/django/blob/23c612199a8aaef52c3c7e... to https://github.com/haiwen/seahub/blob/b6f8935c0f355cc70145f9... and…
comment by LukasReschke · 2021-01-22 · in ownCloud Infinite Scale: Go instead of PHP, microservices instead of LAMP -
…create the Hstore extension for you [1] during migrate whenever you use a HStoreField [1] https://github.com/django/django/blob/f5e07601b233a50e6bcca4... Edit: I might've been mistaken here in thinking the above migration operation was…
comment by shangxiao · 2020-11-12 · in Migrating Large Heroku Postgres Instances to AWS Aurora Without Downtime -
…//hakibenita.com/django-rest-framework-slow . If you weren't able to update to a 3.x version that has https://github.com/django/django/commit/a2c31e12da272acc76f3... , this might have bit you pretty hard.
comment by dd82 · 2020-08-15 · in Django Async: What's new and what's next? -
…debate at all, see for example the proposal to replace master/slave with leader/follower in django: https://github.com/django/django/pull/2692
comment by m3at · 2020-07-08 · in Rust PR to replace “whitelist” with “allowlist” -
…because people have been killed and that makes some people sad when they think about it. [0] https://github.com/django/django/pull/2692
comment by rdgthree · 2020-06-20 · in GitHub plans to replace racially insensitive terms like ‘master’ and ‘whitelist’ -
…and Flask[3] implementations or my talk[4] for more details. 1. https://pypi.org/project/hupper/ 2. https://github.com/django/django/blob/master/django/utils/au... 3. https://github.com/pallets/werkzeug/blob/master/src/werkzeug... 4.…
comment by orf · 2020-06-14 · in Hot-swapping Python 3 code -
…if you want to create a list of fields and pass it into BaseForm then go for it. Most don’t. 1. https://github.com/django/django/blob/5776a1660e54a951591644...
comment by orf · 2020-06-11 · in How and why GraphQL will influence the Sourcehut alpha -
…them from themselves. Your issue can be fixed with a linter, mine can't. Look at this python code: https://github.com/django/django/blob/master/django/core/mai... In my opinion, it's rather difficult to tell where one if/else block ends,…
comment by viklove · 2020-04-13 · in YAML: Probably not so great after all (2019) -
…tps://github.com/sourcegraph/sourcegraph Spectrum - https://github.com/withspectrum/spectrum Django - https://github.com/django/django
comment by rochak · 2020-03-13 · in What are best examples of well-structured open source products to learn from? -
Hard not to love Django and djangorestframework both have very readable code and great docs. https://github.com/django/django https://github.com/encode/django-rest-framework
comment by LiamPa · 2020-02-13 · in Ask HN: What is the most readable back end framework? -
…Django, uses PBKDF2-SHA256 with 216000 iterations, for example https://github.com/django/django/blob/master/django/contrib/... Given Bitwarden allows almost 10x that, not sure I see the issue.
comment by phonon · 2019-12-16 · in A Dropbox account gave me stomach ulcers