Django¶
These are just things I always find myself looking up, so I try to make some notes of the most important parts that I can refer back to.
Contents:
- Admin
- Applications
- Celery
- Getting Started Using Celery for Scheduling Tasks
- django-compressor
- Data fixtures
- Databases
- Django Debug Toolbar
- Draft Blog Post: Using the django-celery-beat scheduler with Django and Celery
- Dokku
- Dokku server administration
- Files
- Postgres with Dokku
- SSL for Dokku (Letsencrypt etc.)
- Environment variables
- Static files
- Django media
- Simple hostnames
- Zero downtime deploys
- Behind a load balancer
- Run a command
- Running other daemons (like Celery)
- Secrets
- Logs
- Deploying from private git repos
- Deploying non-master branch
- Developing with multiple remote apps
- Customizing nginx config
- Logging to papertrail
- Adding Sentry service
- Django REST Framework - Serializers
- Dump (Export) Django data
- Elastic Beanstalk with Django
- Fabric
- Filtering and Pagination with Django
- Forms
- Quick And Dirty Home Page
- Logging
- Django login and logout
- Middleware
- Migrations
- NGINX
- Permissions
- Developing Django apps in PyCharm
- Queries and Querysets
- Security
- Sentry on a Django site
- Settings
- Static Files in Django
- Templates
- Testing
- Translation
- URLs
- Django with Vue
Misc to file:
Avoid circular imports:
from django.db.models import get_model
MyModel = get_model('applabel', 'mymodelname'.lower())