Permalink
Browse files

Added a workaround for cases were staticfiles is not used.

  • Loading branch information...
1 parent fd2909e commit 24e1fab076a67d42b275744f96fe613eb7c90aa5 @ionelmc committed Dec 29, 2011
Showing with 11 additions and 1 deletion.
  1. +7 −0 README.rst
  2. +4 −1 src/redisboard/templates/redisboard/inspect.html
View
@@ -44,6 +44,13 @@ Or if you use south you can migrate this app::
Then you can add redis servers in the admin. You will see the stats in the changelist.
+Redisboard has few css tweaks for the pages (they are optional). If you use staticfiles just run::
+
+ manage.py collectstatic
+
+If you do not use django.contrib.staticfiles you must manually symlink the
+site-packages/redisboard/static/redisboard dir to <your media root>/redisboard.
+
Optional django settings
========================
@@ -12,7 +12,10 @@
{% block extrastyle %}
{{ block.super }}
- <link rel="stylesheet" type="text/css" href="{% get_static_prefix %}redisboard/admin.css" />
+ {% get_static_prefix as STATIC_PREFIX %}
+ {% get_media_prefix as MEDIA_PREFIX %}
+
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX|default:MEDIA_PREFIX }}redisboard/admin.css" />
{% endblock %}
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}

0 comments on commit 24e1fab

Please sign in to comment.