Re: Admin URLs not working correctly

2009-09-28 Thread Michael Williamson
> If you move your admin registrations to an admin.py file > I believe your problem will go away. Right you are! Well, that was somewhat foolish of me. Thanks for your patience. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Admin URLs not working correctly

2009-09-27 Thread Michael Williamson
> A small, recreatable example would help. I've just recreated by doing the following, all with Django 1.1: 1. Run django-admin startproject bug 2. Set DATABASE_ENGINE to sqlite3 and DATABASE_NAME to /tmp/bug- database 3. Add 'django.contrib.admin' to INSTALLED_APPS 4. Edit urls.py so th

Re: Admin URLs not working correctly

2009-09-27 Thread Michael Williamson
> You've listed one that doesn't work -- /admin/blog/comment/add. Is comment > listed as a model at all under /admin/blog when things break? Does > /admin/blog/comment/ work to show a change list of comment models? Can you > bring up a detail page on an existing one? Successfully change it? I

Re: Overriding verbose_name in contrib or 3rd-party apps?

2009-09-27 Thread Michael Williamson
On Sep 25, 9:59 pm, ringemup wrote: > Is there an easy way to override strings like help_text or > verbose_name or __unicode__ methods for models in contrib or third- > party apps? I can't seem to find anything on Google. > > Thanks! A reasonably hacktastic way of doing this is monkey-patching.

Admin URLs not working correctly

2009-09-27 Thread Michael Williamson
Admin URLs do not seem to behaving themselves for me. My urls.py looks like this: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/ blog/'