This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/sb/settings'
* origin/sb/settings: put debug toolbar dependency to common requirements so one can use DEBUG=True on the server. update prerequisites try new primetime validator activate only staff middleware for production as well, remove robot instructions fix manage.py test limit redis version add local flake8, import ugettext_lazy for settings Feedback von mk, Fehlerbehebungen fix base dir path settings aufteilen
- Loading branch information
Showing
19 changed files
with
165 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# coding: utf-8 | ||
""" | ||
Entry point for local development. | ||
""" | ||
from __future__ import absolute_import, unicode_literals | ||
from .common import * # noqa | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = True | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
LOGGING['loggers'].update({ | ||
# Uncomment to dump SQL statements. | ||
# 'django.db.backends': { | ||
# 'level': 'DEBUG', | ||
# 'handlers': ['console'], | ||
# 'propagate': False, | ||
# }, | ||
'django.request': { | ||
'level': 'DEBUG', | ||
'handlers': ['console'], # Dump exceptions to the console. | ||
'propagate': False, | ||
}, | ||
'${PROJECT_NAME}': { | ||
'level': 'DEBUG', | ||
'handlers': ['console'], # Dump app logs to the console. | ||
'propagate': False, | ||
}, | ||
}) | ||
|
||
INSTALLED_APPS += ( | ||
'debug_toolbar.apps.DebugToolbarConfig', | ||
) | ||
INTERNAL_IPS = ('127.0.0.1',) | ||
MIDDLEWARE_CLASSES = ( | ||
'debug_toolbar.middleware.DebugToolbarMiddleware', | ||
) + MIDDLEWARE_CLASSES | ||
DEBUG_TOOLBAR_PATCH_SETTINGS = False | ||
|
||
THUMBNAIL_DEBUG = True | ||
|
||
RAVEN_CONFIG = {'dsn': ''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
""" | ||
Entry point for the production site. | ||
""" | ||
from __future__ import absolute_import, unicode_literals | ||
from .common import * # noqa | ||
|
||
TEMPLATE_LOADERS = ( | ||
('django.template.loaders.cached.Loader', TEMPLATE_LOADERS), | ||
) | ||
|
||
# TODO: Remove before flight | ||
MIDDLEWARE_CLASSES += ( | ||
'${PROJECT_NAME}.middleware.OnlyStaffMiddleware', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# coding: utf-8 | ||
""" | ||
Entry point for the staging site. | ||
""" | ||
|
||
from __future__ import absolute_import, unicode_literals | ||
from .common import * # noqa | ||
|
||
TEMPLATE_LOADERS = ( | ||
('django.template.loaders.cached.Loader', TEMPLATE_LOADERS), | ||
) | ||
|
||
MIDDLEWARE_CLASSES += ( | ||
'${PROJECT_NAME}.middleware.OnlyStaffMiddleware', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# coding: utf-8 | ||
""" Entry point for unittests """ | ||
from __future__ import absolute_import, unicode_literals | ||
from .common import * # noqa | ||
|
||
# IN-MEMORY TEST DATABASE | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:' | ||
}, | ||
} | ||
|
||
PASSWORD_HASHERS = ( | ||
'django.contrib.auth.hashers.MD5PasswordHasher', | ||
) | ||
TESTING = True | ||
LOGGING['loggers'].update({ | ||
'': { | ||
'level': 'WARNING', | ||
'handlers': ['console'], | ||
}, | ||
'django.request': { | ||
'level': 'ERROR', | ||
'handlers': ['console'], # Dump exceptions to the console. | ||
'propagate': False, | ||
}, | ||
'${PROJECT_NAME}': { | ||
'level': 'DEBUG', | ||
'handlers': ['console'], # Dump app logs to the console. | ||
'propagate': False, | ||
}, | ||
}) | ||
|
||
RAVEN_CONFIG = {'dsn': ''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# www.robotstxt.org/ | ||
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 | ||
# TODO Remove "Disallow" when going live! | ||
|
||
User-agent: * | ||
Disallow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
-r common.txt | ||
coverage==3.7.1 | ||
django_debug_toolbar==1.3 | ||
factory-boy==2.5.1 | ||
pip-tools==0.3.6 | ||
flake8==2.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters