Basic index view created

This commit is contained in:
2025-05-29 14:16:14 -04:00
parent 2e6b731e95
commit c4bdf8f589
4 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,8 @@
from django.urls import path
from . import views
# Define a list of url patterns
urlpatterns = [
path('', views.index)
]

View File

@ -1,3 +1,6 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Asia Tours Agency")

View File

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'asiatoursagency.apps.AsiatoursagencyConfig',
]
MIDDLEWARE = [

View File

@ -15,8 +15,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('asiatoursagency.urls')),
]