X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=django_simple%2Fsettings.py;h=1d17fda785197feeca5222d65027d01f61592c1e;hb=e965db4a237f05d8ef5d1aa56b2494d1c54c067b;hp=fddea6dd1afc72ef1c8927ce1cf74146166b55a5;hpb=591ac48194b207c02ffd7cda59c1c9709a114498;p=django_unres.git diff --git a/django_simple/settings.py b/django_simple/settings.py index fddea6d..1d17fda 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,7 @@ INSTALLED_APPS = [ 'django_simple.authentication', 'django_simple.todo', 'django_simple.directory', + 'registration', ] MIDDLEWARE_CLASSES = [ @@ -130,3 +133,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