Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improperly configured with lettuce 0.2.23 #529

Open
MironMar opened this issue Aug 5, 2016 · 2 comments
Open

Improperly configured with lettuce 0.2.23 #529

MironMar opened this issue Aug 5, 2016 · 2 comments

Comments

@MironMar
Copy link

MironMar commented Aug 5, 2016

Hi

I installed new version of lettuce and after calling ./manage.py harvest I get this error:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/miron/.virtualenvs/talixo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/miron/.virtualenvs/talixo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/miron/.virtualenvs/talixo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 238, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/miron/.virtualenvs/talixo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 42, in load_command_class
    return module.Command()
  File "/home/miron/.virtualenvs/talixo/local/lib/python2.7/site-packages/django/core/management/base.py", line 228, in __init__
    '"requires_system_checks".' % self.__class__.__name__)
django.core.exceptions.ImproperlyConfigured: Command Command defines both "requires_model_validation" and "requires_system_checks", which is illegal. Use only "requires_system_checks".

However it works fine on 0.2.22.

@ramast
Copy link

ramast commented Oct 28, 2016

It has been fixed aparently
https://github.com/gabrielfalcao/lettuce/blob/master/lettuce/django/management/commands/harvest.py

Replace line
requires_model_validation = requires_system_checks = False
With the one in the repo

    if DJANGO_VERSION < StrictVersion('1.7'):
        requires_model_validation = False
    else:
        requires_system_checks = False

@gummoe
Copy link

gummoe commented Feb 13, 2017

This change doesn't seem to be reflected in the current PyPi package here: https://pypi.python.org/pypi/lettuce/0.2.23. The last upload was on 2016-07-26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants