Browse Source

djangoprojekt

master
mekougoumfotsca56064 5 years ago
parent
commit
661e24eff6
3 changed files with 3 additions and 1 deletions
  1. 1
    0
      news/news/settings.py
  2. 2
    1
      news/news/urls.py
  3. 0
    0
      news/posts/migrations/__init__.py

+ 1
- 0
news/news/settings.py View File

'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'posts'
] ]


MIDDLEWARE = [ MIDDLEWARE = [

+ 2
- 1
news/news/urls.py View File

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('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('posts', include('posts.urls'))
] ]

+ 0
- 0
news/posts/migrations/__init__.py View File


Loading…
Cancel
Save