Ticket #7421: pypy-compatible.patch

File pypy-compatible.patch, 648 bytes (added by anto.cuni@…, 16 years ago)
  • django/core/management/commands/syncdb.py

     
    3434            try:
    3535                __import__(app_name + '.management', {}, {}, [''])
    3636            except ImportError, exc:
    37                 if not exc.args[0].startswith('No module named management'):
     37                msg = exc.args[0]
     38                if not msg.startswith('No module named') or 'management' not in msg:
    3839                    raise
    3940
    4041        cursor = connection.cursor()
Back to Top