DEV Community

loading...

Discussion on: Python beyond PEP8

Collapse
vdedodev profile image
Vincent Dedo

That's some general good style practice, but I'm going to have to disagree on the mega long import. What's wrong with just importing the module you want to use (from django.db.models import expressions)? That way you can more easily avoid name clashes.

Collapse
edelvalle profile image
Eddy Ernesto del Valle Pino Author

I'm fine also with that... this was just to illustrate

Forem Open with the Forem app