mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 07:22:14 +00:00
Allow asset sample data command in staging
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user