<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pro-Tek Blog &#187; Django</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/category/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>HOW TO INSTALL THE DEVELOPMENT VERSION OF DJANGO</title>
		<link>http://www.pro-tekconsulting.com/blog/how-to-install-the-development-version-of-django/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-to-install-the-development-version-of-django/#comments</comments>
		<pubDate>Thu, 07 Feb 2019 05:26:40 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Development version of Django]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2896</guid>
		<description><![CDATA[<p>How to install the development version of Django Follow the below steps to Install the development version of Django Framework. Check out Django’s main development branch $ git clone https://github.com/django/django.git Make sure that the Python interpreter can load Django’s code. The most convenient way to do this is to use virtualenv, virtualenvwrapper, and pip. After [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-install-the-development-version-of-django/">HOW TO INSTALL THE DEVELOPMENT VERSION OF DJANGO</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How to install the development version of Django</h4>
<p>Follow the below steps to Install the development version of Django Framework.</p>
<ul>
<li>Check out Django’s main development branch<br />
$ git clone https://github.com/django/django.git</li>
<li>Make sure that the Python interpreter can load Django’s code. The most convenient way to do this is to use virtualenv, virtualenvwrapper, and pip.</li>
<li>After setting up and activating the virtualenv, run the following command:<br />
$ pip install -e django/</li>
</ul>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-install-the-development-version-of-django/">HOW TO INSTALL THE DEVELOPMENT VERSION OF DJANGO</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-to-install-the-development-version-of-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EXPLAIN THE ARCHITECTURE OF DJANGO?</title>
		<link>http://www.pro-tekconsulting.com/blog/explain-the-architecture-of-django/</link>
		<comments>http://www.pro-tekconsulting.com/blog/explain-the-architecture-of-django/#comments</comments>
		<pubDate>Thu, 07 Feb 2019 05:21:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Architecture of Django]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2894</guid>
		<description><![CDATA[<p>Explain the Architecture of Django? Django architecture consists of: Models: It describes your database schema and your data structure Views: It controls what a user sees, the view retrieves data from appropriate models and execute any calculation made to the data and pass it to the template Templates: It determines how the user sees it. It describes how the [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/explain-the-architecture-of-django/">EXPLAIN THE ARCHITECTURE OF DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Explain the Architecture of Django?</h4>
<p>Django architecture consists of:</p>
<p><strong>Models:</strong> It describes your database schema and your data structure</p>
<p><strong>Views:</strong> It controls what a user sees, the view retrieves data from appropriate models and execute any calculation made to the data and pass it to the template</p>
<p><strong>Templates:</strong> It determines how the user sees it. It describes how the data received from the views should be changed or formatted for display on the page</p>
<p><strong>Controller:</strong> It is the heart of the system. It handles request and responses, setting up database connections and loading add-ons and specifies Django framework and URL parsing.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/explain-the-architecture-of-django/">EXPLAIN THE ARCHITECTURE OF DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/explain-the-architecture-of-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW CAN YOU SETUP DATABASE IN DJANGO?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-can-you-setup-database-in-django/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-can-you-setup-database-in-django/#comments</comments>
		<pubDate>Thu, 07 Feb 2019 05:13:50 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Database in Django]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2892</guid>
		<description><![CDATA[<p>How can you setup Database in Django? To set up a database in Django, you can use the command edit my site/ setting.py, it is a normal python module with module level representing Django settings. Django uses SQLite database by default. It is easy for Django users because it doesn’t require any other type of installation. In [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-can-you-setup-database-in-django/">HOW CAN YOU SETUP DATABASE IN DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How can you setup Database in Django?</h4>
<p>To set up a database in Django, you can use the command edit my site/ setting.py, it is a normal python module with module level representing Django settings.</p>
<p>Django uses SQLite database by default. It is easy for Django users because it doesn’t require any other type of installation. In the case of other databases, you have the following keys in the DATABASE ‘default’ item to match your database connection settings.</p>
<p><strong>Engines:</strong> you can change database by using ‘django.db.backends.sqlite3’ , ‘django.db.backeneds.mysql’, ‘django.db.backends.postgresql_psycopg2’, ‘django.db.backends.oracle’</p>
<p><strong>Name:</strong> The name of your database. In the case if you are using SQLite as your database, in that case, a database will be a file on your computer, Name should be a full absolute path, including the file name of that file.</p>
<p>You can add setting likes setting like Password, Host, User, etc. in your database, if you are not choosing SQLite as your database.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-can-you-setup-database-in-django/">HOW CAN YOU SETUP DATABASE IN DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-can-you-setup-database-in-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHAT IS THE USE OF SESSION FRAMEWORK IN DJANGO?</title>
		<link>http://www.pro-tekconsulting.com/blog/what-is-the-use-of-session-framework-in-django/</link>
		<comments>http://www.pro-tekconsulting.com/blog/what-is-the-use-of-session-framework-in-django/#comments</comments>
		<pubDate>Fri, 08 Feb 2019 04:52:48 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Framework in Django]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2884</guid>
		<description><![CDATA[<p>What is the use of session framework in Django? The session framework facilitates you to store and retrieve arbitrary data on a per-site visitor basis. It stores data on the server side and abstracts the receiving and sending of cookies. A session can be implemented through a piece of middleware. &#160; &#160; &#160; &#160; &#160; [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-the-use-of-session-framework-in-django/">WHAT IS THE USE OF SESSION FRAMEWORK IN DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What is the use of session framework in Django?</h4>
<p>The session framework facilitates you to store and retrieve arbitrary data on a per-site visitor basis. It stores data on the server side and abstracts the receiving and sending of cookies. A session can be implemented through a piece of middleware.</p>
<p>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-the-use-of-session-framework-in-django/">WHAT IS THE USE OF SESSION FRAMEWORK IN DJANGO?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/what-is-the-use-of-session-framework-in-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW WILL YOU DEFINE DJANGO PROGRAMMING LANGUAGE?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-will-you-define-django-programming-language/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-will-you-define-django-programming-language/#comments</comments>
		<pubDate>Fri, 08 Feb 2019 04:42:12 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Django programming Language]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2877</guid>
		<description><![CDATA[<p>How will you define Django programming Language? Django is a web framework in python to develop a web application in python. Django is a free and open source web application framework, written in Python. Django makes easier to build better web applications quickly and with less code. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-will-you-define-django-programming-language/">HOW WILL YOU DEFINE DJANGO PROGRAMMING LANGUAGE?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How will you define Django programming Language?</h4>
<p>Django is a web framework in python to develop a web application in python. Django is a free and open source web application framework, written in Python. Django makes easier to build better web applications quickly and with less code.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-will-you-define-django-programming-language/">HOW WILL YOU DEFINE DJANGO PROGRAMMING LANGUAGE?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-will-you-define-django-programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CLASS BASED VIEWS IN DJANGO</title>
		<link>http://www.pro-tekconsulting.com/blog/class-based-views-in-django/</link>
		<comments>http://www.pro-tekconsulting.com/blog/class-based-views-in-django/#comments</comments>
		<pubDate>Thu, 17 Jan 2019 05:18:15 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Django developers]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2849</guid>
		<description><![CDATA[<p>Class Based Views in Django: We often find that Django developers exclusively those new to the framework and even some advanced users choose to use function based views for most projects. This can be attributed firstly to the simplicity of using FBVs and a lack of understanding of the great advantages of using Class Based [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/class-based-views-in-django/">CLASS BASED VIEWS IN DJANGO</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Class Based Views in Django:</h4>
<p>We often find that Django developers exclusively those new to the framework and even some advanced users choose to use function based views for most projects. This can be attributed firstly to the simplicity of using FBVs and a lack of understanding of the great advantages of using Class Based Views.</p>
<p>In this article we will be highlighting some of the major advantages and the features of CBV.</p>
<p><strong>SOME OF THE PROS OF USING CLASS BASED VIEW:</strong></p>
<ul>
<li><strong>Code reusability</strong> &#8211; In CBV, a view class can be inherited by another view class and altered for a different use case.</li>
<li><strong>Code extendibility</strong> &#8211; CBV can be extended to include more functionalities using Mixins.</li>
<li><strong>Code structuring</strong> &#8211; In CBVs a class based view helps the developer to respond different http request with different class instance methods instead of conditional branching statements inside a single function based view.</li>
</ul>
<p>Django class based view provides a class instance method as_view() which serves as an entry point for any generic CBV. Django URL resolver expects to send the request passed through it to a function. The as_view() class instance method in each generic view creates a hook for calling the class just like a method.</p>
<p>As such, the url configuration for calling a CBV follows the pattern below:</p>
<p>urlpatterns = [<br />
url(r&#8217;^homepage/&#8217;, ClassView.as_view(), name = &#8220;url_name&#8221;)<br />
]</p>
<p>The as_view() method then calls the dispatch() method which in turn calls the class instance method defined for the applicable http request method if available or throws an HttpResponseNotAllowed exception.</p>
<p>CBV.as_view() &#8212;&#8212;&gt; CBV.dispatch() &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|       |       |      |  and so on.<br />
v      v        v      v<br />
get post head put</p>
<p>Base class attributes can be overridden in child class as with the standard Python approach. Instead, the new attribute can be passed as an argument to the as_view() method of the CBV.</p>
<p><strong>USING MIXINS:</strong></p>
<p>One of the benefits of using a Class based view its extendibility, this quality is further improved through the use of Mixins.</p>
<p>Mixins are a form of multiple inheritances that lets the combination of behavior from multiple parent classes. They are used to add additional functionality and behavior to classes. Mixins are intended to be inherited and not implemented directly. In CBVs Mixins are passed as leftmost argument while Django generic view classes are placed to the right.</p>
<p>Extending a class view with multiple Mixins can lead to some unforeseen behavior. However, if used with caution, mixins are great tools for adding robust functionalities to a CBV.</p>
<p>For instance:</p>
<p>class NewMixin(object):<br />
def do_whatever(self, *args, **kwargs):<br />
The above mixin is used as below:<br />
from django.views.generic import TemplateView</p>
<p>class FreshViewClass(NewMixin, TemplateView):<br />
def do_something_awesome(self):<br />
continue here</p>
<p>The methods defined in the mixin can be called directly in the FreshViewClass class.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/class-based-views-in-django/">CLASS BASED VIEWS IN DJANGO</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/class-based-views-in-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAN YOU EXPLAIN DIFFERENT FEATURES OF DJANGO PROGRAMMING LANGUAGE?</title>
		<link>http://www.pro-tekconsulting.com/blog/can-you-explain-different-features-of-django-programming-language/</link>
		<comments>http://www.pro-tekconsulting.com/blog/can-you-explain-different-features-of-django-programming-language/#comments</comments>
		<pubDate>Thu, 17 Jan 2019 04:16:58 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Features of Django]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2845</guid>
		<description><![CDATA[<p>Can you explain different features of Django programming Language? Below is the list of features offered by Django: A free, rich API Automatic database table creation Admin Interface Tempting Form Handling A dynamic admin interface generator A syndication feed framework A powerful cache framework for dynamic websites A powerful built-in template system Easy database migrations [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/can-you-explain-different-features-of-django-programming-language/">CAN YOU EXPLAIN DIFFERENT FEATURES OF DJANGO PROGRAMMING LANGUAGE?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Can you explain different features of Django programming Language?</h4>
<p><strong>Below is the list of features offered by Django:</strong></p>
<ul>
<li>A free, rich API</li>
<li>Automatic database table creation</li>
<li>Admin Interface</li>
<li>Tempting</li>
<li>Form Handling</li>
<li>A dynamic admin interface generator</li>
<li>A syndication feed framework</li>
<li>A powerful cache framework for dynamic websites</li>
<li>A powerful built-in template system</li>
<li>Easy database migrations</li>
<li>Security features</li>
<li>Other helpful add-ons</li>
<li>Internationalization</li>
<li>Object Relational Mapping</li>
<li>Testing Framework</li>
<li>Session, user management, role-based permission</li>
<li>Elegant URL design</li>
<li>Cache System</li>
</ul>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/can-you-explain-different-features-of-django-programming-language/">CAN YOU EXPLAIN DIFFERENT FEATURES OF DJANGO PROGRAMMING LANGUAGE?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/can-you-explain-different-features-of-django-programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
