NGL viewer min md no login
[django_unres.git] / django_simple / settings.py
index fddea6d..f594aad 100644 (file)
@@ -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 <admin@ha1.chem.univ.gda.pl>'
+
+LOGIN_REDIRECT_URL = '/'
\ No newline at end of file