Skip to content

Commit

Permalink
[django] Introduced openwisp_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jun 28, 2017
1 parent 91f8a70 commit e910ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'django.contrib.staticfiles',
# openwisp2 admin theme
# (must be loaded here)
'django_netjsonconfig.admin_theme',
'openwisp_utils.admin_theme',
# all-auth
'django.contrib.sites',
'allauth',
Expand All @@ -50,6 +50,8 @@
{% endif %}
]

EXTENDED_APPS = ['django_netjsonconfig', 'django_x509']

AUTH_USER_MODEL = 'openwisp_users.User'
SITE_ID = '1'
LOGIN_REDIRECT_URL = 'admin:index'
Expand All @@ -58,7 +60,7 @@
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'openwisp_controller.staticfiles.DependencyFinder',
'openwisp_utils.staticfiles.DependencyFinder',
]

MIDDLEWARE_CLASSES = [
Expand All @@ -82,7 +84,7 @@
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'openwisp_controller.loaders.DependencyLoader'
'openwisp_utils.loaders.DependencyLoader'
],
'context_processors': [
'django.template.context_processors.debug',
Expand Down
2 changes: 1 addition & 1 deletion templates/openwisp2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView
from django_netjsonconfig.admin_theme.admin import admin, openwisp_admin
from openwisp_utils.admin_theme.admin import admin, openwisp_admin

openwisp_admin()

Expand Down

0 comments on commit e910ba4

Please sign in to comment.