HemingwayLee / django-deployment-cheatsheet

Few examples of running django with nginx and uWSGI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django (production) deployment cheatsheet

  • Django comes with a lightweight web server (e.g., in this example). Do not use it in production environment, ref
    • Security reasons
    • It is single thread

Solution

  • Setting up Django with uWSGI and nginx

Other tips

Don't put virtualenv directory into git repo, ref

  • Use requirements.txt

Commit migrations folder to git

  • it will create conflicts
  • just run python manage.py makemigrations and python manage.py migrate on the server

About

Few examples of running django with nginx and uWSGI


Languages

Language:Python 74.0%Language:Dockerfile 11.7%Language:HTML 9.6%Language:Shell 4.7%