[Answer]-Avoiding recursive imports in django

1👍

You can safely import forms.py inside the function/method:

class MyModel(models.Model):
    ...
    def my_method(self):
        from my_app.forms import MyForm
        ...

Leave a comment