error while migrating

6 views
Skip to first unread message

RAJA MISHRA

unread,
Apr 30, 2019, 12:58:53 PM4/30/19
to Django users
 django.setup()
NameError: name 'django' is not defined

Kasper Laudrup

unread,
Apr 30, 2019, 1:17:25 PM4/30/19
to RAJA MISHRA, Django users
On April 30, 2019 3:07:05 PM GMT+02:00, RAJA MISHRA <rajamishra...@gmail.com> wrote:
 django.setup()
NameError: name 'django' is not defined


class django(object):
def setup(self):
pass

Now django is defined and even has a setup method.

That should solve your issue. If not, consider adding a bit more context to your question.

Kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages