WebFaction
Community site: login faq

My Django admin is plain HTML, no CSS, which makes it hard to use. I created a symlink application to serve admin media according to the instructions in the documentation here: http://docs.webfaction.com/software/django/getting-started.html#serving-admin-media, but this didn't have any effect. Any suggestions?

asked 03 Apr '11, 20:05

anarres
122
accept rate: 0%


We would need the URL to be able to see what is going on, of course you may not want to submit that to the community. You may submit a support ticket at panel.webfaction.com and we would be happy to take a look.

permanent link

answered 03 Apr '11, 20:15

johns
5.4k312
accept rate: 23%

I got it working, although I don't think I did it the way you're supposed to. I looked at the HTML for the admin page and saw that it was looking for "/media/admin/css/base.css" and "/media/admin/css/dashboard.css". I found those files in Django-1.2.4/django/contrib/admin/media on my home computer. So on the Webfaction control panel I created a new static application called admin_media, and pointed it at http://example.com/media/admin (if the django app was at http://example.com). Then I copied all the files from Django-1.2.4/django/contrib/admin/media to /home/username/webapps/admin_media and voila, it works.

permanent link

answered 04 Apr '11, 05:50

anarres
122
accept rate: 0%

You did not have to copy the files, but otherwise the approach is right.

Instead of doing a copy, you can simply create a "Symlink to a static-only app" and set it to point to the folder where your media files reside.

(04 Apr '11, 05:58) tie
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×40

question asked: 03 Apr '11, 20:05

question was seen: 6,932 times

last updated: 04 Apr '11, 05:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM