15 lines
		
	
	
		
			352 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			352 B
		
	
	
	
		
			Python
		
	
	
	
| from .settings import *
 | |
| DEBUG = False
 | |
| DATABASES = {
 | |
|     'default': {
 | |
|         'ENGINE': 'django.db.backends.postgresql',
 | |
|         'NAME': 'db',
 | |
|         'USER': 'postgres',
 | |
|         'PASSWORD': 'password',
 | |
|         'HOST': 'localhost',
 | |
|         'PORT': '5432',
 | |
|     }
 | |
| }
 | |
| 
 | |
| # celery配置
 | |
| CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler' |