Tuesday, April 30, 2019

Re: error while migrating

On April 30, 2019 3:07:05 PM GMT+02:00, RAJA MISHRA <rajamishraluceifer07@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

No comments:

Post a Comment