pip -h
pip install virtualenv
virtualenv env
env\Scripts\activate.bat
source env/bin/activate
pip install -r requirements.txt
- (If on Mac ) celery -A instasaw_api worker --loglevel=info
- (If on Windows) celery -A instasaw_api worker -l info --pool=solo
celery -A instasaw_api beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
-Use the env--sample to create your .env file and set it up
Make migrations
python manage.py makemigrations
Migrate
python manage.py migrate
Run the redis server .If you are on windows you have to use wsl to install redis after install redis you run but make sure you run this in another tab
redis-server
Run the Django server
python manage.py runserver
Or Use docker instead of the
docker-compose up