This is a social media website built using django.
- python3.7 or higher
- pipenv
- Get it by running pip install pipenv
- Clone the repo or fork it and then clone from your profile.
- Cd into Facebook-Clone-Django
- Create a new branch by doing the following:
- git checkout -b branch_name
- Go to directory where the pipfile is and run pipenv install
- Activate pipenv by doing pipenv shell
- Go into the src folder where the manage.py sits and run the following:
- python manage.py makemigrations
- python manage.py migrate
- Create super user by doing the following:
- python manage.py createsuperuser
- Go the the folder facebook where the settings.py file sits and create a file called .env
- Add the following inside the file:
SECRET_KEY = 'secret_key_here'
- Go the folder where your manage.py sits and the following commands to run the server:
- python manage.py runserver
- Go to django admin, login and make a profile for yourself or create a new user using the form at http://localhost:8000/register/ and then your good to go with the site.
- If you created a new user, make sure your logged in with the new user while working on the project(login at http://localhost:8000/login/).
- If you made a profile for the super user from the django admin page, then your good to go.