Revision: 656
Author: batiste.bieler
Date: Mon Aug 24 04:12:38 2009
Log: Fix issue 146
http://code.google.com/p/django-page-cms/source/detail?r=656

Modified:
  /trunk/doc/installation.rst
  /trunk/pages/managers.py

=======================================
--- /trunk/doc/installation.rst Mon Jul 20 23:57:02 2009
+++ /trunk/doc/installation.rst Mon Aug 24 04:12:38 2009
@@ -58,7 +58,7 @@
      urlpatterns = patterns('',
          ...
          url(r'^pages/', include('pages.urls')),
-        (r'^admin/(.*)', admin.site.root),
+        (r'^admin/', include(admin.site.urls)),
      )

  When you will visit the site the first time (``/pages/``), you will get a  
404 error
=======================================
--- /trunk/pages/managers.py    Fri Aug 21 10:44:30 2009
+++ /trunk/pages/managers.py    Mon Aug 24 04:12:38 2009
@@ -228,9 +228,9 @@

          url = normalize_url(path)
          # ยง1: try with complete query string
-        if ("QUERY_STRING" in request.META and
-                request.META["QUERY_STRING"] != ""):
-            url = url + '?' + request.META["QUERY_STRING"]
+        query = request.META.get('QUERY_STRING')
+        if query:
+            url = url + '?' + query
          try:
              alias = PageAlias.objects.get(url=url)
              return alias

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to