Twitter clone project.
-
Make local instance of the project:
git clone https://github.com/bitcamp-ge/twitter-clone-py-t1
-
Change directory into the project:
cd twitter-clone-py-t1
-
Create a Python environment:
python -m venv venv
-
Activate Python environment
-
Install Python dependencies:
pip install -r requirements.txt
-
Make Django migration:
python manage.py makemigrations
-
Run Django migrations:
python manage.py migrate
-
Load initial database:
python manage.py loaddata initial_data.json
-
Start the Django server:
python manage.py runserver localhost:8000
- Superuser username:
root
- Superuser password:
root
- bash/zsh -
source ./venv/bin/activate
- fish -
source ./venv/bin/activate.fish
- csh/tcsh -
source ./venv/bin/activate.csh
- PowerShell
-
- Enable script execution -
Set-ExecutionPolicy RemoteSigned
- Enable script execution -
-
- Run activation script -
.\venv\Scripts\Activate.ps1
- Run activation script -
- cmd.exe -
.\venv\Scripts\activate.bat