On May 6, 9:30 am, djangomax <[email protected]> wrote:
> Thanks! So I just need to replace "forms" with "models and it'll work?
Are you defining a model or are you creating a form? To really be able
to answer that, the code around that one line would be helpful.
The easy answer (but not necessarily correct answer) is if this is in
models.py, it is a model. If this is in another file such as forms.py
or views.py, it is a form and you don't need to specify upload_to. But
that easy answer can be wrong in certain cases.
Regards,
John
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---