Skip to content

Instantly share code, notes, and snippets.

@regqueryvalueex
Last active July 23, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save regqueryvalueex/b04118f11d1394f8d53a to your computer and use it in GitHub Desktop.
Save regqueryvalueex/b04118f11d1394f8d53a to your computer and use it in GitHub Desktop.
.PHONY: reload test syncdb migrate
MANAGE=`pwd`/credio/manage.py
SETTINGS='core.settings.local'
update:
@git stash
@git pull
@make req
@make collectstatic
@make migrate
touch reload_project
reload:
@make collectstatic
touch reload
test:
cd credio &&\
DJANGO_SETTINGS_MODULE=$(SETTINGS) ./manage.py test
#flake8 --exclude '*migrations*' apps fortytwo_test_task
run:
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) runserver 0.0.0.0:8880
_makemigrations:
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) makemigrations
migrate:
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) migrate
collectstatic:
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) collectstatic --noinput
req:
@echo "Installing requirements"
@pip install --exists-action=s -r requirements.txt
@regqueryvalueex
Copy link
Author

Important!

You must use tabs instead of spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment