Why do I get this error when I run "python manage.py syncdb --all"?
Asked Answered
I

1

5

I am trying to apply tutorial http://docs.django-cms.org/en/2.1.3/getting_started/tutorial.html.

But I didn't succeed to perform the initial database setup

Why do I get this error when I run "python manage.py syncdb --all" ?

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 381, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 230, in execute
    self.validate()
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "C:\Python27\lib\site-packages\django\core\management\validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 158, in get_app_errors
    self._populate()
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 64, in _populate
    self.load_app(app_name, True)
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in import_module
    __import__(name)
  File "C:\Python27\lib\site-packages\django_cms-2.2-py2.7.egg\cms\plugins\link\models.py", line 5, in <module>
    class Link(CMSPlugin):
  File "C:\Python27\lib\site-packages\django_cms-2.2-py2.7.egg\cms\plugins\link\models.py", line 11, in Link
    url = models.URLField(_("link"), verify_exists=False, blank=True, null=True)
  File "C:\Python27\lib\site-packages\django\db\models\fields\__init__.py", line 1265, in __init__
    CharField.__init__(self, verbose_name, name, **kwargs)
  File "C:\Python27\lib\site-packages\django\db\models\fields\__init__.py", line 614, in __init__
    super(CharField, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'verify_exists'
Itinerancy answered 4/6, 2012 at 15:40 Comment(0)
K
13

The verify_exists parameter for UrlField was deprecated in the 1.3.1 security release and removed in the current Git master (1.5dev). https://docs.djangoproject.com/en/1.4/internals/deprecation/. This makes this version of django-cms incompatible with the current master. I would recommend using a stable Django release such as the latest 1.4 rather than master.

Kessiah answered 4/6, 2012 at 15:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.