Skip to content
Snippets Groups Projects

Prepare branch for testing deployment

Merged Odin Johan Vatne requested to merge deploy-test into demo
5 files
+ 22
2
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 6
2
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
"""
"""
from pathlib import Path
from pathlib import Path
 
import django_heroku
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -23,11 +24,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
@@ -23,11 +24,11 @@ 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 = []
# Application definition
# Application definition
INSTALLED_APPS = [
INSTALLED_APPS = [
@@ -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
@@ -128,3 +130,5 @@ STATIC_URL = '/static/'
@@ -128,3 +130,5 @@ STATIC_URL = '/static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_URL = '/login/'
LOGIN_URL = '/login/'
 
 
django_heroku.settings(locals())
 
\ No newline at end of file
Loading