* it includes an HTML form generation feature - basically, you use it to have Django generate forms according to the models that you’ve schemed already using the previously mentioned ORM.
* 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.urlresolvers module, which was moved to django.urls we use seralizer.py for django rest framework
1. function test() { return (); } or const test = function() { return(); } or const test =() =>{ return(); } --Arrow function 2. var is for creating new variable, but its outdated syntax 3. let and const are some next gen js use const when you don't want to change the variable "let is same as a var" 4. you can also add function in the js object 5. map function loop through the array and create new array - it's like for loop of javascript 6. .push is same as .append in python for adding element in array 7. array and object are primitive data type so const value can change, means we do change array and object value later after assiening them with const also 8. Rest and Spread Operator - Spread Operator basically it pull out the items from the array and objects and put it into another object - in Rest operator, syntax is same as spread operator - it's like a kwargs in python, which we are using in spread operator, it takes multiple input ...
Comments
Post a Comment