Browse files

Add a local_settings.example file to make it easier to play with sett…

…ings in the example.
  • Loading branch information...
1 parent 782975d commit b4ce84c5ba22610b7e5b65f2d53823f2ba6e88ad @terrycojones terrycojones committed Sep 3, 2012
Showing with 89 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +83 −0 example/local_settings.example
  3. +5 −0 example/settings.py
View
1 .gitignore
@@ -7,3 +7,4 @@ docs/_build
build
dist
django_allauth.egg-info
+example/local_settings.py
View
83 example/local_settings.example
@@ -0,0 +1,83 @@
+# django-allauth Configuration variables you might like to change.
+#
+# DO NOT CHANGE THIS FILE. Instead, copy it to local_settings.py
+# and make your changes there.
+
+
+# Specifies the login method to use -- whether the user logs in by entering
+# his username, e-mail address, or either one of both. Possible values
+# are 'username' | 'email' | 'username_email'
+# ACCOUNT_AUTHENTICATION_METHOD
+
+# The URL to redirect to after a successful e-mail confirmation, in case no
+# user is logged in. Default value is settings.LOGIN_URL.
+# ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL
+
+# The URL to redirect to after a successful e-mail confirmation, in case of
+# an authenticated user. Default is settings.LOGIN_REDIRECT_URL
+# ACCOUNT_EMAIL_CONFIRMATION_AUTHENTICATED_REDIRECT_URL
+
+# Determines the expiration date of email confirmation mails (# of days).
+# ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 3
+
+# The user is required to hand over an e-mail address when signing up.
+# ACCOUNT_EMAIL_REQUIRED = False
+
+# After signing up, keep the user account inactive until the e-mail address
+# is verified.
+# ACCOUNT_EMAIL_VERIFICATION = False
+
+# Subject-line prefix to use for email messages sent. By default, the name
+# of the current Site (django.contrib.sites) is used.
+# ACCOUNT_EMAIL_SUBJECT_PREFIX = '[Site] '
+
+# A string pointing to a custom form class (e.g. 'myapp.forms.SignupForm')
+# that is used during signup to ask the user for additional input
+# (e.g. newsletter signup, birth date). This class should implement a
+# 'save' method, accepting the newly signed up user as its only parameter.
+# ACCOUNT_SIGNUP_FORM_CLASS = None
+
+# When signing up, let the user type in his password twice to avoid typ-o's.
+# ACCOUNT_SIGNUP_PASSWORD_VERIFICATION = True
+
+# Enforce uniqueness of e-mail addresses.
+# ACCOUNT_UNIQUE_EMAIL = True
+
+# A callable (or string of the form 'some.module.callable_name') that takes
+# a user as its only argument and returns the display name of the user. The
+# default implementation returns user.username.
+# ACCOUNT_USER_DISPLAY
+
+# The user is required to enter a username when signing up. Note that the
+# user will be asked to do so even if ACCOUNT_AUTHENTICATION_METHOD is set
+# to email. Set to False when you do not wish to prompt the user to enter a
+# username.
+# ACCOUNT_USERNAME_REQUIRED = True
+
+# render_value parameter as passed to PasswordInput fields.
+# ACCOUNT_PASSWORD_INPUT_RENDER_VALUE = False
+
+# An integer specifying the minimum password length.
+# ACCOUNT_PASSWORD_MIN_LENGTH = 6
+
+# The admin email address displayed to the user following sign-up, so the
+# user knows who to contact if their email address verification does not
+# arrive.
+# CONTACT_EMAIL = 'support@example.com'
+
+# Request e-mail address from 3rd party account provider? E.g. using OpenID
+# AX, or the Facebook 'email' permission.
+# SOCIALACCOUNT_QUERY_EMAIL = ACCOUNT_EMAIL_REQUIRED
+
+# Attempt to bypass the signup form by using fields (e.g. username, email)
+# retrieved from the social account provider. If a conflict arises due to a
+# duplicate e-mail address the signup form will still kick in.
+# SOCIALACCOUNT_AUTO_SIGNUP = True
+
+# Enable support for django-avatar. When enabled, the profile image of the
+# user is copied locally into django-avatar at signup. Default is
+# 'avatar' in settings.INSTALLED_APPS.
+# SOCIALACCOUNT_AVATAR_SUPPORT
+
+# Dictionary containing provider specific settings.
+# SOCIALACCOUNT_PROVIDERS
View
5 example/settings.py
@@ -168,3 +168,8 @@
},
}
}
+
+try:
+ from local_settings import *
+except ImportError:
+ pass

0 comments on commit b4ce84c

Please sign in to comment.