technologies: django, django rest framework , Cloudinary and Tailwind
- Create a virtual environment
python -m venv venv
-
Activate the environment 🕹
- windows
.\venv\scripts\activate
- MacOs or Linux
source venv/bin/activate
-
install the requirements
pip install -r requirements.txt
- set values in .env
DJANGO_DEBUG=True
DJANGO_SECRET_KEY="django-secret-key"
CLOUDINARY_API_KEY="api-key"
CLOUDINARY_NAME="cloudinary-name"
CLOUDINARY_SECRET_KEY="cloudinary-secret-key"
- working dir
cd src/
- Generate DJANGO_SECRET_KEY
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
- Migrate
python manage.py migrate
- Run the server
python manage.py runserver