forked from 42cc/FortyTwoTestTask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 876 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
MANAGE=django-admin.py
SETTINGS=fortytwo_test_task.settings
test:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) test
flake8 --exclude '*migrations*' apps fortytwo_test_task
test8:
flake8 --exclude '*migrations*' apps fortytwo_test_task
run:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) runserver
syncdb:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) syncdb --noinput
migrate:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) migrate
collectstatic:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) collectstatic --noinput
.PHONY: test syncdb migrate
load:
@echo "Loading a fixtures..."
@python manage.py shell < fixtures_load.py
req:
@echo "Installing requirements"
@pip install --exists-action=s -r requirements.txt
shell:
@echo "Running shell plus"
@python manage.py shell_plus