testappproj/settings.py.pykata
changeset 0 0b061d58aea3
equal deleted inserted replaced
-1:000000000000 0:0b061d58aea3
       
     1 # Copyright 2008 Google Inc.
       
     2 #
       
     3 # Licensed under the Apache License, Version 2.0 (the "License");
       
     4 # you may not use this file except in compliance with the License.
       
     5 # You may obtain a copy of the License at
       
     6 #
       
     7 #     http://www.apache.org/licenses/LICENSE-2.0
       
     8 #
       
     9 # Unless required by applicable law or agreed to in writing, software
       
    10 # distributed under the License is distributed on an "AS IS" BASIS,
       
    11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    12 # See the License for the specific language governing permissions and
       
    13 # limitations under the License.
       
    14 
       
    15 """Minimal Django settings."""
       
    16 
       
    17 import os
       
    18 
       
    19 
       
    20 DEBUG=True
       
    21 
       
    22 #APPEND_SLASH = False
       
    23 # DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
       
    24 INSTALLED_APPS = (
       
    25      'testapp',
       
    26  )
       
    27 MIDDLEWARE_CLASSES = (
       
    28     'django.middleware.common.CommonMiddleware',
       
    29     'django.middleware.http.ConditionalGetMiddleware',
       
    30 )
       
    31 ROOT_URLCONF = 'urls'
       
    32 TEMPLATE_CONTEXT_PROCESSORS = ()
       
    33 TEMPLATE_DEBUG = DEBUG
       
    34 TEMPLATE_DIRS = (
       
    35     os.path.join(os.path.dirname(__file__), 'templates'),
       
    36     )
       
    37 TEMPLATE_LOADERS = (
       
    38     'django.template.loaders.filesystem.load_template_source',
       
    39     )
       
    40 FILE_UPLOAD_HANDLERS = (
       
    41     'django.core.files.uploadhandler.MemoryFileUploadHandler',
       
    42 )
       
    43 FILE_UPLOAD_MAX_MEMORY_SIZE = 1048576  # 1 MB