summaryrefslogtreecommitdiff
path: root/forums
diff options
context:
space:
mode:
Diffstat (limited to 'forums')
-rw-r--r--forums/settings.py2
-rw-r--r--forums/views.py9
2 files changed, 6 insertions, 5 deletions
diff --git a/forums/settings.py b/forums/settings.py
index 63ec9c5..b556319 100644
--- a/forums/settings.py
+++ b/forums/settings.py
@@ -68,7 +68,7 @@ MEDIA_URL = ''
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
-STATIC_ROOT = ''
+STATIC_ROOT = '/static/'
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
diff --git a/forums/views.py b/forums/views.py
index 3e82a90..e757ab9 100644
--- a/forums/views.py
+++ b/forums/views.py
@@ -57,7 +57,7 @@ def account_register(request):
def send_registration_confirmation(user):
p = Profile.objects.get(user=user)
- #user.email = "k.sanmugam2@gmail.com"
+ user.email = "ashwinids03@gmail.com"
# Sending email when an answer is posted
subject = 'Account Active Notification'
message = """Dear {0},
@@ -65,7 +65,7 @@ def send_registration_confirmation(user):
{2}
Regards,
Admin
- Spoken Tutorials
+ FOSSEE forum
IIT Bombay.
""".format(
user.username,
@@ -73,15 +73,16 @@ def send_registration_confirmation(user):
"http://spoken-tutorial.org/accounts/confirm/" + str(p.confirmation_code) + "/" + user.username
)
email = EmailMultiAlternatives(
- subject, message, 'administrator@spoken-tutorial.org',
+ subject, message, 'sysads@fossee.in',
to = [user.email], bcc = [], cc = [],
headers={'Reply-To': 'no-replay@spoken-tutorial.org', "Content-type":"text/html;charset=iso-8859-1"}
)
- #email.attach_alternative(message, "text/html")
+ email.attach_alternative(message, "text/html")
try:
result = email.send(fail_silently=False)
except:
pass
+
def user_login(request):
if request.user.is_anonymous():