Skip to content

Binamin-hussein100/Gallery

Repository files navigation

Bin_Gallery

Author

Description

BIN_GALLERY is a picture gallery made with a Django application that allows user to display own photos for others to view.

Setup Instructions:

Requirements

1. Clone the repository

Clone the the repository by running

git clone https://github.com/Binamin-hussein100/Gallery.git

or download a zip file of the project from github

Navigate to the project directory

cd Personal-django-gallery
2. Create a virtual environment

Install Virtualenv

python3 -m venv venv

To create a virtual environment named virtual, run

python3 -m venv Virtual

To activate the virtual environment we just created, run

source virtual/bin/activate
3. Create a django and create django projects

Install django

pip install django

Create django project

django-admin startproject gallery.

create an app

django-admin startapp news
5. Create a database

You'll need to create a new postgress database, Type the following command to access postgress

 $ psql

Then run the following query to create a new database named picha

# create database picha
4.Install dependencies

To install the requirements from requirements.txt file,

pip install -r requirements.txt
5.Create Database migrations

Making migrations on postgres using django

python manage.py makemigrations gallery

then run the command below;

python manage.py migrate
6.Run the app

To run the application on your development machine,

python3 manage.py runserver

Technologies Used

  • Django
  • Python
  • Html
  • Css
  • Bootstrap3
  • Django-Admin

User stories

As a user I should be able to:

  • View different photos that interest me.
  • Click on a single photo to expand it and also view the details of the photo. The photo details must appear on a modal within the same route as the main page.
  • Search for different categories of photos. (ie. Sports, Food)
  • View photos based on the location they were taken.

Bugs

There are no known bugs at the moment

License

License

MIT license © 2021

Collaboration Information

  • Clone the repository
  • Make changes and write tests
  • Push changes to github
  • Create a pull request

Contacts

binamin.h.hassan14@gmail.com

About

A web app where the user add image as an admin. Deployed on heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published