summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshen2018-02-26 11:02:02 +0530
committerGitHub2018-02-26 11:02:02 +0530
commit74749781fa6ec4ae1624e8718de49fa42ab98197 (patch)
treed9b0517f05e83e11896f4f673117c774eed8e90e
parent044ed8eaa8f155cae96d6fdd5db86f1e5290dcb8 (diff)
parent2def2ac48f9aac88d68398fe30bd533c9b559b01 (diff)
downloadworkshop_booking-74749781fa6ec4ae1624e8718de49fa42ab98197.tar.gz
workshop_booking-74749781fa6ec4ae1624e8718de49fa42ab98197.tar.bz2
workshop_booking-74749781fa6ec4ae1624e8718de49fa42ab98197.zip
Merge pull request #43 from Akshen/develop
Redirect How to participate option to html
-rw-r--r--workshop_app/templates/workshop_app/how_to_participate.html1
-rw-r--r--workshop_app/views.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/workshop_app/templates/workshop_app/how_to_participate.html b/workshop_app/templates/workshop_app/how_to_participate.html
index feed0b8..ad95503 100644
--- a/workshop_app/templates/workshop_app/how_to_participate.html
+++ b/workshop_app/templates/workshop_app/how_to_participate.html
@@ -48,6 +48,7 @@
<div class="container-fluid text-center" >
<img src="{{ URL_ROOT }}/static/workshop_app/img/structure.png">
+ <br><br>
</div>
{% endblock %} \ No newline at end of file
diff --git a/workshop_app/views.py b/workshop_app/views.py
index b08104c..94c78c0 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -890,8 +890,7 @@ def how_to_participate(request):
def file_view(request, workshop_title):
if workshop_title =='flowchart':
- pdf_file = open(path.join(settings.MEDIA_ROOT,'flowchart.pdf'), 'rb')
- return HttpResponse(pdf_file, content_type="application/pdf")
+ return render(request, 'workshop_app/how_to_participate.html')
else:
filename = WorkshopType.objects.get(id=workshop_title)
attachment_path = path.dirname(filename.workshoptype_attachments.path)