Skip to content

yoshitakameguro/docker-django-gunicorn-nginx-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO

Dependence

Get Started

$ docker-compose up --build

Development

Commands

create a django app

$ docker exec python ./manage.py startapp {app_label}

create models from existing database

$ docker exec python ./manage.py inspectdb > {path/to/models.py}

execute migration

$ docker exec python ./manage.py migrate

create a migration file

$ docker exec python ./manage.py makemigrations

create dump fixture files

$ docker exec python ./manage.py dumpdata {app_label.model} --indent 2 > {path/to/fuxture.json}

load data from fixture files

$ docker exec python ./manage.py loaddata --verbosity 2 > {path/to/fuxture.json}

create an admin account

$ docker exec -it python ./manage.py createsuperuser

About

Dockerized django(python alpine), gunicorn(python alpine), nginx alpine, and mysql environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published