Merge pull request #163 from chrisfranklin/patch-3

Fix quote marks in common config to be consistent.
This commit is contained in:
Fábio C. Barrionuevo da Luz 2014-12-15 01:22:25 -03:00
commit 214f9cfdf7

View File

@ -85,7 +85,7 @@ class Common(Configuration):
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
# Note: This key only used for development and testing. # Note: This key only used for development and testing.
# In production, this is changed to a values.SecretValue() setting # In production, this is changed to a values.SecretValue() setting
SECRET_KEY = "CHANGEME!!!" SECRET_KEY = 'CHANGEME!!!'
# END SECRET CONFIGURATION # END SECRET CONFIGURATION
# FIXTURE CONFIGURATION # FIXTURE CONFIGURATION
@ -149,8 +149,8 @@ class Common(Configuration):
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
TEMPLATE_CONTEXT_PROCESSORS = ( TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
"allauth.account.context_processors.account", 'allauth.account.context_processors.account',
"allauth.socialaccount.context_processors.socialaccount", 'allauth.socialaccount.context_processors.socialaccount',
'django.core.context_processors.debug', 'django.core.context_processors.debug',
'django.core.context_processors.i18n', 'django.core.context_processors.i18n',
'django.core.context_processors.media', 'django.core.context_processors.media',
@ -211,25 +211,25 @@ class Common(Configuration):
# AUTHENTICATION CONFIGURATION # AUTHENTICATION CONFIGURATION
AUTHENTICATION_BACKENDS = ( AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend", 'django.contrib.auth.backends.ModelBackend',
"allauth.account.auth_backends.AuthenticationBackend", 'allauth.account.auth_backends.AuthenticationBackend',
) )
# Some really nice defaults # Some really nice defaults
ACCOUNT_AUTHENTICATION_METHOD = "username" ACCOUNT_AUTHENTICATION_METHOD = 'username'
ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
# END AUTHENTICATION CONFIGURATION # END AUTHENTICATION CONFIGURATION
# Custom user app defaults # Custom user app defaults
# Select the correct user model # Select the correct user model
AUTH_USER_MODEL = "users.User" AUTH_USER_MODEL = 'users.User'
LOGIN_REDIRECT_URL = "users:redirect" LOGIN_REDIRECT_URL = 'users:redirect'
LOGIN_URL = "account_login" LOGIN_URL = 'account_login'
# END Custom user app defaults # END Custom user app defaults
# SLUGLIFIER # SLUGLIFIER
AUTOSLUG_SLUGIFY_FUNCTION = "slugify.slugify" AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'
# END SLUGLIFIER # END SLUGLIFIER
# LOGGING CONFIGURATION # LOGGING CONFIGURATION