A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/python/how-to-create-a-basic-project-using-mvt-in-django/ below:

How to Create a Basic Project using MVT in Django ?

How to Create a Basic Project using MVT in Django ?

Last Updated : 12 Jul, 2025

Prerequisite - Django Project MVT Structure
 

Assuming you have gone through the previous article. This article focuses on creating a basic project to render a template using MVT architecture. We will use MVT (Models, Views, Templates) to render data to a local server.
 

Create a basic Project: 

django-admin startproject projectName
cd projectName
Python3
# HttpResponse is used to
# pass the information 
# back to view
from django.http import HttpResponse

# Defining a function which
# will receive request and
# perform task depending 
# upon function definition
def hello_geeks (request) :

    # This will return Hello Geeks
    # string as HttpResponse
    return HttpResponse("Hello Geeks")

from projectName.views import hello_geeks

path('geek/', hello_geeks), 

$ cd env_site
$ cd Script
$ activate
$ cd ..
$ cd geeks_site
$ python manage.py runserver
http://127.0.0.1:8000/geek/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4