From 479107efa34b71a51c9bb509601b0f87906c9fe1 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 31 Oct 2017 17:01:48 +0300 Subject: [PATCH] init --- blog/templates/blog/base.html | 6 ------ mysite/settings.py | 2 ++ mysite/urls.py | 3 --- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/blog/templates/blog/base.html b/blog/templates/blog/base.html index c4f62af..015834c 100644 --- a/blog/templates/blog/base.html +++ b/blog/templates/blog/base.html @@ -27,12 +27,6 @@
  • all notes
  • -
  • Images - -
  • /admin
  • diff --git a/mysite/settings.py b/mysite/settings.py index 2d00a5b..ed6d93e 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -40,6 +40,8 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'blog', + 'taggit', + 'pagination', ] MIDDLEWARE_CLASSES = [ diff --git a/mysite/urls.py b/mysite/urls.py index 0257aa1..06e68ae 100644 --- a/mysite/urls.py +++ b/mysite/urls.py @@ -22,7 +22,4 @@ urlpatterns = patterns('', url(r'^admin/', admin.site.urls), url(r'^$', TemplateView.as_view(template_name='main.html')), url(r'^blog/', include('blog.urls')), - url(r'^polls/', include('polls.urls', namespace="polls")), - url(r'^imagehost/', include('imagehost.urls')), - url(r'^pfm/', include('pfm.urls')), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)