Hi.
Вопрос:
Легально ли выражение:
b = Warring.objects.select_related().filter(id__in=(30,31,32,29)).values_list()
И почему выводится такой мессадж:
[<Warring: zilk1>, <Warring: zoom5
There are a number of other caveats:
If a module is syntactically correct but its initialization fails, the first import statement for it does not bind its name locally, but does store a (partially initialized) module object in sys.modules. To reload the module you must first import it again (this will bind the name to the partially initialized module object) before you can reload() it.
When a module is reloaded, its dictionary (containing the module’s global variables) is retained. Redefinitions of names will override the old definitions, so this is generally not a problem. If the new version of a module does not define a name that was defined by the old version, the old definition remains. This feature can be used to the module’s advantage if it maintains a global table or cache of objects — with a try statement it can test for the table’s presence and skip its initialization if desired:>, <Warring: pools4>,Спасибо