Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
23cb0d09
Commit
23cb0d09
authored
Mar 26, 2012
by
Dan McGee
Browse files
Remove media/ staticfiles URL location
Signed-off-by:
Dan McGee
<
dan@archlinux.org
>
parent
611e3017
Changes
1
Hide whitespace changes
Inline
Side-by-side
urls.py
View file @
23cb0d09
...
...
@@ -107,9 +107,4 @@
urlpatterns
+=
patterns
(
'django.views.generic.simple'
,
(
old_url
,
'redirect_to'
,
{
'url'
:
new_url
}))
if
settings
.
DEBUG
==
True
:
urlpatterns
+=
patterns
(
''
,
(
r
'^media/(.*)$'
,
'django.views.static.serve'
,
{
'document_root'
:
os
.
path
.
join
(
settings
.
DEPLOY_PATH
,
'media'
)}))
# vim: set ts=4 sw=4 et:
Write
Preview
Supports
Markdown
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