相关疑难解决方法(0)

"django.core.exceptions.ValidationError"错误

我正在Django写一个简单的游戏,所有的事情都是正确的,但突然......我遇到了以下错误:

  • Django.v = 1.7
  • Python.v = 3.4

我不知道这些代码有什么问题:

    (test)alireza@alireza:~/test/test1$ python manage.py syncdb
    Operations to perform:
      Synchronize unmigrated apps: django_admin_bootstrapped, django_admin_bootstrapped_bootstrap3, crispy_forms
      Apply all migrations: contenttypes, admin, auth, arosis, sessions
    Synchronizing apps without migrations:
      Creating tables...
      Installing custom SQL...
      Installing indexes...
    Running migrations:
      Applying arosis.0008_auto_20150212_0826...Traceback (most recent call last):
      File "manage.py", line 10, in <module>
        execute_from_command_line(sys.argv)
      File "/home/alireza/test/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
        utility.execute()
      File "/home/alireza/test/lib/python3.4/site-
...
...
...

        return self.to_python(value)
      File "/home/alireza/test/lib/python3.4/site-packages/django/db/models/fields/__init__.py", line 1252, in to_python
        params={'value': value},
    django.core.exceptions.ValidationError: ["'' value …
Run Code Online (Sandbox Code Playgroud)

python sql django orm django-models

0
推荐指数
1
解决办法
8007
查看次数

标签 统计

django ×1

django-models ×1

orm ×1

python ×1

sql ×1