Install bootstrap
This project is a Django application with Celery for background task processing and Redis as the message broker.
Requirements.txt
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Redis:
brew install redis
brew services start redis
Clone the repository and navigate to the project directory:
git clone <repository-url>
cd <project-directory>
Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install Python dependencies:
pip install -r Requirements.txt
Run database migrations:
python manage.py migrate
Start the Django development server:
python manage.py runserver
Start Celery worker:
celery -A GenZ worker -l info
Install Redis:
sudo apt update
sudo apt install redis-server
sudo systemctl enable redis-server.service
sudo systemctl start redis-server.service
Clone the repository and navigate to the project directory:
git clone <repository-url>
cd <project-directory>
Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install Python dependencies:
pip install -r Requirements.txt
Run database migrations:
python manage.py migrate
Start the Django development server:
python manage.py runserver
Start Celery worker:
celery -A GenZ worker -l info
Install Redis:
redis-server.exe
.Clone the repository and navigate to the project directory:
git clone <repository-url>
cd <project-directory>
Create and activate a virtual environment:
python -m venv .venv
.venv\Scripts\activate
Install Python dependencies:
pip install -r Requirements.txt
Run database migrations:
python manage.py migrate
Start the Django development server:
python manage.py runserver
Start Celery worker:
celery -A GenZ worker -l info
Ensure the following settings are present in your settings.py
:
# Celery settings
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'UTC'