Shosen tube videos modules
_This document will be using the following
Please make sure
git
,python
,postgresql
and is installed in the system.NOTE for Windows users: Please use
Git Bash
for the following steps
-
- git clone https://github.com/cseshahriar/onnorokom-pathshala-videos.git
- cd dir_name
- Create folders for
logs
, andmedia
. - Copy
local_settings.example
tolocal_settings.py
. - Update
local_settings.py
with propersettings
, includingdatabase
.
mkdir -p logs && mkdir -p media/uploads cp examples/local_settings.example app/local_settings.py nano app/local_settings.py # edit local_settings.py DB_NAME = 'db_name' DB_USER = 'db username' DB_PASS = 'db password'
-
- cd project root dir
- python3 -m venv venv
- source venv/bin/active
- pip3 install -r requirements.txt
- Run
python manage.py makemigrations
andpython manage.py makemigrations migrate
. - Run
python manage.py tests
- Create superuser to access the admin panel
python manage.py createsuperuser
. - Run django
python manage.py runserver 127.0.0.1:8001
to view the project or application.
NOTE: Browse to http://127.0.0.1:8001/ to view the site. Admin site is at url /manage changed from default to keep the project secure. Admin url can be changed in
settings.py
-->ADMIN_URL