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/Thuotracy/gallery-app.git
or download a zip file of the project from github
Navigate to the project directory
cd 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 a tracy 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
There are no known bugs at the moment
MIT license © 2022 Tracy
- Clone the repository
- Make changes and write tests
- Push changes to github
- Create a pull request