google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Pages failing appear in admin page list #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One of my installations refuses to show any pages in the admin page list.
You can still access the retail pages, as well as find the edit pages, and
they both work fine.

'pages' appears to be None when change_list_table.html tries to render {%
for page in pages %}

Another one of my installations does not have this problem, and is running
the exact same version of django-page-cms (both are symlinked). I can't
find any discernible difference between the two installations, after
researching both setups for a few hours.

I'll be continuing to research the problem and will post here if I find
anything out.

Original issue reported on code.google.com by intellin...@gmail.com on 19 Nov 2009 at 2:17

GoogleCodeExporter commented 9 years ago
Fixed. If anyone else has the problem, make sure you're using the new-style 
admin URLs:

(r'^admin/', include(admin.site.urls)),

This version will cause the pages to disappear in admin list (even though the 
rest of
admin works fine):

(r'^admin/?(.*)', admin.site.root),

Original comment by intellin...@gmail.com on 19 Nov 2009 at 2:29

GoogleCodeExporter commented 9 years ago
I'm hitting this exact bug in both the downloaded version and the latest svn 
but this
fix doesnt work.

### URLS.PY
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
        (r'^admin/', include(admin.site.urls)),
        url(r'^pages/', include('pages.urls')),
)

I get this error whenever I try and view admin/pages/pages:

Template error: In template
/var/lib/python-support/python2.5/pages/templates/admin/pages/page/change_list_t
able.html,
error at line 28

Original comment by roger.bu...@gmail.com on 19 Dec 2009 at 11:50

GoogleCodeExporter commented 9 years ago
No news on how to resolve that? How can I reproduce easily?

Original comment by batiste....@gmail.com on 31 Dec 2009 at 10:32

GoogleCodeExporter commented 9 years ago
I'm no longer having the issue - not sure about Roger.

Original comment by intellin...@gmail.com on 31 Dec 2009 at 1:16

GoogleCodeExporter commented 9 years ago
The issue appears to be happening again ever since I upgraded to r786.

I'll investigate a bit.

Original comment by intellin...@gmail.com on 5 Jan 2010 at 3:05

GoogleCodeExporter commented 9 years ago
OK, working now with the new-style admin URL. Have no idea how that changed.

Original comment by intellin...@gmail.com on 5 Jan 2010 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 14 Jan 2010 at 12:33

GoogleCodeExporter commented 9 years ago
(r'^admin/', include(admin.site.urls)),
It's works, I appreciate that you have done that, I almost faint with it.Thank 
you so
much.

Original comment by gzer...@gmail.com on 15 Mar 2010 at 3:40