updated to handle sqlite

This commit is contained in:
smilerz
2021-04-11 17:01:18 -05:00
parent a20ff46d40
commit f87c963e28
5 changed files with 19 additions and 13 deletions

View File

@@ -1,8 +1,11 @@
from django.apps import AppConfig
from django.conf import settings
class CookbookConfig(AppConfig):
name = 'cookbook'
def ready(self):
import cookbook.signals # noqa
# post_save signal is only necessary if using full-text search on postgres
if settings.DATABASES['default']['ENGINE'] in ['django.db.backends.postgresql_psycopg2', 'django.db.backends.postgresql']:
import cookbook.signals # noqa