-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommands
31 lines (25 loc) · 1.28 KB
/
commands
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
CREATE LOCALE TRANSLATION FILE:
django-admin makemessages --ignore="static" --ignore=".env" --ignore="bin" --ignore="include" --ignore="lib" --ignore="lib64" --ignore="share" --ignore=".gitignore" --ignore="quidelines-ideas" --ignore="db.sqlite3" -l da
COMPILE GENERATE TRANSLATION:
django-admin compilemessages
django-admin compilemessages --ignore venv --ignore bin --ignore include --ignore share --ignore quidelines-ideas --ignore pyvenv.cfg --ignore db.sqlite3 --ignore lib --ignore lib64 --ignore static --ignore .env --ignore .gitignore
CELERY:
celery -A mobiletilbud beat -l info
celery -A mobiletilbud worker -l info
systemctl stop redis # First stop the redis and then start it
redis-server
celery -A mobiletilbud beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
GIT
git -c user.name=faisalakhlaq -c [email protected] stash create
git commit -a --allow-empty-message -m ''
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Datadump for whole database
python manage.py dumpdata > datadump.json
For an app
python manage.py dumpdata core > admin.json
For a specific table
python manage.py dumpdata admin.logentry > logentry.json
Load Data
python manage.py loaddata datadump.json
django-admin loaddata datadump.json