Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
WSGI for Web Developers
https://old.reddit.com/r/Python/comments/estd97/i_gave_a_talk_about_wsgi_for_python_web_developers/ -
Dockerizing a Python Django Web Application - Semaphore Tutorial
-
how-to/deploy-a-django-app.md at feature/jfc/init-heroku-docs · datamade/how-to
-
Senior Python Developer - DC Python Meetup (Bethesda, MD) | Meetup
-
Modeling Polymorphism in Django With Python – Real Python
-
How to Implement CRUD Using Ajax and Json
-
How to set a variable in Django template - https://www.pythoncircle.com
Python Circle: How to set a variable in Django template via Instapaper https://www.pythoncircle.com/post/701/how-to-set-a-variable-in-django-template/ -
revsys/django-test-plus: Useful additions to Django's default TestCase
-
Tips for Building High-Quality Django Apps at Scale
At DoorDash, most of our backend is currently based in Django and Python. The scrappy Django codebase from our early days has evolved and matured over the years as our business has grown. To… -
revsys/django-test-plus: Useful additions to Django's default TestCase
-
joke2k/faker: Faker is a Python package that generates fake data for you.
-
GitHub - 3YOURMIND/django-migration-linter: Detect backward incompatible migrations for your django project
-
Make Django Tests Always Rebuild the Database if It Exists - Adam Johnson
-
Django : WebSockets and Channels - Sarthak Kumar - Medium
-
How to Squash and Merge Django Migrations | coderbook
-
Making React and Django play well together - Fractal Ideas
-
Migrations | Django documentation | Django
-
Maintaining a Database-per-branch for Django Development
When you are doing development on multiple branches in parallel, a simple git checkout will update your code to match any branch you like. But unfortunately... -
Maintaining a Database-per-branch for Django Development : django
News and discussion about the Django web framework. -
6. How to select some fields only in a queryset? — Django ORM Cookbook 2.0 documentation
-
GitHub - skorokithakis/django-project-template: The Django project template I use, for installation with django-admin.
-
GitHub - wsvincent/awesome-django: A curated list of awesome things related to Django
-
Django's Field Choices Don't Constrain Your Data - Adam Johnson
Adding database constraints to Django models !!!! The most general solution is to get the database itself to reject bad data. Not only will this make your Django code more robust, but any other applications using the database will use the constraints too. We can add such constraints using CheckConstraint class, added in Django 2.2. For our model, we need define and name a single filter CheckConstraint, in Meta.constraints: class Book(models.Model): status = models.CharField( max_length=2, choices=Status.choices, default=Status.UNPUBLISHED, ) def __str__(self): return f"{self.id} - {Status(self.status).label}" class Meta: constraints = [ models.CheckConstraint( check=models.Q(status__in=Status.values), name="status_valid", ) ] The Q object represents a single expression we’d pass into Model.objects.filter(). Constraints can have any amount of logic on the fields in the current model. This includes all kinds of lookups, comparisons between fields, and database functions. Running makemigrations, we get a migration that looks like this: from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0001_initial"), ] operations = [ migrations.AddConstraint( model_name="book", constraint=models.CheckConstraint( check=models.Q(status__in=["UN", "PB"]), name="status_valid" ), ), ] -
All You Need To Know About Prefetching in Django | Haki Benita
Excellent article on how to use prefetch-related INCLUDING how to make sure it is being used -
Forms — django-allauth 0.32.0 documentation