Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.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

This comment has been minimized.

Copy link
Owner Author

commented Jun 27, 2015

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
You can’t perform that action at this time.