August 2016
Beginner to intermediate
717 pages
15h 24m
English
Before learning what a DRY link is, we will first remind you of what an HTML link is. Every day, when we go on the Internet, we change a page or website by clicking on links. These links are redirected to URLs. The following is an example link to google.com:
<a href="http://www.google.com">Google link !</a>
We will create a second page in our application to create the first valid link. Add the following line to the urls.py file:
url(r'^connection$', 'TasksManager.views.connection.page'),
Then, create a view corresponding to the preceding URL:
from django.shortcuts import render # View for connection page. def page(request): return render(request, 'en/public/connection.html')
We will create a second template for the new view. Let's ...
Read now
Unlock full access