django run manage.py à partir de python
from django.core import management
management.call_command('loaddata', 'test_data', verbosity=0)
Arno Deceuninck
from django.core import management
management.call_command('loaddata', 'test_data', verbosity=0)
rem on window cmd, manage.py can be run from python
python manage.py check && rem See if django is intalled properly
python manage.py show_urls && rem Show paths and associated views
python manage.py list_model_info && rem Show databases
python manage.py migrate && rem Sync data definitions to db server config
python manage.py dumpdata && rem Show data
python manage.py shell && rem Open a django shell to django python
python manage.py runserver && rem Starts the django server