Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Many thanks for your reply Karen. I followed your first suggestion, removing quoted strings, which didn't make a difference. I don't know why I was importing django.forms in my models.py as I wasn't using it, so I removed that. I have now fixed this by simply changing the location of the

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Karen Tracey
On Mon, May 2, 2011 at 5:49 AM, Nick wrote: > I'm having a very strange problem with a site I've developed, which > only seems to happen when DEBUG=False and is now preventing my from > launching the site (unless I launch it in DEBUG mode, which I > obviously don't want to). The

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Hi, Yes sorry that wasn't clear. There is basically: page = get_object_or_404(models.Page, slug=level0) which varies depending on the number of "level" arguments passed into the view. So "page" will always be a lookup of a Page object. Thanks, Nick On May 2, 11:05 am, Xavier Ordoquy

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Xavier Ordoquy
Le 2 mai 2011 à 11:49, Nick a écrit : > Hi, > > I'm having a very strange problem with a site I've developed, which > only seems to happen when DEBUG=False and is now preventing my from > launching the site (unless I launch it in DEBUG mode, which I > obviously don't want to). The EXACT same

Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Hi, I'm having a very strange problem with a site I've developed, which only seems to happen when DEBUG=False and is now preventing my from launching the site (unless I launch it in DEBUG mode, which I obviously don't want to). The EXACT same code works in DEBUG=True, but with DEBUG=False I get