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

Admin URLs Configuration #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install django-page-cms in an existing project where urls.py calls admin 
urls by "('^admin/', include(admin.site.urls))," (See: 
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-
instances-into-your-urlconf)
2. Log in to admin
3. Go to List of Pages "/admin/pages/page/"

What is the expected output? What do you see instead?

Should show list of pages, instead shows no pages. Pages can be added and 
accessed on public site, show in DB everywhere except admin list of pages, 
which comes up blank.

What version of the product are you using? On what operating system?

django-page-cms r597 on Current Django SVN Development version (1.1beta). I 
am working with this revision since I had problems with recent language 
upgrades.

Please provide any additional information below.

Took me 2 frustrating days to discover the solution to this was to have the 
admin URLs called as " (r'^admin/(.*)', admin.site.root), " per your 
example project's urls.py.

I think this should be mentioned in the documentation or needs a bug fix.

Thanks!

Original issue reported on code.google.com by ronaldwh...@gmail.com on 11 Jul 2009 at 3:31

GoogleCodeExporter commented 9 years ago
Just realized this is shown in the wiki under InstallDjangoPageCMS, maybe all 
it needs 
is just a line expressing just how important keeping the admin URLs the same is 
;) 

Thanks!

Original comment by ronaldwh...@gmail.com on 11 Jul 2009 at 3:37

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 14 Jul 2009 at 7:19

GoogleCodeExporter commented 9 years ago
Just FYI the configuration of "(r'^admin/(.*)', admin.site.root)" was just 
officially 
deprecated in Django 1.1: 
http://docs.djangoproject.com/en/dev/releases/1.1/#features-
deprecated-in-1-1

If you use the correct configuration "(r'^admin/', include(admin.site.urls))," 
it 
breaks the Admin list view for django-page-cms.

Original comment by ronaldwh...@gmail.com on 30 Jul 2009 at 10:59