mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
c9ab955545
Basically https://chriswarrick.com/blog/2018/07/17/pipenv-promises-a-lot-delivers-very-little/
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
import sys
|
|
|
|
from dpaste.settings.base import *
|
|
|
|
DEBUG = True
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
|
|
INSTALLED_APPS += ('sslserver',)
|
|
|
|
# Optionally run the runserver as `manage.py runsslserver` to locally
|
|
# test correct cookie and csp behavior.
|
|
if not 'runsslserver' in sys.argv:
|
|
SESSION_COOKIE_SECURE = False
|
|
CSRF_COOKIE_SECURE = False
|
|
|
|
#
|
|
# Uncomment the block below to use a custom AppConfig.
|
|
#
|
|
|
|
# from dpaste.apps import dpasteAppConfig
|
|
# from django.utils.translation import gettext_lazy as _
|
|
#
|
|
# class ProductionDpasteAppConfig(dpasteAppConfig):
|
|
# SLUG_LENGTH = 8
|
|
# LEXER_DEFAULT = 'js'
|
|
# EXPIRE_CHOICES = (
|
|
# ('onetime', _(u'One Time Snippet')),
|
|
# (3600, _(u'Expire in one hour')),
|
|
# (3600 * 24, _('Expire in one day')),
|
|
# (3600 * 24 * 7, _('Expire in one week')),
|
|
# (3600 * 24 * 31, _('Expire in one month')),
|
|
# )
|
|
# EXPIRE_DEFAULT = 3600 * 24 * 7
|
|
#
|
|
# INSTALLED_APPS.remove('dpaste.apps.dpasteAppConfig')
|
|
# INSTALLED_APPS.append('dpaste.settings.local.ProductionDpasteAppConfig')
|
|
|