updated to handle sqlite

This commit is contained in:
smilerz
2021-04-11 17:01:18 -05:00
parent b741d827b3
commit 43d223cf02
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