summaryrefslogtreecommitdiff
path: root/nccps2018
diff options
context:
space:
mode:
Diffstat (limited to 'nccps2018')
-rwxr-xr-xnccps2018/config.py24
-rw-r--r--nccps2018/settings.py13
-rw-r--r--nccps2018/urls.py8
-rw-r--r--nccps2018/wsgi.py10
4 files changed, 42 insertions, 13 deletions
diff --git a/nccps2018/config.py b/nccps2018/config.py
index 0522005..31b2c3c 100755
--- a/nccps2018/config.py
+++ b/nccps2018/config.py
@@ -1,7 +1,7 @@
-DB_NAME_DEFAULT = 'DBNAME'
-DB_USER_DEFAULT = 'DBUSER'
-DB_PASS_DEFAULT = 'DBPWD'
-DB_HOST_DEFAULT = 'localhost'
+DB_NAME_DEFAULT = 'nccps'
+DB_USER_DEFAULT = 'root'
+DB_PASS_DEFAULT = 'aero123'
+DB_HOST_DEFAULT = '127.0.0.1'
DB_PORT_DEFAULT = ''
########################################
GOOGLE_KEY = 'GOOGLE_KEY'
@@ -25,12 +25,20 @@ EMAIL_HOST_SERVER = 'localhost'
EMAIL_PORT_SERVER = 25
#########################################
# Optional SMTP authentication information for EMAIL_HOST.
-EMAIL_HOST_USER_SERVER = ''
+EMAIL_HOST = '127.0.0.1'
+EMAIL_PORT = '25'
+EMAIL_HOST_USER = 'your username'
+EMAIL_HOST_PASSWORD = 'your password'
+EMAIL_USE_TLS = True
+SENDER_EMAIL = 'your email address'
+PRODUCTION_URL = "http://dwsim.fossee.aero.iitb.ac.in/nccps-2018"
+ADMIN_EMAIL = ""
+EMAIL_HOST_USER_SERVER = 'localhost'
EMAIL_HOST_PASSWORD_SERVER = ''
EMAIL_USE_TLS_SERVER = False
#########################################
-ALLOWED_HOSTS = 'allowed host value'
+ALLOWED_HOSTS_VAL = ['dwsim.fossee.aero.iitb.ac.in','10.101.11.205',]
DEBUG_VAL = True
-SITE = 'SITE'
-ROOT_URL_VAL = 'root url value' #http://127.0.0.1:8000
+SITE = 'http://dwsim.fossee.aero.iitb.ac.in/nccps-2018'
+ROOT_URL_VAL = 'http://dwsim.fossee.aero.iitb.ac.in/nccps-2018' #http://127.0.0.1:8000
#########################################
diff --git a/nccps2018/settings.py b/nccps2018/settings.py
index 22d32b9..7217aa5 100644
--- a/nccps2018/settings.py
+++ b/nccps2018/settings.py
@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'widget_tweaks',
'website',
]
@@ -130,5 +131,17 @@ STATICFILES_DIRS = [
'/../static/',
]
+
LOGIN_REDIRECT_URL = '/proposal'
LOGOUT_REDIRECT_URL = '/accounts/login'
+LOG_FOLDER= os.path.join(BASE_DIR,'logs')
+
+# Email Connection Settings
+EMAIL_HOST = EMAIL_HOST
+EMAIL_HOST_USER = EMAIL_HOST_USER
+EMAIL_HOST_PASSWORD = EMAIL_HOST_PASSWORD
+EMAIL_PORT = EMAIL_PORT
+#EMAIL_USE_TLS = EMAIL_USE_TLS
+EMAIL_TIMEOUT = 300
+SENDER_EMAIL = SENDER_EMAIL
+
diff --git a/nccps2018/urls.py b/nccps2018/urls.py
index 21733fd..a688f8b 100644
--- a/nccps2018/urls.py
+++ b/nccps2018/urls.py
@@ -1,4 +1,4 @@
-"""Scipy2018 URL Configuration
+"""NCCPS2018 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
@@ -19,10 +19,10 @@ from django.contrib.auth import views as auth_views
urlpatterns = [
- re_path(r'^', include('website.urls', namespace='website')),
- re_path(r'^accounts/',
+ re_path(r'^nccps-2018/', include('website.urls', namespace='website')),
+ re_path(r'^nccps-2018/accounts/',
include(('django.contrib.auth.urls', 'auth'), namespace='auth')),
- path('admin/', admin.site.urls),
+ path('nccps-2018/admin/', admin.site.urls),
re_path(r'^', include('social.apps.django_app.urls', namespace='social')),
diff --git a/nccps2018/wsgi.py b/nccps2018/wsgi.py
index 25a3f46..f91acc6 100644
--- a/nccps2018/wsgi.py
+++ b/nccps2018/wsgi.py
@@ -8,9 +8,17 @@ https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
+import sys
-from django.core.wsgi import get_wsgi_application
+
+sys.path.append('/Sites/nccps_2018/nccps-2018')
+sys.path.insert(1, '/Sites/nccps_2018/nccps-2018')
+sys.path.insert(1, '/Sites/nccps_2018/env_nccps/lib/python3.6/site-packages')
+
+activate_this = '/Sites/nccps_2018/env_nccps/bin/activate_this.py'
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nccps2018.settings')
+from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
+