BIN_GALLERY is a picture gallery made with a Django application that allows user to display own photos for others to view.
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
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
Install django
pip install django
Create django project
django-admin startproject gallery.
create an app
django-admin startapp news
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
To install the requirements from requirements.txt
file,
pip install -r requirements.txt
Making migrations on postgres using django
python manage.py makemigrations gallery
then run the command below;
python manage.py migrate
To run the application on your development machine,
python3 manage.py runserver
- Django
- Python
- Html
- Css
- Bootstrap3
- Django-Admin
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.
There are no known bugs at the moment
MIT license © 2021
- Clone the repository
- Make changes and write tests
- Push changes to github
- Create a pull request