Django
* What does name='register' mean here? Why is it necessary?
Your url address may change anytime, so instead of writing hard code url in template tag, you can simply write: {% url 'register' %}
*The include() function allows us to look for a match with regular expressions and link back to our application’s own urls.py file.
*
If we match that pattern, the include() function basically tells Django to go look at the urls.py file inside of first_app folder
An essential part of any website is the ability to accept information from a user and input it into a database and retrieve information from a database and use it to generate content for the user.
*
<a href=”{% url ‘thanku’%}”>Thanks</a>
name=‘thanku’ is in the urls.py file.
*Django 2.0 removes the
django.core.urlresolversmodule, which was moved todjango.urlswe use seralizer.py for django rest framework
Comments
Post a Comment