Skip to content

01001110J/imgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Gallery App

A Django gallery app to upload images, tag them, search by text, filter by tags, open a detail page with similar images, and manage content (edit/delete).

Tech Stack

  • Python 3.13
  • Django 6
  • SQLite (default)

Project Structure

  • manage.py: Django entrypoint
  • imgs/: Django project settings/urls
  • gallery/: Main app (models, views, templates, static, fixtures)
  • media/: Uploaded files served in development
  • sample_images/: Local sample source images (renamed from img/)

Run Locally

  1. Create and activate a virtual environment (if needed), then install dependencies:
python -m venv env
.\env\Scripts\Activate.ps1
pip install -r requirements.txt
  1. Apply migrations:
python manage.py migrate
  1. Start the development server:
python manage.py runserver
  1. Open:
  • Home: http://127.0.0.1:8000/
  • Upload: http://127.0.0.1:8000/upload/

Load Dummy Data (Fixtures)

This repository includes:

  • Fixture file: gallery/fixtures/initial_data.json
  • Source sample images: sample_images/
  • Served media copies used by fixture: media/sample_images/

Load dummy data:

python manage.py loaddata gallery/fixtures/initial_data.json

The fixture references real files from sample_images by filename (served from media/sample_images/ in development).

Important

If your current database already has rows with the same primary keys, loaddata can fail.

For a clean reset:

Remove-Item db.sqlite3
python manage.py migrate
python manage.py loaddata gallery/fixtures/initial_data.json

Then run:

python manage.py runserver

Notes

  • Drag and drop is supported in the upload view.
  • Gallery images are draggable to other browser areas/apps (URL drag payload).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors