Skip to content

Commit

Permalink
hook view
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbatu committed Apr 29, 2020
1 parent df2bd8e commit 549f002
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
myvenv/
.vscode/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
2 changes: 1 addition & 1 deletion meeting_planner/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'website,'
'website',
]

MIDDLEWARE = [
Expand Down
2 changes: 2 additions & 0 deletions meeting_planner/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"""
from django.contrib import admin
from django.urls import path
from website import views

urlpatterns = [
path('admin/', admin.site.urls),
path('welcome/', views.welcome)
]
5 changes: 5 additions & 0 deletions website/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.


def welcome(request):
return HttpResponse("Welcome to your website Pyl!")

0 comments on commit 549f002

Please sign in to comment.