-
Notifications
You must be signed in to change notification settings - Fork 0
How to set up django api
Joel Mathew Thomas edited this page Mar 25, 2025
·
6 revisions
This guide assumes that, you have already completed the steps in the guide Setting Up PyENV for this Repository. If not, do it before continuing.
pip install -r requirements.txt
sudo pacman -S redis
sudo apt-get install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
sudo systemctl start redis
sudo systemctl enable redis
sudo systemctl status redis
cd api/
celery -A backend worker --loglevel=info
daphne backend.asgi:application