Skip to content

Commit

Permalink
[admin] Added new openwisp admin theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 1, 2017
1 parent 8968184 commit 519c5c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django_netjsonconfig',
'django_netjsonconfig.admin_theme',
'django.contrib.admin',
'sortedm2m',
'reversion',
Expand Down
6 changes: 2 additions & 4 deletions templates/openwisp2/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django_netjsonconfig.admin_theme.admin import admin, openwisp_admin

admin.autodiscover()
admin.site.site_url = None

openwisp_admin()

urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
Expand Down

0 comments on commit 519c5c4

Please sign in to comment.