Git Python: 3.10, 3.11, 3.12, 3.13
Clone the repository:
git clone https://github.com/TimeTGame/Video_hosting.git
cd Video_hostingAt this point, you can install dependencies for prod, test, and dev modes. Example for prod mode:
python3 -m venv .venv
source venv/bin/activate
python3 -m pip install -r ./requirements/prod.txtTo run in other modes, use dev.txt and test.txt
At this point, you can install dependencies for prod, test, and dev modes. Example for prod mode:
python -m venv .venv
# Windows (PowerShell)
.\venv\Scripts\Activate.ps1
# Windows (cmd.exe)
.\venv\Scripts\activate.bat
python -m pip install -r ./requirements/prod.txtTo run in other modes, use dev.txt and test.txt
Go to the project directory:
cd video_hostingCopy the template.env file and rename it to .env:
cp template.env .envStarting the server:
# Windows
python manage.py migrate
python manage.py runserver
# Mac и linux
python3 manage.py migrate
python3 manage.py runserverThe test server is hosted at http://127.0.0.1:8000/.
Settings are configured through the video_hosting/.env file.