Skip to content
Snippets Groups Projects
Commit 2f3d74a2 authored by Odin Johan Vatne's avatar Odin Johan Vatne
Browse files

Update settings

(cherry picked from branch demo)
parent 7242e2cf
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ recommend setting up a virtual environment, using e.g. Python's `venv` module: ...@@ -17,6 +17,7 @@ recommend setting up a virtual environment, using e.g. Python's `venv` module:
* Install the required packages: `pip install -r requirements.txt` * Install the required packages: `pip install -r requirements.txt`
* Apply database migrations: `python manage.py migrate` * Apply database migrations: `python manage.py migrate`
* Optionally populate the database: `python manage.py populatedefaults` `python manage.py populatesamples` * Optionally populate the database: `python manage.py populatedefaults` `python manage.py populatesamples`
* or `python manage.py loadcsvdata test_data/[data folder]`
* Run the application: `python manage.py runserver` * Run the application: `python manage.py runserver`
* This will make the application available on port 8000; visit it by going * This will make the application available on port 8000; visit it by going
to https://localhost:8000/ in your browser. to https://localhost:8000/ in your browser.
......
...@@ -23,8 +23,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -23,8 +23,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-r0hfpfd#gt30%9tj!8@&%q2t&^m&s-qz7(o(qgj@qait@&25gc' SECRET_KEY = 'django-insecure-r0hfpfd#gt30%9tj!8@&%q2t&^m&s-qz7(o(qgj@qait@&25gc'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
#django_heroku overrides this with the correct value below
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []
...@@ -120,6 +121,7 @@ USE_TZ = True ...@@ -120,6 +121,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_ROOT = BASE_DIR / 'static'
STATIC_URL = '/static/' STATIC_URL = '/static/'
# Default primary key field type # Default primary key field type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment