thank you very much,

I add MEDIA_URL and workink all.

Milan


Dne středa, 23. ledna 2013 11:46:11 UTC+1 psjinx napsal(a):
>
> Hey Milan,
>
> Uploaded files are available at `MEDIA_URL` which is generally set to 
> `/media`. So if you enable serving for media files, then your file should 
> be available at
>
> http://127.0.0.1:8000/media/scany/2013/01/21/hrebci.pdf
>
> Please have a look at official documentation for this, 
> https://docs.djangoproject.com/en/1.4/howto/static-files/#serving-other-directories
> .
>
> --
> Pankaj Singh
> http://about.me/psjinx
>
>
> On Tue, Jan 22, 2013 at 6:08 AM, grat <grat...@gmail.com <javascript:>>wrote:
>
>> 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...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
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/-/-61X3SuBcEYJ.
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