I can add the field uploadedfile in model. what type is it and What should I store in it?
On Jun 21, 8:56 pm, Kenneth Gonsalves <law...@thenilgiris.com> wrote: > On Monday 22 June 2009 09:16:59 ydjango wrote: > > > 2) How do I dynamically get the url of the uploaded file? is it as > > simple as /site_media/<upload folder name>/<file.name> > > where file is the uploaded Django file object. > > if your model has a field called uploadedfile, then the url in the template > would be > {{ object.uploadedfile.url }} > -- > regards > kghttp://lawgon.livejournal.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---