Monday, March 28, 2011

AW: MEDIA_URL not treated like static

I have a static folder in my Prject and my MEDIA_URL looks like this: http://127.0.0.1:8000/static/

 

. . . . . . . . . . . . . . . . . . . . . . . . . .

Patrick Szabo
XSLT Developer

LexisNexis
Marxergasse 25, 1030 Wien

patrick.szabo@lexisnexis.at

Tel.: +43 (1) 534 52 - 1573

Fax: +43 (1) 534 52 - 146


Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von galgal
Gesendet: Montag, 28. März 2011 13:38
An: django-users@googlegroups.com
Betreff: MEDIA_URL not treated like static

 

I have that dirs structure:

site_media/

    |
    ---> static/

    |

    ---> uploads/

 

static dir is set as STATIC_URL = '/site_media/static/'

uploads dir is set as MEDIA_URL = '/site_media/uploads/'

 

In that case on dev server (localhost:8000) media_url is not accessible via browser as static file, and whe I try to access it I get 404 error. How can i set it up to be seen as static?

In uploads dir are all files uploaded by users. static dir includes all my js/css/images

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


No comments:

Post a Comment