-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotes.txt
More file actions
49 lines (35 loc) · 1.23 KB
/
Copy pathnotes.txt
File metadata and controls
49 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
47
48
49
# создание проекта
django-admin startproject mysite
# создание приложения
django-admin startapp blog
# миграция БД
python manage.py migrate / migrate --fake
# создание миграции БД
python manage.py makemigrations app_name
python manage.py makemigrations shop --name "add_translation_model"
# запуск сервера для разработки
python manage.py runserver
python manage.py runserver --settings mysite.settings
# создание суперпользователя
python manage.py createsuperuser
# создать файлы локализации
python manage.py makemessages
# скомпилировать файлы локализации
python manage.py compilemessages
# очистка сеансов
clearsessions
# построение дерева зависимостей
pipdeptree
pipenv graph
pipenv graph --reverse
pipenv check
pipenv lock
pipenv install psycopg2 --skip-lock
pipenv uninstall --all
# выгрузка списка текущих пакетов
pip freeze -> reg.txt
celery -A san_site beat -l info
celery -A san_site worker -l info -P eventlet
flower --port=5555
http://localhost:5555/tasks
pipenv - https://github.com/pypa/pipenv