- Clone the repository:
git clone https://github.com/username/bookshop.git
cd bookshop
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # for Linux/Mac
venv\Scripts\activate # for Windows
- Install dependencies:
pip install -r requirements/dev.txt # install development dependencies
pip install -r requirements/prod.txt # install production dependencies
- Create .env file:
DEBUG=true
SECRET_KEY="your_key_12345"
- Apply migrations:
python manage.py migrate
- Create superuser:
python manage.py createsuperuser
- Run the server:
python manage.py runserver