https://github.com/paudelgaurav/django_q_example
Example repo demonstrating use case of django_q.
https://github.com/paudelgaurav/django_q_example
asynchronous-tasks django python
Last synced: 4 months ago
JSON representation
Example repo demonstrating use case of django_q.
- Host: GitHub
- URL: https://github.com/paudelgaurav/django_q_example
- Owner: paudelgaurav
- Created: 2022-07-30T14:48:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-17T11:08:16.000Z (over 3 years ago)
- Last Synced: 2025-03-25T16:22:49.765Z (about 1 year ago)
- Topics: asynchronous-tasks, django, python
- Language: Python
- Homepage: https://paudelgaurav.github.io/gblog/async-with-django_q/
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example Django project demonstrating usecase of django_q
### How to run ?
##### Pull the code from the server.
##### Create virtual Environment
```sh
python3 -m venv .venv
```
##### Activate virtual Environment
```sh
source .venv/bin/activate
```
##### Install requirements
```sh
pip install poetry
poetry install
```
##### Migrate model to database
go inside project folder and make sure environment is activated
```sh
python manage.py migrate
```
##### Run redis with docker
```sh
docker run --name redis-server -d redis
```
##### Run django_q cluster
```sh
python manage.py qcluster
```
##### Run project
```sh
python manage.py runserver
```