Commit e5374036 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

added the 'about' app

parent 0f327af3
...@@ -42,6 +42,7 @@ INSTALLED_APPS = [ ...@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage', 'homepage',
'contact',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -18,5 +18,6 @@ from django.urls import include, path ...@@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")), path('homepage/', include('homepage.urls', namespace="homepage")),
path('contact/', include('contact.urls', namespace="contact")),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AboutConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'about'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ContactConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'contact'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
# contact/urls.py
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
# This might be needed, depending on your Django version
app_name = "contact"
\ No newline at end of file
# contact/views.py
from django.http import HttpResponse
def index(request):
return HttpResponse("Call me, Neptune Sy, at 8733994 or 09278821122")
# lefirst/views.py # homepage/views.py
from django.http import HttpResponse from django.http import HttpResponse
def index(request): def index(request):
......
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