On 17 Mar, 22:54, Matt Robenolt <youdontevenk...@gmail.com> wrote:
> You set up a 'media.aplikacje' alias in your nginx config, but your
> media is still attempting to be pulled from 'aplikacje/media/', so at
> this point, your MEDIA_URL is wrong. MEDIA_URL needs to be 'http://
> media.aplikacje/'

I change it couple times. Now I stick with 'http://media.aplikacje/.

> Or, you can change the server{} config for nginx to have the alias /
> media/ point to your media folder. Just make sure you put it in before
> your 'location /' or it'll never get there.

Also try this.

> The problem comes from not having the urls mapped up properly. You
> probably have an 'if DEBUG:' check where to tack on the static media
> server in Django, so it works when requests come through. With that
> off, Django doesn't know how to serve up static files, which, it
> shouldn't ever do that anyways. Nginx just needs to know how to handle
> the url directly.

So I understand that I can even erase url to static on live server
because this is only for development ?

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

Reply via email to