Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-dashboard
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-analytics-dashboard
Commits
e54e840e
Commit
e54e840e
authored
Dec 28, 2016
by
Gabe Mulley
Committed by
Gabe Mulley
Dec 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serve assets on devstack
parent
a90fdb74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
analytics_dashboard/settings/base.py
+1
-0
analytics_dashboard/settings/production.py
+7
-5
analytics_dashboard/urls.py
+6
-0
No files found.
analytics_dashboard/settings/base.py
View file @
e54e840e
...
...
@@ -24,6 +24,7 @@ path.append(DJANGO_ROOT)
########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG
=
False
ENABLE_INSECURE_STATIC_FILES
=
False
########## END DEBUG CONFIGURATION
...
...
analytics_dashboard/settings/production.py
View file @
e54e840e
...
...
@@ -4,12 +4,14 @@ from analytics_dashboard.settings.base import *
from
analytics_dashboard.settings.yaml_config
import
*
from
analytics_dashboard.settings.logger
import
get_logger_config
# Enable offline compression of CSS/JS
COMPRESS_ENABLED
=
True
COMPRESS_OFFLINE
=
True
# Use r.js to combine RequireJS files
RJS_OPTIMIZATION_ENABLED
=
True
if
not
DEBUG
:
# Enable offline compression of CSS/JS
COMPRESS_ENABLED
=
True
COMPRESS_OFFLINE
=
True
# Use r.js to combine RequireJS files
RJS_OPTIMIZATION_ENABLED
=
True
# Minify CSS
COMPRESS_CSS_FILTERS
+=
[
...
...
analytics_dashboard/urls.py
View file @
e54e840e
...
...
@@ -8,6 +8,7 @@ from django.core.urlresolvers import reverse_lazy
from
django.views
import
defaults
from
django.views.generic
import
RedirectView
from
django.views.i18n
import
javascript_catalog
from
django.contrib.staticfiles
import
views
as
static_views
# pylint suggests importing analytics_dashboard.core, which causes errors in our AMI
# pylint: disable=relative-import
...
...
@@ -67,3 +68,8 @@ if settings.DEBUG: # pragma: no cover
urlpatterns
+=
[
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
]
if
settings
.
ENABLE_INSECURE_STATIC_FILES
:
urlpatterns
+=
[
url
(
r'^static/(?P<path>.*)$'
,
static_views
.
serve
),
]
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