Changeset 7891
- Timestamp:
- 07/11/08 10:08:09 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/commands/syncdb.py
r7889 r7891 42 42 # can do this is to check the text of the exception. Note that 43 43 # we're a bit broad in how we check the text, because different 44 # Python implementations may not use the same text. CPython 45 # uses the text "No module named management". 44 # Python implementations may not use the same text. 45 # CPython uses the text "No module named management" 46 # PyPy uses "No module named myproject.myapp.management" 46 47 msg = exc.args[0] 47 if not msg.startswith('No module named management') or 'management' not in msg:48 if not msg.startswith('No module named') or 'management' not in msg: 48 49 raise 49 50
