From 661e24eff619af07631870d190e4c87f007e0511 Mon Sep 17 00:00:00 2001 From: mekougoumfotsca56064 Date: Tue, 5 Nov 2019 15:17:32 +0100 Subject: [PATCH] djangoprojekt --- news/news/settings.py | 1 + news/news/urls.py | 3 ++- news/posts/migrations/__init__.py | 0 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 news/posts/migrations/__init__.py diff --git a/news/news/settings.py b/news/news/settings.py index bfd7583..bd43bdb 100644 --- a/news/news/settings.py +++ b/news/news/settings.py @@ -37,6 +37,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'posts' ] MIDDLEWARE = [ diff --git a/news/news/urls.py b/news/news/urls.py index ce50789..496a460 100644 --- a/news/news/urls.py +++ b/news/news/urls.py @@ -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('admin/', admin.site.urls), + path('posts', include('posts.urls')) ] diff --git a/news/posts/migrations/__init__.py b/news/posts/migrations/__init__.py new file mode 100644 index 0000000..e69de29