Skip to content

Repository files navigation

Sweet adore desserts logo Sweet adore desserts logo2

Sweet Adore Desserts

Welcome to Rugile's Desserts!

Delicious inspiring collection!

Installation

Create virtual environment in the project root directory:

$ python3.12 -m venv venv

Activate the virtual environment:

  • For Linux / Mac:
$ source venv/bin/activate
  • For Windows
$ .\venv\Scripts\activate

Install the required packages:

(venv) $ pip install -r requirements.txt

Running

[1] Set the environment variables:

Create a .env file in the project's root directory and add environment variables to this file.

Example .env file (placeholders):

DEBUG=True
SECRET_KEY=change-me-generate-new
ALLOWED_HOSTS=localhost,127.0.0.1
DATABASE_URL=postgres://USER:PASSWORD@localhost:5432/DBNAME

EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=your_email@gmail.com
EMAIL_USE_TLS=True
EMAIL_HOST_PASSWORD=your_app_password

UNSPLASH_API_KEY=your_unsplash_api_key

See also: .env.example

Generate a Django SECRET_KEY (optional):

python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
[2] Prepare the database:

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

[3] Run development server:

(venv) $ python manage.py runserver

Software dependencies

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.

Django-environ

  • 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.

Latest releases

v1.0.0 (2025-04-10)

API references

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.

  • URL: https://api.unsplash.com/search/photos

  • 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

About

Sweet Adore Desserts is a small e-commerce style web application for managing dessert products. Built with Django (Python) and PostgreSQL, using Django templates for the UI and basic CRUD functionality for desserts.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages