summaryrefslogtreecommitdiff
path: root/fossee_manim/views.py
diff options
context:
space:
mode:
authorAkshen2019-06-03 11:49:07 +0530
committerGitHub2019-06-03 11:49:07 +0530
commit242b5f0f208839a2d25b55d11bf73f647d9f5201 (patch)
tree11ebe0fe791e863d9dbc96701d448d1184b02cd9 /fossee_manim/views.py
parentd6e8d4397a0ff3ea610c253e2648df257587f2bf (diff)
parentcfd45b327a621a6a118954f4b18f5f020720cd10 (diff)
downloadFOSSEE_animations-242b5f0f208839a2d25b55d11bf73f647d9f5201.tar.gz
FOSSEE_animations-242b5f0f208839a2d25b55d11bf73f647d9f5201.tar.bz2
FOSSEE_animations-242b5f0f208839a2d25b55d11bf73f647d9f5201.zip
Merge pull request #22 from Akshen/develop
Upload FileValidator added
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r--fossee_manim/views.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py
index c1973e6..d82de00 100644
--- a/fossee_manim/views.py
+++ b/fossee_manim/views.py
@@ -79,7 +79,7 @@ def index(request):
user = request.user
form = UserLoginForm()
if user.is_authenticated() and is_email_checked(user):
- return redirect('/proposal/')
+ return redirect('/proposal_status/')
elif request.method == "POST":
form = UserLoginForm(request.POST)
if form.is_valid():
@@ -87,7 +87,7 @@ def index(request):
login(request, user)
if is_superuser(user):
return redirect("/admin")
- return redirect('/proposal/')
+ return redirect('/proposal_status/')
anime = AnimationStats.objects.filter(animation__status='released').order_by('-id')[:5]
return render(request, "fossee_manim/index.html", {"form": form,
"anime" : anime
@@ -530,11 +530,14 @@ def search_category(request, cat=None):
def guidelines(request):
- user = request.user
categories = Category.objects.all()
-
return render(request, 'fossee_manim/guidelines.html', {'categories': categories})
def honorarium(request):
- pass \ No newline at end of file
+ categories = Category.objects.all()
+ return render(request, 'fossee_manim/honorarium.html', {'categories': categories})
+
+def faqs(request):
+ categories = Category.objects.all()
+ return render(request, 'fossee_manim/faqs.html', {'categories': categories}) \ No newline at end of file