summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshen2018-01-31 15:16:59 +0530
committerAkshen2018-01-31 15:16:59 +0530
commit9397abad81fb9351a80ce2f6b6314b3884cc21ed (patch)
tree00d9b23e78e59e9057ccae68c1505c7c78d253a5
parentb913086b7673640b37cf462ee0a5de01e616ea6d (diff)
downloadworkshop_booking-9397abad81fb9351a80ce2f6b6314b3884cc21ed.tar.gz
workshop_booking-9397abad81fb9351a80ce2f6b6314b3884cc21ed.tar.bz2
workshop_booking-9397abad81fb9351a80ce2f6b6314b3884cc21ed.zip
Add pdf file for open course details
-rw-r--r--workshop_app/data/self_learning_pdf.pdfbin0 -> 238008 bytes
-rw-r--r--workshop_app/static/workshop_app/img/self_learning_pdf.pdfbin0 -> 238008 bytes
-rw-r--r--workshop_app/templates/workshop_app/self_workshop.html117
-rw-r--r--workshop_app/views.py3
4 files changed, 2 insertions, 118 deletions
diff --git a/workshop_app/data/self_learning_pdf.pdf b/workshop_app/data/self_learning_pdf.pdf
new file mode 100644
index 0000000..2859ea6
--- /dev/null
+++ b/workshop_app/data/self_learning_pdf.pdf
Binary files differ
diff --git a/workshop_app/static/workshop_app/img/self_learning_pdf.pdf b/workshop_app/static/workshop_app/img/self_learning_pdf.pdf
new file mode 100644
index 0000000..2859ea6
--- /dev/null
+++ b/workshop_app/static/workshop_app/img/self_learning_pdf.pdf
Binary files differ
diff --git a/workshop_app/templates/workshop_app/self_workshop.html b/workshop_app/templates/workshop_app/self_workshop.html
deleted file mode 100644
index 4c52671..0000000
--- a/workshop_app/templates/workshop_app/self_workshop.html
+++ /dev/null
@@ -1,117 +0,0 @@
-{% extends 'workshop_app/base.html' %}
-
-{% block title %}
- Python Online Courses
-{% endblock %}
-
-{% block extra %}
-<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono|Josefin+Sans">
-{% endblock %}
-{% block header %}
- <nav class="navbar navbar-default navbar-custom">
- <div class="container-fluid">
- <div class="navbar-header">
- <a class="navbar-brand" href="{{ URL_ROOT }}/">FOSSEE Workshops</a>
- </div>
-
- <ul class="nav navbar-nav navbar-right">
- <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li>
- <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
- </ul>
- </div>
- </nav>
-{% endblock %}
-
-{% block content %}
-<div class="container-fluid">
- <div class="row">
- <ul class ="list-unstyled">
- <li><u><h3 style="font-family: 'Josefin Sans', sans-serif; padding-left:40%;">About this Online Courses</h3></li></u>
- <ul>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;
- ">The <a target="_blank" href="https://fossee.in">FOSSEE</a> team at IIT Bombay offers free online courses in Python designed and curated by <a target="_blank" href="https://www.aero.iitb.ac.in/~prabhu/index.html">Prof.Prabhu Ramachandran(Dept. of Aerospace Engineering,IIT Bombay).</a> These are interactive courses, Participants will gain hands-on experience in Python through a series of practice sessions and quizzes.
- </h4></li>
-
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;
- ">The course is spread on the span of 3 weeks, anyone interested to learn Python can take up the course irrespective of background(student/working professional).</h4></li>
-
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;
- ">While taking the course if you have any queries, you can post that on our <a target="_blank" href="https://forums.fossee.in"> FORUMS(Python section)</a> which will be answered by FOSSEE's Python team.</h4></li>
-
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;
- ">Participants who meet the <a target="_blank" href="https://python.fossee.in/python-workshops">criteria</a> mentioned will receive e-certificates within 15 working days from the day of course completion. Certificates will be issued on registered email address.</h4></li>
- </ul>
- </ul>
- </div>
-
- <!-- -->
- <div class="row">
- <ul class="list-unstyled">
- <li><u><h3 style="font-family: 'Josefin Sans', sans-serif; padding-left:40%;">Instructions</h3></u></li>
- <ul>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- Go to <a target="_blank" href="https://yaksh.fossee.in">Yaksh</a>, register and enroll for <i><u>Basic Programming using Python</u></i>
- by searching for the course using code: <font size=5% color=#A9723E>BPPY</font>
- </h4>
- </li>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- After your enrollment is accepted, access "Enrolled Courses" tab you will be taken to the modules page, follow along the content sequentially.
- </h4>
- </li>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- You have to complete all the lessons, exercises and quizzes in a module to move to the next module.
- </h4>
- </li>
-
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- You can revisit lessons for better understanding but quizzes can be attempted only once.
- </h4>
- </li>
- </ul>
- </ul>
-</div>
-
- <div class="row">
- <ul class="list-unstyled">
- <li><u><h3 style="font-family: 'Josefin Sans', sans-serif; padding-left:40%;">Duration</h3></u></li>
- <ul>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- 3 weeks is the course window, you can devote 4 hours a day on weekend or 1 hour each day or as per your availability.
- </h4>
- </li>
- </ul>
- </ul>
- </div>
-
- <!-- -->
- <div class="row">
- <ul class="list-unstyled">
- <li><u><h3 style="font-family: 'Josefin Sans', sans-serif; padding-left:40%;">Benefits</h3></u></li>
- <ul>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- The Course is absolutely free and a
- Certificate will be awarded on successful completion
-
- </h4>
- </li>
- <li>
- <h4 style="font-family: 'Roboto Mono', monospace;">
- Flexible Timings
- </h4>
- </li>
- </ul>
- </ul>
-
- </div>
-</div>
-{% endblock %}
diff --git a/workshop_app/views.py b/workshop_app/views.py
index 0a1331e..e553a21 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -1151,4 +1151,5 @@ def share_details(request):
def self_workshop(request):
- return render(request, 'workshop_app/self_workshop.html')
+ pdf_file = open(path.join(settings.MEDIA_ROOT,'self_learning_pdf.pdf'), 'rb')
+ return HttpResponse(pdf_file, content_type="application/pdf")