summaryrefslogtreecommitdiff
path: root/forums
diff options
context:
space:
mode:
authorJayaram Pai2014-04-23 17:18:27 +0530
committerJayaram Pai2014-04-23 17:18:27 +0530
commit99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218 (patch)
treeeffff301f9792e9b02c266bd5a2fac055674a2b3 /forums
parent8dd84484c4afa20d65a8232aba5a0e9931e7a749 (diff)
downloadFOSSEE-Forum-99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218.tar.gz
FOSSEE-Forum-99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218.tar.bz2
FOSSEE-Forum-99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218.zip
changed slick in index page
changed login:next_url modified the forms.py for initial value
Diffstat (limited to 'forums')
-rw-r--r--forums/settings.py4
-rw-r--r--forums/views.py7
-rw-r--r--forums/wsgi.py4
3 files changed, 10 insertions, 5 deletions
diff --git a/forums/settings.py b/forums/settings.py
index be17520..c2811f4 100644
--- a/forums/settings.py
+++ b/forums/settings.py
@@ -188,5 +188,5 @@ DATABASE_ROUTERS = ['drupal_auth.routers.DrupalAuthRouter']
TEMPLATE_CONTEXT_PROCESSORS += ('website.context_processors.admin_processor', )
COMPRESS_ROOT = PROJECT_DIR + "/static/"
-COMPRESS_ENABLED = True
-HTML_MINIFY = True
+COMPRESS_ENABLED = False
+HTML_MINIFY = False
diff --git a/forums/views.py b/forums/views.py
index 6890d61..a38d6b7 100644
--- a/forums/views.py
+++ b/forums/views.py
@@ -14,6 +14,9 @@ def user_login(request):
if user is not None:
if user.is_active:
login(request, user)
+ if 'next' in request.POST:
+ next_url = request.POST.get('next')
+ return HttpResponseRedirect(next_url)
return HttpResponseRedirect('/')
else:
return HttpResponse('you are blocked')
@@ -21,8 +24,10 @@ def user_login(request):
return HttpResponse('Invalid username or password')
else:
form = UserLoginForm()
+ next_url = request.GET.get('next')
context = {
- 'form': form
+ 'form': form,
+ 'next': next_url
}
context.update(csrf(request))
return render_to_response('forums/templates/user-login.html', context)
diff --git a/forums/wsgi.py b/forums/wsgi.py
index 728eed4..3901802 100644
--- a/forums/wsgi.py
+++ b/forums/wsgi.py
@@ -24,8 +24,8 @@ sys.path.append('/Sites/venv/forums/')
# os.environ["DJANGO_SETTINGS_MODULE"] = "forums.settings"
os.environ["DJANGO_SETTINGS_MODULE"] = "forums.settings"
-activate_this = '/Sites/venv/bin/activate_this.py'
-execfile(activate_this, dict(__file__=activate_this))
+# activate_this = '/Sites/venv/bin/activate_this.py'
+# execfile(activate_this, dict(__file__=activate_this))
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION