Skip to content

GordonFleming/SAGTAwebsite

Repository files navigation

README

Publish DockerHub image

Run the site locally for development

For production deployment configuration, refer to Deployment README

Prerequisites

  • Python 3

Quick Start Guide

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 / virtualenv -p python3 yourVenv
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