diff options
Diffstat (limited to 'django/conf')
| -rw-r--r-- | django/conf/global_settings.py | 22 | ||||
| -rw-r--r-- | django/conf/project_template/settings.py | 12 |
2 files changed, 17 insertions, 17 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 3aa333ba91..191a463ac8 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -195,9 +195,9 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', + 'django.core.context_processors.static', # 'django.core.context_processors.request', 'django.contrib.messages.context_processors.messages', - 'django.contrib.staticfiles.context_processors.staticfiles', ) # Output to use in template system for invalid (e.g. misspelled) variables. @@ -256,13 +256,21 @@ SECRET_KEY = '' DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' # Absolute filesystem path to the directory that will hold user-uploaded files. -# Example: "/home/media/media.lawrence.com/" +# Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. -# Example: "http://media.lawrence.com" +# Example: "http://media.lawrence.com/media/" MEDIA_URL = '' +# Absolute path to the directory that holds static files. +# Example: "/home/media/media.lawrence.com/static/" +STATIC_ROOT = '' + +# URL that handles the static files served from STATIC_ROOT. +# Example: "http://media.lawrence.com/static/" +STATIC_URL = None + # List of upload handler classes to be applied in order. FILE_UPLOAD_HANDLERS = ( 'django.core.files.uploadhandler.MemoryFileUploadHandler', @@ -552,14 +560,6 @@ FIXTURE_DIRS = () # STATICFILES # ############### -# Absolute path to the directory that holds media. -# Example: "/home/media/media.lawrence.com/static/" -STATICFILES_ROOT = '' - -# URL that handles the static files served from STATICFILES_ROOT. -# Example: "http://media.lawrence.com/static/" -STATICFILES_URL = '/static/' - # A list of locations of additional static files STATICFILES_DIRS = () diff --git a/django/conf/project_template/settings.py b/django/conf/project_template/settings.py index 1d33dd13c9..e0265579b8 100644 --- a/django/conf/project_template/settings.py +++ b/django/conf/project_template/settings.py @@ -49,16 +49,16 @@ MEDIA_ROOT = '' # 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). -# Examples: "http://media.lawrence.com", "http://example.com/media/" +# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" MEDIA_URL = '' -# Absolute path to the directory that holds media. +# Absolute path to the directory that holds static files. # Example: "/home/media/media.lawrence.com/static/" -STATICFILES_ROOT = '' +STATIC_ROOT = '' -# URL that handles the static files served from STATICFILES_ROOT. -# Example: "http://static.lawrence.com/", "http://example.com/static/" -STATICFILES_URL = '/static/' +# URL that handles the static files served from STATIC_ROOT. +# Example: "http://media.lawrence.com/static/" +STATIC_URL = '/static/' # URL prefix for admin media -- CSS, JavaScript and images. # Make sure to use a trailing slash. |
