work with signals to allow customization from 3rd party apps. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
17 lines
559 B
Python
17 lines
559 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.core import management
|
|
from django.db.utils import OperationalError
|
|
|
|
from ...signals import post_initial_setup, pre_initial_setup
|
|
|
|
|
|
class Command(management.BaseCommand):
|
|
help = 'Initializes an install and gets it ready to be used.'
|
|
|
|
def handle(self, *args, **options):
|
|
management.call_command('createsettings', interactive=False)
|
|
pre_initial_setup.send(sender=self)
|
|
management.call_command('createautoadmin', interactive=False)
|
|
post_initial_setup.send(sender=self)
|