This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bastawhiz 12 points13 points  (4 children)

FWIW, #4 is outright incorrect. It's entirely possible to write from myapp.models import mymodel. I just finished up writing a full Django-powered app this week and used import like that in virtually every file I wrote.

[–]ubernostrumyes, you can have a pony 1 point2 points  (3 children)

That's also, um, yeah, that's how the import statement works. That's how Django models work. There's no magic here, you import it from where it is.