On Monday 22 June 2009 09:54:45 zweb wrote: > I can add the field uploadedfile in model. what type is it and What > should I store in it?
you have misunderstood me - I just gave that as an example. If your filefield is named 'Foo', then the url will be: {{ instance.Foo.url }}, as an example, this is a snippet of code from a template where the filefield is called 'slides': {% if p.slides %} <a href="{{ p.slides.url }}">{% trans "Click to see the presentation materials" %}</a> {% else %} {% trans "Presentation materials have not yet been added" %} {% endif %} -- regards kg http://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 -~----------~----~----~----~------~----~------~--~---