Make sure you don't push db files (files with .sqlite
, .db3
, etc. extension).
- Make sure you've added a blank line at the end to all your files including
.css
,.html
and.gitignore
. - Use
pluralize
.
Good example:
<p>You have visited this page {{ num_visits }} time{{ num_visits|pluralize }}</p>
Bad example:
<p>You have visited this page {{ num_visits }} {% if num_visits == 1 %} time {% else %} times {% endif %}.</p>
-
Make sure that
num_visits
works as expected. When you visit the page for the first time there should be:You have visited this page 1 time
-
Make sure you use 2 whitespaces indentations in your
.html
files.
Use -
to split words in URL identification parameter name
, not the _
.
Good example:
urlpatterns = [
path("buses/", BusListView.as_view(), name="bus-list"),
]
Bad example:
urlpatterns = [
path("buses/", BusListView.as_view(), name="bus_list"),
]
Add comments, prints, and functions to check your solution when you write your code. Don't forget to delete them when you are ready to commit and push your code.