[Oi-commits] r1115 - in trunk: . st templates
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Sat Mar 8 16:31:58 EET 2008
Author: ahmet
Date: Sat Mar 8 16:31:58 2008
New Revision: 1115
Added:
trunk/templates/robots.txt
Modified:
trunk/st/views.py
trunk/urls.py
Log:
Robots
Modified: trunk/st/views.py
=================================================================
--- trunk/st/views.py (original)
+++ trunk/st/views.py Sat Mar 8 16:31:58 2008
@@ -26,6 +26,9 @@
from oi.forum.views import flood_control
from django.http import HttpResponseRedirect
+def robots(request):
+ return render_response(request, 'robots.txt')
+
def home(request):
news = News.objects.filter(status=1).order_by('-update')[:NEWS_IN_HOMEPAGE]
packages = Package.objects.filter(status=1).order_by('-update')[:PACKAGES_IN_HOMEPAGE]
Modified: trunk/urls.py
=================================================================
--- trunk/urls.py (original)
+++ trunk/urls.py Sat Mar 8 16:31:58 2008
@@ -98,6 +98,8 @@
urlpatterns = patterns('',
+ (r'^robots.txt$', 'oi.st.views.robots'),
+
#comments
(r'^comments/post/$', 'oi.comments.views.post_comment'),
More information about the Oi-commits
mailing list