[Django]-How to run python script inside django project?

8👍

Django does not know this command since it is not listed anywhere. When you want to run a command with manage.py, use Django’s Admin Command.

EDIT Or if you really want to use django_extensions for some reason, use their GitHub docs as reference. There it states you need to add this app to INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_extensions',
    ...
)

3👍

Check the installation:

https://django-extensions.readthedocs.io/en/latest/installation_instructions.html

I guess you have missed this:

INSTALLED_APPS = (
    ...
    'django_extensions',
)
👤ikcam

Leave a comment