Praktikum 2 fertig
This commit is contained in:
parent
ba5e0c86c0
commit
1f2e1e448b
6
posts/urls.py
Normal file
6
posts/urls.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name = 'index')
|
||||
]
|
@ -1,3 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return HttpResponse("Index der Seite Posts Applikation")
|
||||
|
@ -14,8 +14,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('posts/', include('posts.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user