Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
2b7b9ada
Commit
2b7b9ada
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Make local file uploads work in dev environment
parent
7a9d142a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
envs/common.py
+2
-2
2 additions, 2 deletions
envs/common.py
envs/dev.py
+2
-1
2 additions, 1 deletion
envs/dev.py
with
4 additions
and
3 deletions
envs/common.py
+
2
−
2
View file @
2b7b9ada
...
...
@@ -135,13 +135,13 @@ STATIC_ROOT = ENV_ROOT / "staticfiles" # We don't run collectstatic -- this is t
# FIXME: We should iterate through the courses we have, adding the static
# contents for each of them. (Right now we just use symlinks.)
STATICFILES_DIRS
=
(
STATICFILES_DIRS
=
[
PROJECT_ROOT
/
"
static
"
,
ASKBOT_ROOT
/
"
askbot
"
/
"
skins
"
,
# This is how you would use the textbook images locally
# ("book", ENV_ROOT / "book_images")
)
]
# Locale/Internationalization
TIME_ZONE
=
'
America/New_York
'
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
...
...
This diff is collapsed.
Click to expand it.
envs/dev.py
+
2
−
1
View file @
2b7b9ada
...
...
@@ -73,7 +73,8 @@ DEBUG_TOOLBAR_PANELS = (
############################ FILE UPLOADS (ASKBOT) #############################
DEFAULT_FILE_STORAGE
=
'
django.core.files.storage.FileSystemStorage
'
MEDIA_ROOT
=
ENV_ROOT
/
"
uploads
"
MEDIA_URL
=
"
/discussion/upfiles/
"
MEDIA_URL
=
"
/static/uploads/
"
STATICFILES_DIRS
.
append
((
"
uploads
"
,
MEDIA_ROOT
))
FILE_UPLOAD_TEMP_DIR
=
ENV_ROOT
/
"
uploads
"
FILE_UPLOAD_HANDLERS
=
(
'
django.core.files.uploadhandler.MemoryFileUploadHandler
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment