Re: models get_absolute_url issue

2014-09-10 Thread Eddilbert Macharia
Hello andrew, Thank you for the reply, found where my problem was on my url.py i had done this url(r'^resource/(?P)', ResourceDetailView.as_view(), > name='resource_detail'), > instead of this > url(r'^resource/(?P\d+)', ResourceDetailView.as_view(), > name='resource_detail'), > i was l

Re: models get_absolute_url issue

2014-09-10 Thread Andrew Pinkham
Hi Eddilbert, What are the URL patterns for the two views? I suspect a problem with `pk_url_kwarg`, but I am surprised by the error output. If that is not the problem: Does this error occur if you do not override the `form_class` of `ResourceCreateView`? Could you supply the code for `CreateRes

models get_absolute_url issue

2014-09-10 Thread Eddilbert Macharia
Hello All, i get the following error when i try to load a model instancce using the based DetailView to load the model instance on template after a CreateView of the same model instance > Environment: > > > Request Method: GET > Request URL: http://localhost:8000/management/resource/25 > > Djan