Skip to content

Commit

Permalink
some more common settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh4kE committed Nov 21, 2016
1 parent b01067a commit a16d29c
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions ofm_helper/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
from django.core.urlresolvers import reverse

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/

Expand Down Expand Up @@ -76,21 +76,13 @@

WSGI_APPLICATION = 'ofm_helper.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, "database", 'db.sqlite3'),
}
}


# Password validation
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
Expand All @@ -106,10 +98,6 @@
},
]


# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/

LANGUAGE_CODE = 'de-de'

TIME_ZONE = 'Europe/Berlin'
Expand Down Expand Up @@ -159,6 +147,12 @@

AUTH_USER_MODEL = 'users.OFMUser'

LOGIN_URL = reverse('core:login')
LOGIN_REDIRECT_URL = reverse('core:home')

LOGOUT_URL = reverse('core:logout')
LOGOUT_REDIRECT_URL = reverse('core:home')

USE_DISPLAY_FOR_AWS = False

PHANTOMJS_REMOTE = False

1 comment on commit a16d29c

@StegSchreck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for #90?

Please sign in to comment.