sshwsfc / xadmin

Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.
http://www.xadmin.io
BSD 3-Clause "New" or "Revised" License
4.76k stars 1.41k forks source link

xadmin支持python3.4.x不 #382

Open iCraneZhou opened 7 years ago

iCraneZhou commented 7 years ago

"C:\Program Files (x86)\JetBrains\PyCharm 5.0.4\bin\runnerw.exe" C:\Users\Cranezhou\env\mxonline\Scripts\python.exe D:/01_Python_lab/mxonline/manage.py runserver 0.0.0.0:80 Unhandled exception in thread started by <function check_errors..wrapper at 0x0000000004A34D90> Traceback (most recent call last): File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper fn(*args, kwargs) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception six.reraise(_exception) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\utils\six.py", line 685, in reraise raise value.with_traceback(tb) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper fn(args, kwargs) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\apps\registry.py", line 108, in populate app_config.import_models(all_models) File "C:\Users\Cranezhou\env\mxonline\lib\site-packages\django\apps\config.py", line 202, in import_models self.models_module = import_module(models_module_name) File "C:\Users\Cranezhou\env\mxonline\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "D:\01_Python_lab\mxonline\extra_apps\xadmin\models.py", line 18, in from xadmin.util import quote File "D:\01_Python_lab\mxonline\extra_apps\xadmin\util.py", line 48 except Exception, e: ^ SyntaxError: invalid syntax

iCraneZhou commented 7 years ago

晕,原来是不支持python3.x.x

cupen commented 7 years ago

见 #346,去帮忙 review 一下。