Hoff
Hoff

Reputation: 39846

Django on Webfaction: Serving static admin media files - configuration

I having trouble serving Django's static admin files on webfaction.

Here's how I'm currently set up:

However, following the link I get a 404 page (from nginx).

I've played around with this forever now, so any ideas what might be wrong here, or any recommendations on how to troubleshoot this would be really appreciated!

Upvotes: 1

Views: 3126

Answers (2)

panchicore
panchicore

Reputation: 11932

In your second point URL path entry would be /media/admin as you can see in webfaction-docs.

Their support is really good when you open a ticket or post a question in their django forums :)

Upvotes: 1

Dominic Rodger
Dominic Rodger

Reputation: 99771

I think you're missing a trailing slash on the "Symbol link to static-only app", it should be:

/home/myusername/webapps/mydjangoapp/lib/python2.5/django/contrib/admin/media/

(or at least, that's what works for me at Webfaction).

If that doesn't work - ask them, they've got really the most helpful support team of any hosting company I've used ever.

Upvotes: 1

Related Questions