Run the site locally for development
For production deployment configuration, refer to Deployment README
- Python 3
Assuming root directory is the repo directory for every start of the scripts sections.
Create a virtual environment for development purposes
Linux
python3 -m venv virtualenv
source virtualenv/bin/activate
Windows
python -m venv sagta_env
.\sagta_env\Scripts\activate.bat
Install dependencies for development
pip install -r requirements.txt -r requirements.dev.txt
or
pip3 install --user -r requirements.txt -r requirements.dev.txt
Uncomment the DEBUG section in urls.py
Run initial manage.py command
python manage.py migrate
python manage.py collectstatic
Start Django web development server
python manage.py runserver 0.0.0.0:8080
Create Super User
python manage.py createsuperuser
Web development server will available at http://localhost:8080