The real brain buster is that I get this error whether I'm passing a
form_class or a simple Model in urls.py

On Aug 24, 11:05 am, BobZ <bobzav...@gmail.com> wrote:
> Thanks for the quick response!
>
> forms.py
>
> from django import forms
> from django.forms import ModelForm
> from models import Photo
>
> class UserPhotoUploadForm(ModelForm):
>     def __init__(self, *args, **kwargs ):
>         self.user = kwargs.pop("user")
>         super(UserPhotoUploadForm, self).__init__(*args, **kwargs)
>
>     class Meta:
>         model = Photo
>         exclude = ( 'user', 'title_slug', 'view_count',
> 'date_added', )
>
> On Aug 24, 10:57 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
>
> > On Aug 24, 4:26 pm, BobZ <bobzav...@gmail.com> wrote:
>
> > > I'm having a similar problem actually.
>
> > > I'm trying to extend Photologue to offer front-end user upload
> > > capability with generic views and I haven't been able to successfully
> > > render a page yet.
> > > Each of the commented-out "upload_args" are variations I've tried to
> > > get something back and none of them have worked.
>
> > > urls.py
> > > #upload_args = {'model': Photo }
> > > #upload_args = {'model': Photo, 'template_name':'photologue/
> > > photo_upload.html' }
> > > #upload_args = {'form_class':UserPhotoUploadForm }
> > > #upload_args = {'form_class':UserPhotoUploadForm,
> > > 'template_name':'photologue/photo_upload.html' }
> > > upload_args = dict(form_class=UserPhotoUploadForm)
>
> > > urlpatterns += patterns('django.views.generic.create_update',
> > >     url(r'^photo/upload/$', 'create_object', upload_args ),
> > > )
>
> > > I continue to get this kind of cryptic error:
>
> > > Page not found (404)
> > > Request Method:         GET
> > > Request URL:    http://localhost/photologue/photo/upload/
>
> > > No <django.utils.functional.__proxy__ object at 0x89eecac> found
> > > matching the query
>
> > > Any help or guidance would be greatly appreciated!  :o)
>
> > Sounds like there's a problem with your form definition. Can you post
> > that?
> > --
> > DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to