Permalink
Browse files

make filebrowser link appear in admin

  • Loading branch information...
1 parent 35f1b7b commit 951706e16fb9e1f68b2af468525092a26c717187 @wardi committed May 18, 2012
Showing with 10 additions and 1 deletion.
  1. +6 −0 cms_example/sites/common/templates/admin/index_filebrowser.html
  2. +4 −1 cms_example/urls.py
@@ -0,0 +1,6 @@
+{% extends "admin/index.html" %}
+
+{% block content %}
+{% include "filebrowser/append.html" %}
+{{ block.super }}
+{% endblock content %}
View
@@ -1,11 +1,14 @@
from django.conf.urls.defaults import patterns, include, url
-# Uncomment the next two lines to enable the admin:
from django.contrib import admin
+
+admin.site.index_template = 'admin/index_filebrowser.html'
admin.autodiscover()
urlpatterns = patterns('',
+ url(r'^admin/filebrowser/', include('filebrowser.urls')),
url(r'^admin/', include(admin.site.urls)),
+
)
# THIS MUST BE LAST

0 comments on commit 951706e

Please sign in to comment.