Skip to content

Commit

Permalink
Merge pull request #707 from rdmorganiser/dev-2.0.0+update_settings
Browse files Browse the repository at this point in the history
Add SITE_ID, DEBUG_TOOLBAR, ALLOWED_HOSTS, and BASE_URL to settings
  • Loading branch information
jochenklar committed Sep 19, 2023
2 parents 2f10203 + 4e65681 commit 6f29a44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -49,6 +49,7 @@ dependencies = [
"django-mptt~=0.14",
"django-rest-swagger~=2.2",
"django-settings-export~=1.2",
"django-split-settings~=1.2",
"django-widget-tweaks~=1.5",
"djangorestframework~=3.14",
"drf-extensions~=0.7",
Expand Down
8 changes: 8 additions & 0 deletions rdmo/core/settings.py
@@ -1,7 +1,13 @@
from django.utils.translation import gettext_lazy as _

SITE_ID = 1

DEBUG = False

DEBUG_TOOLBAR = False

ALLOWED_HOSTS = ['localhost', 'ip6-localhost', '127.0.0.1', '[::1]']

INSTALLED_APPS = [
# django modules
'django.contrib.admin',
Expand Down Expand Up @@ -135,6 +141,8 @@

USE_TZ = True

BASE_URL = None

LOGIN_URL = '/account/login/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL = '/account/logout/'
Expand Down

0 comments on commit 6f29a44

Please sign in to comment.