- Python 3.8+
- Django 3.1+
- Cloudinary account
- Fork and clone the repository:
git clone https://github.com/yourusername/lookbook.git
cd lookbook
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
-
Configure Cloudinary:
-
Sign up at Cloudinary
-
Create a
.env
file in the project root and add the following. -
Update the
.env
file with your Cloudinary credentials:- Copy the API environment variable format from the API Keys page and paste it into your
.env
file. - Replace <your_api_key> and <your_api_secret> with your actual values, while your cloud name is already correctly included in the format.
- Add the following code in your
settings.py
file:
from dotenv import load_dotenv load_dotenv()
- Copy the API environment variable format from the API Keys page and paste it into your
-
-
Apply migrations and start the server:
python manage.py migrate python manage.py runserver
-
Access the application at
http://127.0.0.1:8000
.
- Fork the repository.
- Create your feature branch (git checkout -b feature/your-feature).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/your-feature).
- Open a pull request.