LowFAT is a moderately extended and styled Django website. Its core dependencies are Python and SQLite3, all other dependencies including Django itself are managed using pip in a Python virtual environment.

Dependencies

  • Python >= 3.8
  • Django == 3.2
  • SQLite 3

Using your preferred package management system ensure Python and Django are installed. We use venv for python environments, other environment managers e.g. Conda may also work but are not documented here.

Initialization

Only run the following commands after you clone this repository or when you pull new commits.

Need to get CSS files, create local database, and load “static” pages.

To create a development server

python3 -m venv .venv
source .venv/bin/activate
pip3 install wheel
pip3 install -r requirements.txt
cp .env_template .env
# Add the Secret key to .env
# add 'DEBUG=True' to .env
bash bootstrap.sh
python3 manage.py loaddata lowfat/fixtures/*.json
bash entrypoint.sh
python3 manage.py createsuperuser
python3 manage.py runserver

Super User

To create superuser:

$ python3 manage.py createsuperuser

Run

$ python3 manage.py runserver

You should now be able to see output as below:

Performing system checks...

System check identified no issues (0 silenced).
January 06, 2017 - 11:19:37
Django version 1.10.4, using settings 'lowfat.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

You will now be able to see the FAT development server using any web browser at the link mentioned in your output above i.e. http://127.0.0.1:8000/.