-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 836 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
35
36
37
38
39
40
41
42
43
44
45
.PHONY: runserver
runserver:
@echo "Starting the Django development server..."
python manage.py runserver
.PHONY: migrations
migrations:
@echo "Creating new database migrations..."
python manage.py makemigrations
.PHONY: migrate
migrate:
@echo "Applying database migrations..."
python manage.py migrate
.PHONY: app
app:
@echo "Creating a new app..."
python manage.py startapp $(name)
.PHONY: static
static:
@echo "Collecting static files..."
python manage.py collectstatic --noinput
.PHONY: admin
admin:
@echo "Creating a superuser..."
python manage.py createsuperuser
.PHONY: test
test:
@echo "Running the project's tests..."
python manage.py test
.PHONY: activate
activate:
@echo "Activating the Pipenv shell..."
pipenv shell
.PHONY: shell
shell:
@echo "Starting the Django shell..."
python manage.py shell