Commit 3eb7e930 authored by Joaquin Hermosisima's avatar Joaquin Hermosisima

3 apps finished with complete urls and views mapping

parent 6729b597
from django.urls import path
from about import views
urlpatterns = [
path('', views.about_info)
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def about_info(request):
return HttpResponse("This is my about info")
from django.urls import path
from contact import views
urlpatterns = [
path('', views.contact_info)
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def contact_info(request):
return HttpResponse("This is my contact info")
from django.urls import path
from homepage import views
urlpatterns = [
path('', views.home_info)
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home_info(request):
return HttpResponse("Welcome to Jak's Music Library!")
......@@ -37,6 +37,9 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'about',
'contact',
'homepage',
]
MIDDLEWARE = [
......
......@@ -14,8 +14,11 @@ 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('homepage/', include('homepage.urls')),
path('about/', include('about.urls')),
path('contact/', include('contact.urls'))
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment