Semester.ly
Django + Bootstrap App in 9 Steps
Max Yeo
max@semester.ly
Noah Presler
noah@semester.ly
MVC Frameworks and REST
Views
Python functions (views.py)
Handles a web request, returns a response!
Models
Python classes (models.py)
An Abstraction of the Database Layer
id | Question (foreign key) | choice_text | votes |
1 | 21321 | “Semester.ly” | 34 |
2 | 32133 | “JHU CS” | 21 |
Templates
HTML + Django Syntax (templates/name_of_template.html)
Allows you to use the vanilla HTML tags you are used to
Then spice things up with embedded python
Django & Bootstrap World (It’s all Python and HTML :) )
Django
Bootstrap
<div class="row">
<div class="col-md-8">.col-md-8</div>
<div class="col-md-4">.col-md-4</div>
</div>
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4">.col-md-4</div>
</div>
Git Repo to Follow Along (we’ve updated bugs)
Feel free to ask us questions,
Semester.ly
Django + Bootstrap Workshop