mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-07 06:37:50 +02:00
36 lines
957 B
Python
36 lines
957 B
Python
# vim: syntax=python
|
|
from django.conf import settings
|
|
|
|
"""
|
|
Example of changes suitable for production
|
|
"""
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = (
|
|
"django-insecure-1fgtf05rwp0qp05@ef@a7%x#o+t6vk6063py=vhdmut0j!8s4u"
|
|
)
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = False
|
|
|
|
# SECURITY WARNING: cache middlewares must be loaded before cookies one
|
|
MIDDLEWARE = [
|
|
"django.middleware.cache.UpdateCacheMiddleware",
|
|
"django.middleware.common.CommonMiddleware",
|
|
"django.middleware.cache.FetchFromCacheMiddleware",
|
|
] + settings.MIDDLEWARE
|
|
|
|
CACHES = {
|
|
"default": {
|
|
"BACKEND": "django.core.cache.backends.redis.RedisCache",
|
|
"LOCATION": "redis://127.0.0.1:6379",
|
|
}
|
|
}
|
|
|
|
CACHE_MIDDLEWARE_SECONDS = 300
|
|
STORAGE_DIR = BASE_DIR / "storage"
|
|
ALLOWED_HOSTS = ["127.0.0.1", "myhost"]
|
|
CSRF_TRUSTED_ORIGINS = ["https://myhost"]
|
|
STATIC_URL = "static/"
|
|
MEDIA_URL = "media/"
|