mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-12 19:26:23 +00:00
make SITE_NAME, SECURE_BASE_URL, BASE_URL configurable from env
This commit is contained in:
@@ -49,11 +49,11 @@ TEMPLATES[0]['OPTIONS']['context_processors'].append(
|
|||||||
OPENID_CREATE_USERS = True
|
OPENID_CREATE_USERS = True
|
||||||
OPENID_UPDATE_DETAILS_FROM_SREG = True
|
OPENID_UPDATE_DETAILS_FROM_SREG = True
|
||||||
|
|
||||||
SITE_NAME = 'ivatar'
|
SITE_NAME = os.environ.get('SITE_NAME', 'ivatar')
|
||||||
IVATAR_VERSION = '0.1'
|
IVATAR_VERSION = '0.1'
|
||||||
|
|
||||||
SECURE_BASE_URL = 'https://avatars.linux-kernel.at/avatar/'
|
SECURE_BASE_URL = os.environ.get('SECURE_BASE_URL', 'https://avatars.linux-kernel.at/avatar/')
|
||||||
BASE_URL = 'http://avatars.linux-kernel.at/avatar/'
|
BASE_URL = os.environ.get('BASE_URL', 'http://avatars.linux-kernel.at/avatar/')
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = reverse_lazy('profile')
|
LOGIN_REDIRECT_URL = reverse_lazy('profile')
|
||||||
MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294
|
MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294
|
||||||
|
|||||||
Reference in New Issue
Block a user