Photo-gallery is a platform where users can display their photos for others to see, they can share the photos by coping the photo link and also add different categories of photo. Their friends can like the photos too.
- Text Editor
- Install python
- Install and activate virtual
- Setup Database
- Install Django
sudo apt-get install python3.6
.python --version
to confirm that python has been installed.
cd your preferred directory
=>cd Desktop
git clone https://github.com/IreneMercy/Photo-Gallery
.
atom . or code .
, according to the type of your text editor.
cd Photo-Gallery
.
python3.6 -m venv virtual
, check your project to confirm you have a folder called virtual,- then activate it by running
source virtual/bin/activate
pip install -r requirements.txt
That will install all packages including Django.
python3.6
,import django
- And lastly
django.get_version()
to see and confirm the version of django installed. - You can then
ctrl z
to get out of the shell,
python3 manage.py runserver
to run the project.- Then click the local host link given to open the project on a browser
http://127.0.0.1:8000/
.