Skip to content

Commit

Permalink
Ch17: Redirect site homepage with GCBV.
Browse files Browse the repository at this point in the history
  • Loading branch information
jambonrose committed Jul 30, 2015
1 parent 18cf8cb commit b02e39d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 5 additions & 3 deletions suorganizer/urls.py
Expand Up @@ -17,17 +17,19 @@
from django.contrib import admin
from django.contrib.flatpages import \
urls as flatpage_urls
from django.views.generic import RedirectView

from blog import urls as blog_urls
from contact import urls as contact_urls
from organizer.urls import (
newslink as newslink_urls,
startup as startup_urls, tag as tag_urls)

from .views import redirect_root

urlpatterns = [
url(r'^$', redirect_root),
url(r'^$',
RedirectView.as_view(
pattern_name='blog_post_list',
permanent=False)),
url(r'^admin/', include(admin.site.urls)),
url(r'^blog/', include(blog_urls)),
url(r'^contact/', include(contact_urls)),
Expand Down
5 changes: 0 additions & 5 deletions suorganizer/views.py

This file was deleted.

0 comments on commit b02e39d

Please sign in to comment.