-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 1.17 KB
/
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
35
36
37
38
39
install:
pip install -r requirements.txt
build:
python manage.py migrate
python manage.py createsuperuser
load_data:
python manage.py loaddata planets.json
python manage.py loaddata people.json
python manage.py loaddata species.json
python manage.py loaddata transport.json
python manage.py loaddata starships.json
python manage.py loaddata vehicles.json
python manage.py loaddata films.json
serve:
python manage.py runserver
dump_data:
python manage.py dumpdata resources.planet > resources/fixtures/planets.json --indent 4
python manage.py dumpdata resources.people > resources/fixtures/people.json --indent 4
python manage.py dumpdata resources.species > resources/fixtures/species.json --indent 4
python manage.py dumpdata resources.starship > resources/fixtures/starships.json --indent 4
python manage.py dumpdata resources.vehicle > resources/fixtures/vehicles.json --indent 4
python manage.py dumpdata resources.transport > resources/fixtures/transport.json --indent 4
python manage.py dumpdata resources.film > resources/fixtures/films.json --indent 4
drop_db:
python manage.py flush
test:
python manage.py test
clear_cache:
python manage.py clear_cache