OverIQ.com

Search results for: django

83 results found.


Basics of Models in Django

We have learned quite a lot of things in the last few chapters. At this point, you should have a pretty good understanding of what Templates and Views are. In this chapter, we will learn about the Mo…

Read More

Template Inheritance in Django

Including templates using include tag # The include tag allows us to include the contents of a template inside another template. Here is the syntax of the include tag: {% include template_name %} …

Read More

Loading Templates in Django

In the last few chapters, we have learned quite a lot about Django templates. In this lesson, we will put some of the things to use. Open views.py in the blog app located at TGDB/django_project/blog.…

Read More

Template filters in Django

Django filters are used to modify the value of the variable before they are rendered as HTML code. To use a filter, type pipe character (|) followed by the filter name after the variable name. {{ var…

Read More

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 More

Basics 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 More

Views 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 More

MVC 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 More

Creating Django Project

To create a new Django project enter the following command inside your virtual environment. 1 2(env) C:\Users\Q\TGDB>django-admin startproject django_project (env) C:\Users\Q\TGDB> This comma…

Read More

Installing Django

To create a new Django application you must have the following things installed on your computer: Python. A Virtual Environment. Django. Installing Python on Windows # In this tutorial, we will u…

Read More