summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PythonTBC/settings.py5
-rw-r--r--tbc/views.py3
2 files changed, 5 insertions, 3 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py
index 243adf0..7329074 100644
--- a/PythonTBC/settings.py
+++ b/PythonTBC/settings.py
@@ -1,23 +1,26 @@
# Django settings for PythonTBC project.
from os.path import *
+from tbc.local import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
+
ADMINS = (
('Hardik Ghaghada', 'hardik@fossee.in'),
)
MANAGERS = ADMINS
PROJDIR = abspath(dirname(__file__))
+DATABASE_PASSWORD = DB_PASS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'pythontbc', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'root',
- 'PASSWORD': 'Pyth0n321',
+ 'PASSWORD': DATABASE_PASSWORD,
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
}
diff --git a/tbc/views.py b/tbc/views.py
index 2ac4847..b89f315 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -4,6 +4,7 @@ from django.core.context_processors import csrf
from django.contrib.auth import authenticate, login, logout
from models import *
from tbc.forms import *
+from local import *
import os
import zipfile
import StringIO
@@ -14,8 +15,6 @@ from email.mime.text import MIMEText
def email_send(to,subject,msg):
s = smtplib.SMTP('smtp-auth.iitb.ac.in')
s.starttls()
- LDAP_ID = "hardythe1"
- LDAP_PWD = "H+Mghaghada"
MAIL_FROM = "textbook@fossee.in"
s.login(LDAP_ID, LDAP_PWD)
message = MIMEText(msg)