Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 834 Bytes

File metadata and controls

28 lines (27 loc) · 834 Bytes

Django

  • Follow the official Django Docker Compose article
    • cd django
    • Generate the server boilerplate code
      docker-compose run web django-admin startproject composeexample .
    • Fix upstream import bug and whitelist all hosts/localhost
      $ vim composeexample/settings.py
      import os
      ...
      ALLOWED_HOSTS = ["*"]
    • Profit
      docker-compose up
    • Optional: Comment out Django exclusions for future commits
      • Assumed if extracting Django boilerplate from template and creating a new repo
      # .gitignore
      # ETC
      # django/composeexample/
      # django/data/
      # django/manage.py