GordonFleming / SAGTAwebsite

Website for SAGTA using Wagtail CMS

Home Page:https://sagta.org.za

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Website for SAGTA using Wagtail CMS

https://sagta.org.za


Languages

Language:Python 50.7%Language:HTML 37.4%Language:CSS 9.9%Language:JavaScript 1.3%Language:Dockerfile 0.5%Language:Makefile 0.1%Language:Shell 0.1%