Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ce2cbb74
Commit
ce2cbb74
authored
May 22, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2104 from edx/edx-West/enable-django-admin-site
add MITX Feature setting to enable django admin site
parents
d7105ddf
5fc8469a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lms/envs/common.py
+1
-0
lms/urls.py
+2
-2
No files found.
lms/envs/common.py
View file @
ce2cbb74
...
...
@@ -72,6 +72,7 @@ MITX_FEATURES = {
'ENABLE_PSYCHOMETRICS'
:
False
,
# real-time psychometrics (eg item response theory analysis in instructor dashboard)
'ENABLE_DJANGO_ADMIN_SITE'
:
False
,
# set true to enable django's admin site, even on prod (e.g. for course ops)
'ENABLE_SQL_TRACKING_LOGS'
:
False
,
'ENABLE_LMS_MIGRATION'
:
False
,
'ENABLE_MANUAL_GIT_RELOAD'
:
False
,
...
...
lms/urls.py
View file @
ce2cbb74
...
...
@@ -8,7 +8,7 @@ from . import one_time_startup
import
django.contrib.auth.views
# Uncomment the next two lines to enable the admin:
if
settings
.
DEBUG
:
if
settings
.
DEBUG
or
settings
.
MITX_FEATURES
.
get
(
'ENABLE_DJANGO_ADMIN_SITE'
)
:
admin
.
autodiscover
()
urlpatterns
=
(
''
,
# nopep8
...
...
@@ -330,7 +330,7 @@ if settings.COURSEWARE_ENABLED:
if
settings
.
ENABLE_JASMINE
:
urlpatterns
+=
(
url
(
r'^_jasmine/'
,
include
(
'django_jasmine.urls'
)),)
if
settings
.
DEBUG
:
if
settings
.
DEBUG
or
settings
.
MITX_FEATURES
.
get
(
'ENABLE_DJANGO_ADMIN_SITE'
)
:
## Jasmine and admin
urlpatterns
+=
(
url
(
r'^admin/'
,
include
(
admin
.
site
.
urls
)),)
...
...
Write
Preview
Markdown
is supported
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