[Django]-Why my django code can not be a 'Standalone Django scripts'

3👍

The code that you use to set the django settings module has to come before any django-related code, including the django db imports at the top of the script.

👤sykora

Leave a comment