return redirect(request, "mediagoblin.auth.register_success")
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/auth/register.html',
{'register_form': register_form})
def register_success(request):
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/auth/register_success.html', {})
auth_lib.fake_login_attempt()
login_failed = True
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/auth/login.html',
{'login_form': login_form,
'next': request.GET.get('next') or request.POST.get('next'),
else:
verification_successful = False
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/auth/verify_email.html',
{'user': user,
'verification_successful': verification_successful})
When the user tries to do some action that requires their account
to be verified beforehand, this view is called upon!
"""
- return render_to_response(request,
- 'mediagoblin/auth/verification_needed.html', {})
+ return render_to_response(
+ request, 'mediagoblin/auth/verification_needed.html', {})
def resend_activation(request):
def resend_activation_success(request):
- return render_to_response(request,
- 'mediagoblin/auth/resent_verification_email.html', {})
+ return render_to_response(
+ request, 'mediagoblin/auth/resent_verification_email.html', {})
return redirect(request, "mediagoblin.submit.success")
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/submit/start.html',
{'submit_form': submit_form})
def submit_success(request):
- return render_to_response(request,
- 'mediagoblin/submit/success.html', {})
+ return render_to_response(
+ request, 'mediagoblin/submit/success.html', {})
if media_entries == None:
return exc.HTTPNotFound()
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/user_pages/user.html',
{'user': user,
'media_entries': media_entries,
@get_user_media_entry
def media_home(request, media):
"""'Homepage' of a MediaEntry()"""
- return render_to_response(request,
+ return render_to_response(
+ request,
'mediagoblin/user_pages/media.html',
{'media': media})