summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscipy2017/settings.py6
-rwxr-xr-xwebsite/urls.py8
-rwxr-xr-xwebsite/views.py14
3 files changed, 15 insertions, 13 deletions
diff --git a/scipy2017/settings.py b/scipy2017/settings.py
index 0d85e28..447492f 100755
--- a/scipy2017/settings.py
+++ b/scipy2017/settings.py
@@ -93,6 +93,8 @@ STATICFILES_DIRS = (
ROOT_URLCONF = 'scipy2017.urls'
+URL_ROOT = '/'
+
WSGI_APPLICATION = 'scipy2017.wsgi.application'
@@ -105,8 +107,8 @@ DATABASES = {
'NAME': DBNAME, # Or path to database file if using sqlite3.
'USER': DBUSER,
'PASSWORD': DBPWD,
- 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
- 'PORT': '',
+ 'HOST': '127.0.0.1', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': '3306',
}
}
diff --git a/website/urls.py b/website/urls.py
index 3eae3fb..06a62ef 100755
--- a/website/urls.py
+++ b/website/urls.py
@@ -8,10 +8,10 @@ urlpatterns = patterns('',
url(r'^$', 'website.views.home', name='home'),
# url(r'^contact/$', 'website.views.contact_us', name='contact'),
url(r'^cfp/$', 'website.views.cfp', name='cfp'),
- # url(r'^submit-cfp/$', 'website.views.submitcfp', name='submitcfp'),
- # url(r'^submit-cfw/$', 'website.views.submitcfw', name='submitcfw'),
- url(r'^submit-cfp/$', 'website.views.home', name='home'),
- url(r'^submit-cfw/$', 'website.views.home', name='home'),
+ url(r'^submit-cfp/$', 'website.views.submitcfp', name='submitcfp'),
+ url(r'^submit-cfw/$', 'website.views.submitcfw', name='submitcfw'),
+ #url(r'^submit-cfp/$', 'website.views.cfp', name='home'),
+ #url(r'^submit-cfw/$', 'website.views.home', name='home'),
url(r'^accounts/register/$', 'website.views.userregister', name='userregister'),
url(r'^accounts/login/$', 'website.views.cfp', name='cfp'),
url(r'^gallery/$', 'website.views.gallery', name='gallery'),
diff --git a/website/views.py b/website/views.py
index f3995b4..d000e73 100755
--- a/website/views.py
+++ b/website/views.py
@@ -176,7 +176,7 @@ def submitcfp(request):
headers={"Content-type":"text/html;charset=iso-8859-1"}
)
email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.send(fail_silently=True)
return render_to_response('cfp.html', context)
else:
context['proposal_form'] = form
@@ -229,7 +229,7 @@ def submitcfw(request):
headers={"Content-type":"text/html;charset=iso-8859-1"}
)
email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.send(fail_silently=True)
return render_to_response('cfp.html', context)
else:
context['proposal_form'] = form
@@ -443,7 +443,7 @@ def comment_abstract(request, proposal_id = None):
headers={"Content-type":"text/html;charset=iso-8859-1"}
)
email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.send(fail_silently=True)
proposal.status="Commented"
proposal.save()
rates = Ratings.objects.filter(proposal=proposal)
@@ -552,7 +552,7 @@ def status(request, proposal_id= None):
headers={"Content-type":"text/html;charset=iso-8859-1"}
)
email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.send(fail_silently=True)
proposal.status="Edit"
proposal.save()
context.update(csrf(request))
@@ -658,7 +658,7 @@ def status_change(request):
message = """Dear """+proposal.user.first_name+""",
Congratulations. Your proposal for the workshop titled '"""+ proposal.title+ """'is accepted.
You shall conduct the workshop at the conference.\n\nYou will be notified regarding instructions of your workshop via email.\n\nThank You ! \n\nRegards,\nSciPy India 2017,\nFOSSEE - IIT Bombay"""
- send_mail(subject, message, sender_email, to)
+ #send_mail(subject, message, sender_email, to)
context.update(csrf(request))
proposals = Proposal.objects.all()
context['proposals'] = proposals
@@ -685,7 +685,7 @@ def status_change(request):
We regret to inform you that your proposal for the workshop titled '"""+ proposal.title+ """' as not been shortlisted.<br>
You may register and attend the conference by clicking http://scipyindia2017.doattend.com/
\n\nThank You ! \n\nRegards,\nSciPy India 2017,\nFOSSEE - IIT Bombay"""
- send_mail(subject, message, sender_email, to)
+ #send_mail(subject, message, sender_email, to)
context.update(csrf(request))
proposals = Proposal.objects.all()
context['proposals'] = proposals
@@ -729,7 +729,7 @@ def status_change(request):
headers={"Content-type":"text/html;charset=iso-8859-1"}
)
email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.send(fail_silently=True)
proposal.status="Edit"
proposal.save()
context.update(csrf(request))