-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (35 loc) · 1.23 KB
/
justfile
File metadata and controls
46 lines (35 loc) · 1.23 KB
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
46
# Run the help command.
default: help
# List all available commands.
help:
just -l
# Git pull current and Django repository.
pull:
git pull
cd ../django && git pull
# Create `venv` if one doesn't exist.
venv-create:
test -d venv || python3 -m venv venv
# Activate `venv` and upgrade pip.
venv-upgrade-pip: venv-create
. venv/bin/activate && pip install --no-cache-dir --upgrade pip
# Activate `venv` and install requirements.
venv-install: venv-upgrade-pip
. venv/bin/activate && pip install -r requirements.txt
# Run Django management command.
manage *posargs='':
. venv/bin/activate && python src/manage.py {{ posargs }}
# Activate the development server (`runserver`).
run:
just manage runserver
# Pull code, requirements, translations, and run the server.
refresh: pull venv-install compilemessages run
# Run `show_urls` management command.
show_urls:
just manage show_urls
# Run `makemessages` management command.
makemessages *posargs='':
just manage makemessages --all --no-wrap --no-obsolete --ignore media --ignore static --ignore venv {{ posargs }}
# Run `compilemessages` management command.
compilemessages *posargs='':
just manage compilemessages --ignore media --ignore static --ignore venv {{ posargs }}