Photo Gallery System in Python using Django Free Source Code

Language

Photo Gallery System using Django in Python

This project is entitled Photo Gallery System. This is a web-based application developed in Python and Django Framework. This project is an online platform that allows users to upload and store their images. Users can download the exact quality and size of the image as the one that they uploaded. It has a simple user interface using the Bootstrap v5 Framework and jQuery Library for some other functionalities to give the users a better experience while using the project. The application also consists of user-friendly features and functionalities.

About the Photo Gallery System

I developed this project using the following:

  • Python
  • Django
  • SQLite3
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Django-QR-Code Library
  • Pillow Library
  • Fontawesome
  • Bootstrap v5

This Photo Gallery System Project is accessible to anyone. The system requires the user to register or to create their site credentials with some basic information. After they successfully registered, the users can simply log in to the site by logging in with their username and password. The system displays the total count of uploaded images of the user and the total items of the images that are moved into the trash. User can upload their images by clicking the upload link located at the navigation bar at the top of the screen. The upload form is being shown using a popup or modal. Uploaded images are listed on the Gallery pages and each of these has options on whether the user wants to move the image to trash or download a copy of the images. On the Trash Page, the page will display all the images that are moved to the trash and each image can be restored or permanently deleted by the user. The system also resizes the images for the thumbnails to optimize the page loads. It will only optimize the images if the image is greater than 640px x 480 px resolution.

Features

  • Login and Registration
  • Home
    • Displays the Summary of the Uploaded Images
  • Upload Image
  • Gallery Page
  • Move Image to Trash
  • Download a Copy of the Image
  • Trash Page
  • Restore Image
  • Delete Image Permanently
  • Logout

Sample Snapshots

Login Page

Photo Gallery System

Registration Page

Photo Gallery System

Home Page

Photo Gallery System

Upload Form Modal

Photo Gallery System

Gallery Page

Photo Gallery System

Trash Page

Photo Gallery System

Image Viewer Modal

Photo Gallery System

The system source code is free to download on this project and only for educational purposes only. The source code is not that so tricky which means not that difficult to understand. Feel free to download and modify the source code the way you wanted.

How to Run

Download/Install the following

  • Python (I used v3.9.1)
  • PIP (for python modules installation)

Setup/Installation

  1. Download and Extract the provided source code zip file. (download button is located below)
  2. Open your Terminal/Command Prompt window. (make sure to add "python" and "pip" in your environment variables)
  3. Change the working directory to the extracted source code folder. i.e. cd C:\Users\Personal-23\Desktop\django_pgs
  4. Run the following commands:
    • pip install -r requirements.txt
    • python manage.py migrate
    • python manage.py runserver
  5. Keep the terminals open and running.
  6. Open a web browser and browse http://localhost:8000/ or http://127.0.0.1:8000/

Note: I might forget to list some other modules/libraries. Kindly Install the missing modules if any occurred.

Access Information for AdminSite

SuperUser
Username: admin
Password: admin123

Sample User
Username: mcooper
Password: marky123

http://127.0.0.1:8000/admin for the Django's Admin Site.

DEMO VIDEO

That's it! I hope this will help you with what you are looking for. Maybe you'll find this Photo Gallery System useful and can help you with your future Python Django Projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment