summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-04-25 19:17:47 +0000
committerClaude Paroz <claude@2xlibre.net>2012-04-25 19:17:47 +0000
commit1858e476721890ce1f47dfa4d2739d9e0f11621b (patch)
treef8476bdf1de3cff6217ed4c77428eca3ef86db78 /docs/topics/http
parentea9dc9f4b03ae034c1dc080730422dda7a9c2e47 (diff)
Fixed #18033 -- Removed function-based generic views, as per official deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/generic-views.txt2
-rw-r--r--docs/topics/http/urls.txt12
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/topics/http/generic-views.txt b/docs/topics/http/generic-views.txt
index 15f895ea78..fdaa27dcd0 100644
--- a/docs/topics/http/generic-views.txt
+++ b/docs/topics/http/generic-views.txt
@@ -2,4 +2,4 @@
Generic views
=============
-See :doc:`/ref/generic-views`.
+See :doc:`/ref/class-based-views`.
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index 73c06ca2ae..ee1d4e8616 100644
--- a/docs/topics/http/urls.txt
+++ b/docs/topics/http/urls.txt
@@ -416,8 +416,8 @@ Old::
from django.conf.urls import patterns, url, include
urlpatterns = patterns('',
- (r'^$', 'django.views.generic.date_based.archive_index'),
- (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'django.views.generic.date_based.archive_month'),
+ (r'^$', 'myapp.views.app_index'),
+ (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'myapp.views.month_display'),
(r'^tag/(?P<tag>\w+)/$', 'weblog.views.tag'),
)
@@ -425,9 +425,9 @@ New::
from django.conf.urls import patterns, url, include
- urlpatterns = patterns('django.views.generic.date_based',
- (r'^$', 'archive_index'),
- (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$','archive_month'),
+ urlpatterns = patterns('myapp.views',
+ (r'^$', 'app_index'),
+ (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$','month_display'),
)
urlpatterns += patterns('weblog.views',
@@ -579,7 +579,7 @@ In this example, for a request to ``/blog/2005/``, Django will call the
year='2005', foo='bar'
-This technique is used in :doc:`generic views </ref/generic-views>` and in the
+This technique is used in the
:doc:`syndication framework </ref/contrib/syndication>` to pass metadata and
options to views.