Allow asset sample data command in staging

This commit is contained in:
2019-10-16 23:41:14 +01:00
parent 9495fa2fdb
commit ed956f975f

View File

@@ -12,7 +12,7 @@ class Command(BaseCommand):
def handle(self, *args, **kwargs): def handle(self, *args, **kwargs):
from django.conf import settings from django.conf import settings
if not settings.DEBUG: if not (settings.DEBUG or settings.STAGING):
raise CommandError('You cannot run this command in production') raise CommandError('You cannot run this command in production')
random.seed('Some object to see the random number generator') random.seed('Some object to see the random number generator')