Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 959 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 959 Bytes

Example disco Django Postgres Site

See the documentation here


how to run locally

first time

  • make a copy of the .env.example file and call the copy .env
  • fill out the DJANGO_SECRET_KEY value in .env with a random secret-ish string
  • setup a local postgres database and point to it in .env
    • on macs, we suggest using Postgres.app
    • you can also use Postico to manage your local databases
    • the DATABASE_URL value in .env should look like postgresql://USER@localhost:5432/SOMEDB where USER is your username on your local computer and SOMEDB is the name of the database you created.
  • then, run:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate

every time

source venv/bin/activate
python manage.py runserver