A photo-sharing app experiment
sudo apt-get update
-
Open your terminal or command prompt.
-
Change to the directory where you want to clone the Photo Sharing app. For example:
cd djangoprojects
-
Clone the repository by running the following command:
git clone https://github.com/MikeMatovu/photo-sharing.git
- Once the repository is cloned, change to the app's directory:
cd photo-sharing
- Install the required Python packages from the 'requirements.txt' file:
pip install -r requirements.txt
- Apply the database migrations to create the necessary database schema:
python manage.py migrate
Creating a superuser allows you to access the Django admin interface and manage the app's data.
-
Create a superuser by running:
python manage.py createsuperuser
-
Follow the prompts to set a username, email, and password for the superuser.
-
Start the development server by running:
python manage.py runserver
-
Open your web browser and go to http://127.0.0.1:8000/. You should see the Photo Sharing app's homepage.
-
To access the Django admin interface, go to http://127.0.0.1:8000/admin/.
-
Log in using the superuser credentials you created earlier.