Files
blog/config/local_settings.example.py

26 lines
615 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
本地设置示例文件
使用方法:复制为 local_settings.py 并按需修改
cp local_settings.example.py local_settings.py
"""
# 生产环境请设置
# import os
# SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'your-secret-key')
# DEBUG = False
# ALLOWED_HOSTS = ['www.yuangyaa.com', 'yuangyaa.com']
# 生产环境数据库PostgreSQL
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'blog',
# 'USER': 'blog_user',
# 'PASSWORD': 'your_password',
# 'HOST': 'localhost',
# 'PORT': '5432',
# }
# }