PHOTOSHARE
PhotoShare is a photo-sharing website where registered users can share 'Photos' and view a listing of other users' shared photos. It is built primarily on Python(Django)
- PYTHON (Django)
- CSS (Twitter Bootstrap)
- HTML
- Users can register for an account.
- Users can log in into an existing account.
- Users can reset their password to an existing account
- Users can share a photo and add captions.
- Users can update an already shared photo or its captions.
- Users can delete a Photo.
- Users can like a photo.
Visit Twitter Developer Account Website and click on Create app to create a Twitter Devlopment Account for a Bearer Token
-
Save the script in the local machine.
-
Open a terminal/command prompt and change directory location to the folder where your script is located and run the below commands
-
Create a virtual enviroment to install required package
python3 -m venv .venv /path/to/new/virtual/environment
-
Activate virtual enviroment for for your OS On Windows, run:
python3 -m venv .venv /path/to/new/virtual/environment
-
To install required packages run the below command On Unix or MacOS, run:
pip install -r requirements.txt
-
To setup database migrations
'cd' into the photoshare directory
python manage.py makemigrations
-
To execute migration
python manage.py migrate
-
To execute the script run the following command
python3 manage.py runserver --settings=settings.local
After successful execution of the script you should see the 'URL localhost link to the website' outputed in command prompt/terminal
-
![demo]