Git Product home page Git Product logo

image-gallery's Introduction

Python

Django Image Gallery

A simple Image Gallery made with Python and Django.

Description

Django Image Gallery is a platform where users can register and then upload their images. These images can be viewed by anyone. Accepted Image Formats : JPEG, JPG, PNG, GIF

Installation and Dependencies

After cloning the repository on your machine move into the src\ directory and install the dependencies by pip install requirements.txt

Create two directories media_cdn\ and static_cdn\ outside the src\ directory.

Connecting to database:

Create a database with name "imagesDB" and set the database settings in the settings file.

Starting the App

from the src\ directory run the following commands:

~/src$ python manage.py makemigrations
~/src$ python manage.py migrate
~/src$ python manage.py collectstatic
~/src$ python manage.py createsuperuser

then enter the details which will be asked, like username, email and password.

Now the app is fully setup. Run the following command to start the app in your browser:

~/src$ python manage.py runserver

Now just go to http://127.0.0.1:8000 in your browser to access the app. You can also go to http://127.0.0.1:8000/admin in your browser and login with your 'superuser' credentials (created in previous step) to access the admin panel.

Features

  • Users can register for a new account.
  • Users can login and upload images on behalf of themselves.
  • Users can upload multiple images at a time (Max=10).
  • Users can give title and description to the images.
  • Users can view the images (with or without login).
  • Users can delete their own images.

Development

This project was made as a screening task for the FOSSEE Fellowship 2019 Collaborative Communities

image-gallery's People

Watchers

James Cloos avatar Samad (Sam) avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.