Create graph_followers template Add urlconf for graph_followers Redirect use to followers view instead of just calling it
18 lines
603 B
Python
18 lines
603 B
Python
# -*- coding: utf-8 -*-
|
|
from django.conf import settings
|
|
from django.conf.urls import patterns, url, include
|
|
from django.contrib import admin
|
|
import re
|
|
|
|
import views
|
|
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^%s(?P<path>.*)$' % re.escape(settings.STATIC_URL.lstrip('/')), 'django.contrib.staticfiles.views.serve', {'insecure': True}),
|
|
url(r'^admin/', include(admin.site.urls)),
|
|
url(r'^followers/', views.graph_followers, name='followers'),
|
|
url(r'^login/$', views.login, name='login'),
|
|
url(r'^$', views.index, name='index'),
|
|
url(r'', include('social_auth.urls')),
|
|
)
|