-
Notifications
You must be signed in to change notification settings - Fork 1
/
usage.txt
executable file
·32 lines (26 loc) · 892 Bytes
/
usage.txt
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
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
cd app/vueapp
npm i
npm run build
cd ../..
./manage.py collectstatic
./manage.py createsuperuser
# password must contain at least 8 characters
./manage.py runserver
First, you need to create User profile for created superuser:
go to http://localhost:8000/admin/
Click on User profiles --> Add user profile --> Select user (chose superuser name that you create before) --> Select role (Admin) --> Push Save
and create userprofile
#open new terminal tab
#install redis for mac: brew install redis
#install redis for linux: sudo apt-get install redis-server
redis-server
#open new terminal tab
source venv/bin/activate
celery -A project worker -l info
#open new terminal tab
source venv/bin/activate
celery -A project beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler