add .gitignore file
This commit is contained in:
1 parent
c9760f08e6
commit
03e37eec35
3 files changed
+17
-2
No files matched your search
+3
-2
@@ -14,9 +14,10 @@ Including another URLconf
|
|||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path, include
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
path('', include('posts.urls')),
|
||||||
|
path('posts/', include('posts.urls')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path("r'po[l]+s'")
|
|
||||||
]
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
from django.urls import path
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('', views.index, name='index'),
|
||||||
|
path('posts/', views.posts, name='posts')
|
||||||
|
]
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
from django.http import HttpResponse
|
||||||
|
|
||||||
|
def index(request):
|
||||||
|
return HttpResponse("Startseite")
|
||||||
|
|
||||||
|
def posts(request):
|
||||||
|
return HttpResponse("Posts")
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
Reference in new issue
Block a user