Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona arquivos dummy para settings local e servidor.
- Loading branch information
Showing
2 changed files
with
114 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Django settings for weblarvae project. | ||
|
||
# Preencha os settings necessários e renomeie para settings_local.py | ||
|
||
import os | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG | ||
THUMBNAIL_DEBUG = DEBUG | ||
|
||
|
||
ADMINS = ( | ||
('Nome', 'Email'), | ||
) | ||
|
||
MANAGERS = ADMINS | ||
|
||
# Banco de dados local para desenvolvimento. | ||
DATABASES = { | ||
'default': { | ||
'NAME': '', | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'USER': '', | ||
'OPTIONS': { | ||
'autocommit': True, | ||
} | ||
} | ||
} | ||
|
||
CACHES = { | ||
'default': { | ||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache', | ||
'LOCATION': '', | ||
'TIMEOUT': 3600, | ||
'OPTIONS': { | ||
'MAX_ENTRIES': 100000, | ||
} | ||
}, | ||
'johnny': { | ||
'BACKEND': 'johnny.backends.memcached.MemcachedCache', | ||
'LOCATION': '127.0.0.1:11211', | ||
'JOHNNY_CACHE': False, | ||
} | ||
} | ||
|
||
JOHNNY_MIDDLEWARE_KEY_PREFIX = 'jc_cifo' | ||
DISABLE_QUERYSET_CACHE = True | ||
|
||
CACHE_MIDDLEWARE_ALIAS = 'default' | ||
CACHE_MIDDLEWARE_SECONDS = 3600 | ||
CACHE_MIDDLEWARE_KEY_PREFIX = 'cifo' | ||
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True | ||
|
||
# Make this unique, and don't share it with anybody. | ||
SECRET_KEY = '' |
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,59 @@ | ||
# Django settings for weblarvae project. | ||
|
||
# Preencha os settings necessários e renomeie para settings_server.py | ||
|
||
import os | ||
|
||
DEBUG = False | ||
TEMPLATE_DEBUG = DEBUG | ||
THUMBNAIL_DEBUG = DEBUG | ||
|
||
|
||
ADMINS = ( | ||
('Nome', 'Email'), | ||
) | ||
|
||
MANAGERS = ADMINS | ||
|
||
# Banco de dados local para desenvolvimento. | ||
DATABASES = { | ||
'default': { | ||
'HOST': '', | ||
'PORT': '', | ||
'NAME': '', | ||
'ENGINE': '', | ||
'USER': '', | ||
'OPTIONS': { | ||
'autocommit': True, | ||
} | ||
} | ||
} | ||
|
||
|
||
CACHES = { | ||
'default': { | ||
'BACKEND': '', | ||
'LOCATION': '', | ||
'TIMEOUT': 3600, | ||
'OPTIONS': { | ||
'MAX_ENTRIES': 1000, | ||
} | ||
}, | ||
'johnny': { | ||
'BACKEND': '', | ||
'LOCATION': '', | ||
'JOHNNY_CACHE': True, | ||
} | ||
} | ||
|
||
JOHNNY_MIDDLEWARE_KEY_PREFIX = 'jc_cifo' | ||
#DISABLE_QUERYSET_CACHE = True | ||
|
||
CACHE_MIDDLEWARE_ALIAS = 'default' | ||
CACHE_MIDDLEWARE_SECONDS = 3600 | ||
CACHE_MIDDLEWARE_KEY_PREFIX = 'cifo' | ||
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True | ||
|
||
|
||
# Make this unique, and don't share it with anybody. | ||
SECRET_KEY = '' |