hi,

i cannot download file upladed by admin.

i have this model:
class Smlouvy(models.Model):
    note    = models.TextField(blank=True)
    pdf        = models.FileField( upload_to = 
'scany/%Y/%m/%d',blank=True,verbose_name="Pdf Filw")

in Admin i upladed file, and file is in correct directory. But cannot 
download this file. I get this error:

...
Page not found (404)Request Method:GETRequest URL:
http://127.0.0.1:8000/scany/2013/01/21/hrebci.pdf

Using the URLconf defined in maxmart.urls, Django tried these URL patterns, 
in this order:

   1. ^admin/

The current URL, scany/2013/01/21/hrebci.pdf, didn't match any of these.


Do you know, where is problem? 


Thanks Milan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/pKPcvF3xW10J.
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