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
ee258f7a
Commit
ee258f7a
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Fix place where simplewiki was importing the wrong settings
parent
0856f551
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoapps/simplewiki/views_attachments.py
+13
-6
13 additions, 6 deletions
djangoapps/simplewiki/views_attachments.py
with
13 additions
and
6 deletions
djangoapps/simplewiki/views_attachments.py
+
13
−
6
View file @
ee258f7a
...
...
@@ -3,14 +3,21 @@ import os
from
django.contrib.auth.decorators
import
login_required
from
django.core.servers.basehttp
import
FileWrapper
from
django.db.models.fields.files
import
FieldFile
from
django.http
import
HttpResponse
,
HttpResponseRedirect
,
HttpResponseForbidden
,
Http404
from
django.http
import
HttpResponse
,
HttpResponseForbidden
,
Http404
from
django.template
import
loader
,
Context
from
settings
import
*
# TODO: Clean up
from
models
import
Article
,
ArticleAttachment
,
get_attachment_filepath
from
views
import
not_found
,
check_permissions
,
get_url_path
,
fetch_from_url
from
simplewiki.settings
import
WIKI_ALLOW_ANON_ATTACHMENTS
from
models
import
ArticleAttachment
,
get_attachment_filepath
from
views
import
check_permissions
,
fetch_from_url
from
wiki_settings
import
(
WIKI_ALLOW_ANON_ATTACHMENTS
,
WIKI_ALLOW_ATTACHMENTS
,
WIKI_ATTACHMENTS_MAX
,
WIKI_ATTACHMENTS_ROOT
,
WIKI_ATTACHMENTS_ALLOWED_EXTENSIONS
,
WIKI_REQUIRE_LOGIN_VIEW
,
WIKI_REQUIRE_LOGIN_EDIT
,
)
def
add_attachment
(
request
,
wiki_url
):
...
...
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