Thank you all for your input. It turns out my settings file was improperly
configured. I needed to change MEDIA_ROOT and MEDIA_URL
On Tue, Apr 7, 2015 at 12:30 PM, Luis Zárate wrote:
> Hi,
>
> Django provide for development MEDIA_URL and MEDIA_ROOT for uploaded file,
> for production used static
You are not set base_url in FileSystemStorage so you are using MEDIA_URL by
default.
The imagefield url property is called like this
def _get_url(self):
self._require_file() # check if It is an object
return self.storage.url(self.name)
url = property(_get_url)
And self.st
Hi Luis,
Yes, I used {{ datamine.image.url }} in my template but it doesn't work.
I'm not sure how to format my urls.py since I haven't changed the MEDIA_URL
and MEDIA_ROOT. I want to upload these images to a location not in my
MEDIA_ROOT...?
This is my urls.py:
urlpatterns = patterns('',
# E
Hi,
Django provide for development MEDIA_URL and MEDIA_ROOT for uploaded file,
for production used static deploy strategy, see the documentation about
static files.
Model file field has an url attribute that return a media url, you use in
template like {{obj.file.url}}
El martes, 7 de abril de
Do I need to update/add something to my urls.py?
On Tuesday, April 7, 2015 at 9:51:56 AM UTC-4, Stephanie Socias wrote:
>
> Thank you very much for responding, Daniel.
>
> I'm sorry I don't quite follow- I've never done this before. I should use
> the URL {{ datamine.image.url }} in the template?
Thank you very much for responding, Daniel.
I'm sorry I don't quite follow- I've never done this before. I should use
the URL {{ datamine.image.url }} in the template?
On Tue, Apr 7, 2015 at 5:36 AM, Daniel Roseman
wrote:
> On Monday, 6 April 2015 22:38:36 UTC+1, Stephanie Socias wrote:
>>
>> I
On Monday, 6 April 2015 22:38:36 UTC+1, Stephanie Socias wrote:
>
> I've implemented this same solution (using custom file storage and the
> "upload_to" parameter) but now cannot get the uploaded files to display
> from my template. I would normally use {{ STATIC_URL }} but, since I've now
> spe
I've implemented this same solution (using custom file storage and the
"upload_to" parameter) but now cannot get the uploaded files to display
from my template. I would normally use {{ STATIC_URL }} but, since I've now
specified a custom location, I'm not sure why my path, which I've
hard-coded
I'm building a django-based media server where each person has a
private account.
The person can upload media files such as mp3s.
The media files will be uploaded to a directory '/media/
uploads/'++'/' with name of filename.mp3
I started working with this posting:
http://groups.google.com/group/
I wanted to write this post anyway, gives a quick solution to upload
files above the public directory and serve the files with django-
filetransfers. Hopefully it will be easier to find from search
engines.
http://nemesisdesign.net/blog/coding/django-private-file-upload-and-serving/
On Sep 30,
Hi,
To me, it looks like the documentation already gave the answer.
Regards,
Xavier.
Le 30 sept. 2010 à 10:37, Federico Capoano a écrit :
> PS: i'll post a solution so other noobs like me will see how to do
> that..
>
>
> On 30 Set, 10:35, Federico Capoano wrote:
>> Yes you're right, I'm try
PS: i'll post a solution so other noobs like me will see how to do
that..
On 30 Set, 10:35, Federico Capoano wrote:
> Yes you're right, I'm trying it out. I'll post a solution when I'm
> done.
>
> On 30 Set, 10:10, Xavier Ordoquy wrote:
>
>
>
> > Well, the documentation already tells you about
Yes you're right, I'm trying it out. I'll post a solution when I'm
done.
On 30 Set, 10:10, Xavier Ordoquy wrote:
> Well, the documentation already tells you about
> it:http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-files...
>
> Le 30 sept. 2010 à 09:49, Federico Capoano a écrit
Well, the documentation already tells you about it:
http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-filesystem-storage-class
Le 30 sept. 2010 à 09:49, Federico Capoano a écrit :
> Is this not possible? I wonder why Django force to upload files only
> in a certain directory and doe
On Sep 30, 9:49 am, Federico Capoano wrote:
> Is this not possible? I wonder why Django force to upload files only
> in a certain directory and doesn't allow more flexibility.
>
> On 29 Set, 19:46, Federico Capoano wrote:
>
> > Hi everyone,
>
> > is it possible to write a custom model filefield t
Is this not possible? I wonder why Django force to upload files only
in a certain directory and doesn't allow more flexibility.
On 29 Set, 19:46, Federico Capoano wrote:
> Hi everyone,
>
> is it possible to write a custom model filefield that upload files
> somewhere above the public directory?
Hi everyone,
is it possible to write a custom model filefield that upload files
somewhere above the public directory?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubsc
17 matches
Mail list logo