Search results for: django
83 results found.
Template tags in Django
In the previous chapter, we have already introduced you to some of the basic template tags and filters. In this lesson, we will discuss some important built-in template tags in detail. if tag # The …
Read MoreBasics of Django Templates
What are Django Templates? # Think of Django templates as a scaffolding required to create a complete HTML page. Django templates are nothing more than a text file containing static content and as w…
Read MoreCreating URLs and Custom Response
Reversing URL Patterns # The process of creating a URL from the name of the URL pattern is called reversing a URL. So why we do that? Why not just hardcode URLs? Because at a later date, If you wan…
Read MoreViews and URLconfs in Django
In the previous chapters, we have learned how to set up a Django project and run the development server. In this chapter, we will learn the basics of creating dynamic web pages in Django. Creating th…
Read MoreMVC Pattern and Django
The MVC pattern # Before the advent of MVC frameworks, web programming mixed database code with the server side code of the page. If you have programmed for some time in a language like PHP you alre…
Read MoreCreating Django Project
Creating a Project # To create a new Django project make sure that the virtual environment is active and your current working directory is set to djangobin, then issue the following command: $ djang…
Read MoreInstalling Django
Installing Django # To create a new Django application you must have the following things installed on your computer: Python A Virtual Environment Django Note: Throughout this tutorial instructi…
Read MoreIntro to Django
Intro to Django # When it comes to creating a web application using Python, Django is a big name. Django framework was created by Adrian Holovaty and Simon Willison while working in Lawrence Journal…
Read MoreDjango 1.11 Tutorial
Intro to Django Installing Django Creating Django Project MVC Pattern and Django Views and URLconfs in Django Creating URLs and Custom Response Basics of Django Templates Template tags in Django Tem…
Read MoreBasics of Jinja Template Language
Jinja Template Language is a small set of constructs which helps us to automate the creation of templates. Variable, Expression and Function Call # In Jinja double curly {{ }} braces allows us to ev…
Read More