$ python3.12 -m venv venv
- For Linux / Mac:
$ source venv/bin/activate
- For Windows
$ .\venv\Scripts\activate
(venv) $ pip install -r requirements.txt
Create a .env file in the project's root directory and add
environment variables to this file.
Example .env file:
DEBUG=True
SECRET_KEY=django-insecure-_aanv3ucg@3s8=v0)qzto+00i#v8e6w1(8!i3kr-n8_x28v-t^
ALLOWED_HOSTS=localhost,127.0.0.1
DATABASE_URL=postgres://username:password@localhost:5432/dbname
STATIC_ROOT=
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=name@gmail.com
EMAIL_USE_TLS=True
EMAIL_HOST_PASSWORD=oiintrsytlvjtuta
UNSPLASH_API_KEY=_23r28kZ-Tkjt_rpyTuT0QRfuiZqkxgJU0wDw9ZYcYs
See also: .env.example
Add your database credentials to the .env file, using DATABASE_URL variable.
(venv) $ python manage.py makemigrations
(venv) $ python manage.py migrate
(venv) $ python manage.py createsuperuser
Create your own superuser:
(venv) $ python manage.py createsuperuser
(venv) $ python manage.py runserver
Django – the web framework for perfectionists with deadlines. Django aims to follow Python’s "batteries included" philosophy. It ships with a variety of extra, optional tools that solve common web development problems.
Bootsrap v5.3 - powerful, extensible, and feature-packed frontend toolkit.
Django-crispy-forms -
forms have never been this crispy.
TinyMCE - adds a fully-featured, sleek and intuitive rich text editor to our app – in just a few lines of code.
- it reads key-value pairs from a .env file and can set them as environment variables. It helps in the development of applications following the 12-factor For the full list of software dependencies see requirements.txt.
v1.0.0 (2025-04-10)
This project integrates with the Unsplash API to retrieve high-quality images based on search queries. The requests library is used to send GET requests to fetch images, which are displayed on the website.
-
Method: GET
-
Parameters:
-
client_id: Your Unsplash API access key (stored in .env file).
-
query: The search term (e.g., "cake", "dessert").
-
per_page: Number of results per page (default: 10).
-
The API returns a list of images with their URLs (e.g., urls.regular) and other metadata (such as description and photographer).
For more information, visit the Unsplash API Documentation.
The MIT License (MIT)
Copyright (c) 2025

