Re: Problem with Reverse

2009-07-06 Thread Rodrigue
Are there other urls defined in your file? If so, do the views they reference exist already? Django tries to load all the views it finds in all url files defined. It seems to me that you may have a url mapped to a 'select' view but that view does not exist. On Jul 6, 12:32 pm, Phil wrote: > Hi,

Re: Problem with Reverse

2009-07-06 Thread Phil
Hi, agree with that - does it work if you go through the url first? Cheers, Phil On Jul 6, 3:21 am, Karen Tracey wrote: > On Sat, Jul 4, 2009 at 11:44 PM, tam...@gmail.com wrote: > > > Hi, > > > I am trying to decouple my views.py with respect to my url.py but I > > have a problem. > > > -I d

Re: Problem with Reverse

2009-07-05 Thread Karen Tracey
On Sat, Jul 4, 2009 at 11:44 PM, tam...@gmail.com wrote: > > Hi, > > I am trying to decouple my views.py with respect to my url.py but I > have a problem. > > -I do have a principal url.py which contains and include to a second > url.py: > urlpatterns = patterns('', > (r'^users/', include('myapp.

Problem with Reverse

2009-07-05 Thread tam...@gmail.com
Hi, I am trying to decouple my views.py with respect to my url.py but I have a problem. -I do have a principal url.py which contains and include to a second url.py: urlpatterns = patterns('', (r'^users/', include('myapp.users.urls')) . -Thus the second url.py contains: url(regex='^edit/(?P\

Re: Problem with reverse lookups in Weblog example

2008-08-27 Thread Rodney Topor
OK, I solved my problem. I now understand reverse lookups well enough to be embarrassed by the code below. Sorry to have bothered you. Rodney On Aug 27, 10:39 am, Rodney Topor <[EMAIL PROTECTED]> wrote: > Hi.  Sorry to botther the group again.  I'm working through the Weblog > example in 'Prac

Problem with reverse lookups in Weblog example

2008-08-26 Thread Rodney Topor
Hi. Sorry to botther the group again. I'm working through the Weblog example in 'Practical Django Projects'. Yet again, reverse URL lookup errors prove to be the hardest to debug. In class Entry I have defined def get_absolute_url(self): return "/weblog/%s/%s/" % (self.pub_date.st

problem with reverse lookup and multiple foreignKey definitions in abstract model classes

2008-06-17 Thread Vidja
I have a postgres database (8.1.11) with > 200 tables that has regular minor changes(most of them adding fields or tables). So I want to use model inheritance to separate logic from model definition. Inspectdb creates the models which I then edit to make abstract base classes. I'm running Django 7