Skip to content

Annette3125/sweet_adore_desserts

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:

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

[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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors