Nexus/Gargoyle media file and Django Collectstatic

95 views
Skip to first unread message

Alex Hung

unread,
Sep 19, 2011, 10:10:24 AM9/19/11
to disqus-opensource
Hi,

My site uses Django's collectstatic to serve static files (images, js,
css, etc.). Nexus + Gargoyle runs fine on the local dev server but
when I deploy them to the actual test server which uses collectstatic,
Nexus media urls are all broken since collectstatic doesn't see Nexus
media files.

I can't find any documentation (or Google results) on how to setup
Nexus to serve its media file. Is there a NEXUS_MEDIA_URL setting or
something similar so I can point Nexus to its media files?

Thanks

David Cramer

unread,
Sep 19, 2011, 1:15:07 PM9/19/11
to disqus-o...@googlegroups.com
Hey Alex,

There are two related settings, you prefix either of these with NEXUS_ in your settings.py:

Alex Hung

unread,
Sep 19, 2011, 5:54:52 PM9/19/11
to disqus-opensource
Thanks! That works.

On Sep 19, 1:15 pm, David Cramer <dcra...@gmail.com> wrote:
> Hey Alex,
>
> There are two related settings, you prefix either of these with NEXUS_ in
> your settings.py:
>
> https://github.com/disqus/nexus/blob/master/nexus/conf.py
>
> --
> David Cramerhttp://disqus.com/zeeghttp://twitter.com/zeeg
Reply all
Reply to author
Forward
0 new messages