Add codetemplates directory; add Django project template
This commit is contained in:
parent
2ea4c34811
commit
23996c860b
11 changed files with 180 additions and 0 deletions
18
codetemplates/django_project/Makefile
Normal file
18
codetemplates/django_project/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
MANAGEPY=honcho run -- env/bin/python manage.py
|
||||
|
||||
update:
|
||||
virtualenv env
|
||||
env/bin/pip install -r requirements.txt
|
||||
$(MANAGEPY) syncdb
|
||||
|
||||
migrate:
|
||||
$(MANAGEPY) migrate
|
||||
|
||||
run: update
|
||||
$(MANAGEPY) runserver 0.0.0.0:8000
|
||||
|
||||
shell: update
|
||||
$(MANAGEPY) shell
|
||||
|
||||
deploy:
|
||||
git push heroku master
|
Loading…
Add table
Add a link
Reference in a new issue