`client` not present in the scope of the interpreter invoked by doing `python manage.py mmclient`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Postorius |
Fix Released
|
Undecided
|
Ankush Sharma |
Bug Description
While following up the docs of postorius here http://
$ python manage.py mmclient
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveCon
>>> client
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'client' is not defined
This bug is due to the fact that the `client` is not added to the `globals()` dictionary before passing it to `shell = code.Interactiv
Related branches
- Florian Fuchs: Approve
-
Diff: 11 lines (+2/-0)1 file modifiedsrc/postorius/management/commands/mmclient.py (+2/-0)
Changed in postorius: | |
status: | New → Confirmed |
assignee: | nobody → Ankush Sharma (black-perl) |
Changed in postorius: | |
status: | Confirmed → Fix Committed |
Changed in postorius: | |
milestone: | none → 1.0.0 |
status: | Fix Committed → Fix Released |
I got this bug and as suggested in the description, after adding the client to the globals, things worked fine.