Here is a basic example of a Django project that displays "Hello, Django!" on a webpage:
Start by creating a new Django project using the command django-admin startproject myproject.
Next, create a new app within the project using the command python manage.py startapp myapp.
In the myapp folder, create a file called views.py and add the following code to it:
from django.http import HttpResponse
def hello(request):
return HttpResponse("Hello, Django!")
In the myapp folder, create a file called urls.py and add the following code to it:
from django.urls import path
from . import views
urlpatterns = [
path('hello/', views.hello, name='hello'),
]
In the myproject folder, add the path to the myapp URLs in the urls.py file:
from django.urls import path, include
urlpatterns = [
path('', include('myapp.urls')),
]
Run the development server using the command python manage.py runserver and visit http://127.0.0.1:8000/hello/ in your web browser to see the "Hello, Django!" message.
This is just a basic example and can be customized as per requirement.