OLD | NEW |
1 # Copyright 2008 Google Inc. | 1 # Copyright 2008 Google Inc. |
2 # | 2 # |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
4 # you may not use this file except in compliance with 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 | 5 # You may obtain a copy of the License at |
6 # | 6 # |
7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
8 # | 8 # |
9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 'django.template.loaders.app_directories.Loader', | 70 'django.template.loaders.app_directories.Loader', |
71 ) | 71 ) |
72 FILE_UPLOAD_HANDLERS = ( | 72 FILE_UPLOAD_HANDLERS = ( |
73 'django.core.files.uploadhandler.MemoryFileUploadHandler', | 73 'django.core.files.uploadhandler.MemoryFileUploadHandler', |
74 ) | 74 ) |
75 FILE_UPLOAD_MAX_MEMORY_SIZE = 1048576 # 1 MB | 75 FILE_UPLOAD_MAX_MEMORY_SIZE = 1048576 # 1 MB |
76 | 76 |
77 MEDIA_URL = '/static/' | 77 MEDIA_URL = '/static/' |
78 | 78 |
79 appid = app_identity.get_application_id() | 79 appid = app_identity.get_application_id() |
80 RIETVELD_INCOMING_MAIL_ADDRESS = ('reply@%s.appspotmail.com' % appid) | 80 RIETVELD_INCOMING_MAIL_ADDRESS = None |
81 RIETVELD_INCOMING_MAIL_MAX_SIZE = 500 * 1024 # 500K | 81 RIETVELD_INCOMING_MAIL_MAX_SIZE = 500 * 1024 # 500K |
82 RIETVELD_REVISION = '<unknown>' | 82 RIETVELD_REVISION = '<unknown>' |
83 try: | 83 try: |
84 RIETVELD_REVISION = open( | 84 RIETVELD_REVISION = open( |
85 os.path.join(os.path.dirname(__file__), 'REVISION') | 85 os.path.join(os.path.dirname(__file__), 'REVISION') |
86 ).read() | 86 ).read() |
87 except: | 87 except: |
88 pass | 88 pass |
89 | 89 |
90 UPLOAD_PY_SOURCE = os.path.join(os.path.dirname(__file__), 'upload.py') | 90 UPLOAD_PY_SOURCE = os.path.join(os.path.dirname(__file__), 'upload.py') |
91 | 91 |
92 # Default values for patch rendering | 92 # Default values for patch rendering |
93 DEFAULT_CONTEXT = 10 | 93 DEFAULT_CONTEXT = 10 |
94 DEFAULT_COLUMN_WIDTH = 80 | 94 DEFAULT_COLUMN_WIDTH = 80 |
95 MIN_COLUMN_WIDTH = 3 | 95 MIN_COLUMN_WIDTH = 3 |
96 MAX_COLUMN_WIDTH = 2000 | 96 MAX_COLUMN_WIDTH = 2000 |
OLD | NEW |