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
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,
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.
3 matches
Mail list logo