You can use call_command
:
from django.core.management import call_command
call_command('myadmincmd')
More Related Contents:
- (13: Permission denied) while connecting to upstream:[nginx]
- Issue with ManyToMany Relationships not updating immediately after save
- Django: Populate user ID when saving a model
- How to revert the last migration?
- Manager isn’t available; User has been swapped for ‘pet.Person’
- Custom QuerySet and Manager without breaking DRY?
- Django: Query using contains each value in a list
- Changing Django settings at runtime
- How do you serialize a model instance in Django?
- How to make email field unique in model User from contrib.auth in Django
- Workflow frameworks for Django [closed]
- Django ModelForm override widget
- What is the right way to use angular2 http requests with Django CSRF protection?
- Django Push HTTP Response to users [closed]
- django admin login suddenly demanding csrf token
- Django – Cascade deletion in ManyToManyRelation
- How to cURL an Authenticated Django App?
- Django – filtering on foreign key properties
- Django admin: How to display a field that is marked as editable=False’ in the model?
- django unit tests without a db
- ImportError: No module named ‘_sqlite3’ in python3.3
- How to get Request.User in Django-Rest-Framework serializer?
- How to force a user logout in Django?
- Django Rest Framework: Disable field update after object is created
- Django unique_together with nullable ForeignKey
- Default image for ImageField in Django’s ORM
- Django Pass Multiple Models to one Template
- How to dynamically provide lookup field name in Django query? [duplicate]
- Django – Why should I ever use the render_to_response at all?
- Django: ManyToMany filter matching on ALL items in a list