I have model classes  Suburb, Street ,Property and Event.
Each has a name , a foreign key to the model above, and the id
provided by default.  In the admin everything is fine.

The template address.html has a search field and returns a startswith
query that generates streets.

Clicking a line in the klist of streets prompts the second line of the
urlpatterns to build a list of propertys.

Clicking a line in  propertys  returns wha/address/1/3 where 1 is the
id of the street and 3 is the id of the property.  But line 1 in
urlpatterns does not work.  I have tried everything, as they say, and
have read all the docs I can find, to no avail.  I am sure
{{street.id}} is incorrect but I do not know what should replace it.

from django.conf.urls.defaults import *

urlpatterns = patterns('whasite.wha.views',

        (r'^address/{{street.id}}/(?P<property_id>\d+)/$', 'select_event'),
        (r'^address/(?P<street_id>\d+)/$', 'select_property'),
        (r'^address/$', 'select_street'),
        (r'^$', 'address'),
)

Have looked at mptt and Pyjamas, both of which seem relevant but I
want to crawl before running.

Any help would be much appreciated.  TIA

Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to