Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 774 Bytes

File metadata and controls

14 lines (12 loc) · 774 Bytes

Dockerized Django stub

A starting point for dockerized Django development using Python 3 and Postgresql.

Usage

  • scripts/init_dj_project.sh PROJECT_NAME
  • docker-compose up

Scripts

  • fixperms - use to set ownership of python code to $USER
  • init_dj_app.sh APPLICATION_NAME - initialize a Django app
  • init_dj_project.sh PROJECT_NAME - initialize a Django project
  • mg PROJECT_NAME MANAGE_CMD MANAGE_ARGS - run manage.py within the container, takes project name as first argument
  • ripc COMMAND - (run in python container) runs commands in the python container
  • rpipc PROJECT_NAME - (run project in python container) serves the given python project