Towards django RQ
This commit is contained in:
34
app_urls/README.md
Normal file
34
app_urls/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
* Dependencies
|
||||
```
|
||||
conda create -n matitos_urls python=3.12
|
||||
conda activate matitos_urls
|
||||
pip install django psycopg[binary] django-rq
|
||||
```
|
||||
|
||||
* Environment variables
|
||||
```
|
||||
DB_NAME=${DB_NAME:-matitos}
|
||||
DB_USER=${DB_NAME:-supermatitos}
|
||||
DB_PASSWORD=${DB_NAME:-supermatitos}
|
||||
DB_HOST=${DB_NAME:-localhost}
|
||||
DB_PORT=${DB_NAME:-5432}
|
||||
|
||||
REDIS_HOST=${REDIS_HOST:-localhost}
|
||||
REDIS_PORT=${REDIS_PORT:-6379}
|
||||
```
|
||||
|
||||
* Django DB
|
||||
```
|
||||
# Generate content for models.py
|
||||
python manage.py inspectdb
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate --fake
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
# Server
|
||||
python manage.py runserver
|
||||
# Worker
|
||||
python manage.py rqworker default
|
||||
```
|
||||
Reference in New Issue
Block a user