aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/urls.py
diff options
context:
space:
mode:
Diffstat (limited to '97suifangqa/urls.py')
-rw-r--r--97suifangqa/urls.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/97suifangqa/urls.py b/97suifangqa/urls.py
index fd7d7a9..12b62da 100644
--- a/97suifangqa/urls.py
+++ b/97suifangqa/urls.py
@@ -4,7 +4,7 @@ from django.contrib import admin
from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import direct_to_template
from django.contrib.auth import logout, views as auth_views
-from django.shortcuts import redirect, render_to_response
+from django.shortcuts import redirect, render
from django.conf import settings
@@ -24,26 +24,25 @@ def _logout(request, **kwargs):
return redirect('/')
urlpatterns += patterns("",
- url(r"^$", direct_to_template, {"template": "index.html"}, name="index"),
+ url(r"^$", direct_to_template,
+ {"template": "index.html"}, name="index"),
)
urlpatterns += patterns("info.views",
- url(r"^query\/?$", "query"),)
-
-urlpatterns += patterns("",
- url(r"^blog/", include('sciblog.urls')),
- url(r"^accounts/", include('profile.urls')),
- )
-def page_not_found(request):
- return render_to_response('./templates/404.html')
-
-
+ url(r"^query\/?$", "query"),
+)
-## apps/indicator
urlpatterns += patterns('',
+ url(r'^blog/', include('sciblog.urls')),
+ url(r'^accounts/', include('sfaccount.urls')),
+ url(r'^profile/', include('profile.urls')),
url(r'^indicator/', include('indicator.urls')),
+ url(r'^recommend/', include('recommend.urls')),
)
+def page_not_found(request):
+ return render(request, './templates/404.html')
+
## search (haystack)
urlpatterns += patterns('',