X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=django_simple%2Fsettings.py;h=f594aadf095cc605a70c8607cfd9835d5f7fc91c;hb=b78a2efb7c16f4e9a880c43e3dde86905b58270a;hp=fddea6dd1afc72ef1c8927ce1cf74146166b55a5;hpb=591ac48194b207c02ffd7cda59c1c9709a114498;p=django_unres.git diff --git a/django_simple/settings.py b/django_simple/settings.py index fddea6d..f594aad 100644 --- a/django_simple/settings.py +++ b/django_simple/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os +from django.core.mail import send_mail # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -27,6 +28,7 @@ DEBUG = True ALLOWED_HOSTS = ["ha1.chem.univ.gda.pl"] +ACCOUNT_ACTIVATION_DAYS = 2 # two days # Application definition @@ -40,6 +42,8 @@ INSTALLED_APPS = [ 'django_simple.authentication', 'django_simple.todo', 'django_simple.directory', + 'registration', + 'lazysignup', ] MIDDLEWARE_CLASSES = [ @@ -53,6 +57,11 @@ MIDDLEWARE_CLASSES = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.ModelBackend', + 'lazysignup.backends.LazySignupBackend', + ) + ROOT_URLCONF = 'django_simple.urls' TEMPLATES = [ @@ -130,3 +139,13 @@ STATICFILES_DIRS = ( LOGIN_URL = '/login/' MEDIA_ROOT = './' +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +#EMAIL_USE_TLS = True +#EMAIL_PORTS = 587 +#EMAIL_HOST = 'smtp.localhost' +#EMAIL_HOST_USER = 'admin@localhost' +#EMAIL_HOST_PASSWORD = 'yourPassword' +SERVER_EMAIL = 'admin@ha1.chem.univ.gda.pl' +DEFAULT_FROM_EMAIL = 'UNRES server Admin ' + +LOGIN_REDIRECT_URL = '/' \ No newline at end of file