Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
c746d12c
Commit
c746d12c
authored
May 25, 2011
by
Christophe Siraut
Browse files
Adding correct static path for debug mode.
parent
506d9336
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings.py
View file @
c746d12c
...
...
@@ -51,6 +51,8 @@ USE_I18N = True
# Example: "/home/media/media.lawrence.com/"
# Change this for production
MEDIA_ROOT
=
'/var/www/nuages/static/'
if
DEBUG
:
MEDIA_ROOT
=
os
.
path
.
join
(
PROJECT_DIR
,
'static'
)
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
...
...
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