Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 794 Bytes

README.md

File metadata and controls

64 lines (43 loc) · 794 Bytes

Django/USWDS Example Project: Foundry

Just the scripts for now!

The Djando app is in design/

Setup Python Virtual Environment

python3 -m venv ./.foundry
source .foundry/bin/activate

Deactivate

deactivate

Running

source .foundry/bin/activate && python manage.py runserver

Install Django

python -m pip install Django

Project Initiation

django-admin startproject sitename
python manage.py startapp appname

Capture Packages

python -m pip freeze > requirements.txt
source .foundry/bin/activate
python manage.py createsuperuser

Database

python manage.py makemigrations
python manage.py migrate
python manage.py flush --no-input

Shell

python manage.py shell