diff options
author | Akshen | 2018-02-24 10:17:30 +0530 |
---|---|---|
committer | Akshen | 2018-02-24 10:17:30 +0530 |
commit | 403cfcaf592f993a6448c24f20d8c2baa78f50de (patch) | |
tree | 962a7e6e4462b3ea002f70bb2aa1af9d86bc6411 | |
parent | ca9c06178fd2b3b9b6c8e694ae463ddb250d471e (diff) | |
download | workshop_booking-403cfcaf592f993a6448c24f20d8c2baa78f50de.tar.gz workshop_booking-403cfcaf592f993a6448c24f20d8c2baa78f50de.tar.bz2 workshop_booking-403cfcaf592f993a6448c24f20d8c2baa78f50de.zip |
Add html page for self learning course
-rw-r--r-- | statistics_app/views.py | 40 | ||||
-rw-r--r-- | workshop_app/templates/workshop_app/self_workshop.html | 79 | ||||
-rw-r--r-- | workshop_app/views.py | 3 |
3 files changed, 82 insertions, 40 deletions
diff --git a/statistics_app/views.py b/statistics_app/views.py index 2382e4e..0f3af78 100644 --- a/statistics_app/views.py +++ b/statistics_app/views.py @@ -72,13 +72,8 @@ def pie_chart(): status='ACCEPTED').count() # For Pie Chart - workshoptype_num = [] - workshoptype_title = [] - for title in workshoptype_dict.keys(): - workshoptype_title.append(str(title)) - - for count in workshoptype_dict.values(): - workshoptype_num.append(count) + workshoptype_num = [count for count in workshoptype_dict.values()] + workshoptype_title = [str(title) for title in workshoptype_dict.keys()] workshoptype_count = [workshoptype_title, workshoptype_num] del workshoptype_title, workshoptype_num @@ -514,34 +509,3 @@ def profile_stats(request): else: logout(request) return render(request, "workshop_app/logout.html") - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/workshop_app/templates/workshop_app/self_workshop.html b/workshop_app/templates/workshop_app/self_workshop.html new file mode 100644 index 0000000..373b799 --- /dev/null +++ b/workshop_app/templates/workshop_app/self_workshop.html @@ -0,0 +1,79 @@ +{% extends 'workshop_app/base.html' %} + +{% block title %} + Self Workshop +{% endblock %} + +{% block extra %} + <link rel="stylesheet" href="{{ URL_ROOT }}/static/workshop_app/css/faq.css" type="text/css" /> + <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> --> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> + <link href='//fonts.googleapis.com/css?family=Antic Slab' rel='stylesheet'> + +{% endblock %} + +{% block content %} + +<div class="container"> + <h1>Welcome to Python Self Learning Course</h1><br> + <ul class='num'> + <h2>About this Course:</h2> + <ul> + <li class='ans'> + It is a free online course offered by the <a href="https://fossee.in" target="_blank">FOSSEE</a> team at IIT Bombay. + </li> + + <li class='ans'> + Students can gain hands-on experience in Python through a series of practice sessions and quizzes. + </li> + + <li class='ans'> + It is open to all, interested in learning Python irrespective of their academic background. + </li> + + <li class='ans'> + The course is designed and curated by <a href="https://www.aero.iitb.ac.in/~prabhu/index.html" target="_blank">Prof.Prabhu Ramachandran, Dept. Of Aerospace Engineering, IIT Bombay).</a> + </li> + + <li class='ans'> + Graded e-certificates are issued to participants on successful completion of the course. + </li> + + <li class='ans'> + Queries/ doubts posted by participants on the <a href="http://forums.fossee.in/filter/Python/">FORUMS</a> are answered by FOSSEE’s Python experts. + </li> + + <li class='ans'> + Certificates are issued within 15 working days of course completion. + </li> + + </ul> + </ul> + + <ul class='num'> + <h2>Course Instructions:</h2> + <ul> + <li class='ans'> + Register on <a href="http://yaksh.fossee.in" target="_blank">Yaksh</a> and enroll for the course Basic Programming using Python by searching for the course code :<strong><u>BPPY</u></strong> + </li> + + <li class='ans'> + Access the “Enrolled Courses” tab to start the course + </li> + + <li class='ans'> + Complete all the lessons, exercises and quizzes in a module and then proceed to the next module. + </li> + + <li class='ans'> + If needed, revisit lessons for better understanding + </li> + + </ul> + </ul> + </div> +<br> +<br> + +{% endblock %}
\ No newline at end of file diff --git a/workshop_app/views.py b/workshop_app/views.py index f274122..b08104c 100644 --- a/workshop_app/views.py +++ b/workshop_app/views.py @@ -1185,5 +1185,4 @@ def share_details(request): def self_workshop(request): - pdf_file = open(path.join(settings.MEDIA_ROOT,'self_learning.pdf'), 'rb') - return HttpResponse(pdf_file, content_type="application/pdf") + return render(request, "workshop_app/self_workshop.html") |