Console import

Answered

Is there an easy way to import a function/class from a Django project into the python/django console? Lets say I want to test a model, I would want to be able to select it and it would be imported into the console, without pasting the "from project.payments.model import Subscription".

I've been mostly using "copy reference" and the manually editing from "project.payments.models.Subscription" into "from project.payments.models import Subscription" but that gets old pretty quick. 

If there isn't any shortcut, i'd love to suggest something like this.

0
1 comment

At the moment, there is no such feature. Feel free to submit a feature request to https://youtrack.jetbrains.com/issues/PY

0

Please sign in to leave a comment.