Templates

App Template Inside the courses folder create a templates folder. HTML Template Inside the templates folder create another courses folder, […]

Read More

Django’s Admin

Creating the First Admin Account createsuperuser Creates a superuser. You can now log in to the admin dashboard on loclhost:8000/admin, […]

Read More

First App View

Create App View [courses/views.py] from django.http import HttpResponse from django.shortcuts import render from .models import Course def course_list(request): courses = […]

Read More

Creating Instances via Shell

The following is a handy command that lets us explore the ORM and create new records QuerySet This looks like […]

Read More

Models

Model belong to an app. Model names should always be in singular by convention. Creating a New Model models.py from […]

Read More

Pluggable Apps

A Django project is made of multiple apps that can be reused and moved from project to project.When you name […]

Read More

Views

Django is an MVC, or model-view-controller framework, but Django doesn’t call templates views, it calls them templates. And it doesn’t […]

Read More

Starting With Django

Installing PIP If PIP did not come installed with Python 3, do the following: Download get-pip.py from: http://pip.readthedocs.org/en/stable/installing.html If PIP is not Python […]

Read More