Skip to content

sophonie-1/gallery-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Django Gallery App

A Django-based gallery web app where authenticated users can upload, edit, and delete images, organized by categories. Built with Django’s built-in authentication system and file handling.

πŸš€ Features

  • πŸ” User registration, login, and logout
  • πŸ“Έ Upload images with titles, descriptions, and categories
  • ✏️ Update and delete own images
  • πŸ“‚ Categorize images (e.g., Nature, Architecture, People)
  • πŸ§‘β€πŸ’» Users can only manage their own uploads
  • 🎨 Clean and responsive UI (Bootstrap)

πŸ› οΈ Tech Stack

  • Backend: Django 4.x+
  • Database: SQLite (default)
  • Frontend: Django Templates + Bootstrap
  • Auth: Django built-in authentication
  • Image Handling: Django ImageField, media routing

πŸ“ Project Structure

gallery_project/ β”œβ”€β”€ myapp/ # Main app (models, views, templates) β”œβ”€β”€ media/ # Uploaded images β”œβ”€β”€ static/ # Static files β”œβ”€β”€ templates/ # Shared templates β”œβ”€β”€ gallery_project/ # Django settings β”œβ”€β”€ manage.py └── requirements.txt

🧠 How It Works

  • Users can register/login to access the gallery dashboard.
  • Uploaded images are tied to the user who posted them.
  • Images are grouped into categories using a ForeignKey relationship.
  • CRUD permissions are scoped per userβ€”no editing others' images.

βš™οΈ Setup Instructions

git clone https://github.com/sophonie-1/gallery.git cd gallery

Set Up Environment:

python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows pip install -r requirements.txt

Apply Migrations

python manage.py migrate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published