Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
06cde68f
Commit
06cde68f
authored
Apr 23, 2017
by
Okhin
Browse files
Fixing the ManagerSite thing
parent
a6eba535
Changes
2
Hide whitespace changes
Inline
Side-by-side
bt/admin.py
View file @
06cde68f
...
...
@@ -39,3 +39,5 @@ admin.site.register(models.Operator, OperatorAdmin)
class
ManagerSite
(
AdminSite
):
site_header
=
'Manager Site'
manager_site
=
ManagerSite
(
name
=
'manager'
)
nnmon/urls.py
View file @
06cde68f
...
...
@@ -6,7 +6,7 @@ from django.contrib import admin
from
bt
import
views
as
bt
from
bt.feeds
import
RssSiteNewsFeed
,
AtomSiteNewsFeed
from
bt.api
import
APIResource
,
OperatorResource
from
bt.admin
import
M
anager
S
ite
from
bt.admin
import
m
anager
_s
ite
api_resource
=
APIResource
()
operator_api_resource
=
OperatorResource
()
...
...
@@ -87,7 +87,7 @@ urlpatterns = patterns('',
url
(
r
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
# Manager admin site
url
(
'
r^manager/'
,
M
anager
S
ite
.
urls
),
url
(
r
'
^manager/'
,
m
anager
_s
ite
.
urls
),
)
if
settings
.
DEV_SERVER
==
True
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment