mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Better Appconfig Example
This commit is contained in:
parent
7671362b52
commit
5fb4a7248e
2 changed files with 15 additions and 9 deletions
|
@ -116,12 +116,12 @@ TEMPLATES = [
|
|||
},
|
||||
]
|
||||
|
||||
INSTALLED_APPS = (
|
||||
INSTALLED_APPS = [
|
||||
'staticinline',
|
||||
'django.contrib.staticfiles',
|
||||
'django.contrib.sessions',
|
||||
'dpaste.apps.dpasteAppConfig',
|
||||
)
|
||||
]
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
|
|
@ -26,14 +26,20 @@ if not 'runsslserver' in sys.argv:
|
|||
#
|
||||
|
||||
# from dpaste.apps import dpasteAppConfig
|
||||
# from django.utils.translation import ugettext_lazy as _
|
||||
#
|
||||
# class MyBetterDpasteAppConfig(dpasteAppConfig):
|
||||
# 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 = (
|
||||
# 'staticinline',
|
||||
# 'django.contrib.staticfiles',
|
||||
# 'django.contrib.sessions',
|
||||
# 'dpaste.settings.local.MyBetterDpasteAppConfig',
|
||||
# )
|
||||
# INSTALLED_APPS.remove('dpaste.apps.dpasteAppConfig')
|
||||
# INSTALLED_APPS.append('dpaste.settings.local.ProductionDpasteAppConfig')
|
||||
|
||||
|
|
Loading…
Reference in a new issue