search

Home  >  Q&A  >  body text

python - xadmin安装后运行django项目报错

1:报错消息:

2:Settings:

3: pip list:

天蓬老师天蓬老师2863 days ago600

reply all(5)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:25:37

    Python3 and above versions will encounter this problem. It seems that xadmin does not support python3 now
    https://github.com/mahongquan...
    Here is one you can try, but the function is not perfect, use the source code

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:25:37

    There is a situation where the original poster built the project with Django version 1.8. After installing xamdin, Django was upgraded to 1.9, and then an error was reported

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:25:37

    lz, have you solved this problem? I also encountered this problem and found a lot of information but couldn't find a solution

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:25:37

    I have encountered this before. I imported xadmin directly into admin and then used xadmin.site.register(model) to solve this problem. You can try it

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:25:37

    xadmin does not support Python3,
    Currently xadmin only supports
    python2+django>=1.9,<2.0

    reply
    0
  • Cancelreply