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
031ac985
Commit
031ac985
authored
May 29, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mimetype additions in studio startup
parent
57025cd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
cms/startup.py
+16
-0
lms/startup.py
+2
-0
No files found.
cms/startup.py
View file @
031ac985
...
@@ -14,3 +14,19 @@ def run():
...
@@ -14,3 +14,19 @@ def run():
Executed during django startup
Executed during django startup
"""
"""
autostartup
()
autostartup
()
add_mimetypes
()
def
add_mimetypes
():
"""
Add extra mimetypes. Used in xblock_resource.
If you add a mimetype here, be sure to also add it in lms/startup.py.
"""
import
mimetypes
mimetypes
.
add_type
(
'application/vnd.ms-fontobject'
,
'.eot'
)
mimetypes
.
add_type
(
'application/x-font-opentype'
,
'.otf'
)
mimetypes
.
add_type
(
'application/x-font-ttf'
,
'.ttf'
)
mimetypes
.
add_type
(
'application/font-woff'
,
'.woff'
)
lms/startup.py
View file @
031ac985
...
@@ -35,6 +35,8 @@ def run():
...
@@ -35,6 +35,8 @@ def run():
def
add_mimetypes
():
def
add_mimetypes
():
"""
"""
Add extra mimetypes. Used in xblock_resource.
Add extra mimetypes. Used in xblock_resource.
If you add a mimetype here, be sure to also add it in cms/startup.py.
"""
"""
import
mimetypes
import
mimetypes
...
...
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