diff --git a/djangoldp/apps.py b/djangoldp/apps.py index aac1db2d29b4762799d19e01d606c03d8b7b09cd..8811cf84d104b281ac712b9734084d654fc50e1e 100644 --- a/djangoldp/apps.py +++ b/djangoldp/apps.py @@ -1,4 +1,5 @@ from django.apps import AppConfig +from django.db import OperationalError class DjangoldpConfig(AppConfig): @@ -21,3 +22,6 @@ class DjangoldpConfig(AppConfig): existing_source = LDPSource.objects.get(federation=path) except LDPSource.DoesNotExist: LDPSource.objects.create(federation=path, urlid=Model.absolute_url(model_class)) + except OperationalError: + pass +