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

Django 1.11 - TypeError on LazySettings #291

Open
paulocheque opened this issue Dec 8, 2017 · 0 comments
Open

Django 1.11 - TypeError on LazySettings #291

paulocheque opened this issue Dec 8, 2017 · 0 comments

Comments

@paulocheque
Copy link

paulocheque commented Dec 8, 2017

I tried ALLOWED_HOSTS = ['*'] without success.

This happens with Py 2.7, 3.5 and 3.6

Ideas? Thanks in advance

    Traceback (most recent call last):
      File "./runtests.py", line 51, in <module>
        runtests(*args, **options.__dict__)
      File "./runtests.py", line 39, in runtests
        failures = test_runner.run_tests(test_args)
      File "./.tox/django111-py36/lib/python3.6/site-packages/django_nose/runner.py", line 308, in run_tests
        result = self.run_suite(nose_argv)
      File "./.tox/django111-py36/lib/python3.6/site-packages/django_nose/runner.py", line 245, in run_suite
        addplugins=plugins_to_add)
      File "./.tox/django111-py36/lib/python3.6/site-packages/nose/core.py", line 121, in __init__
        **extra_args)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/main.py", line 94, in __init__
        self.runTests()
      File "./.tox/django111-py36/lib/python3.6/site-packages/nose/core.py", line 207, in runTests
        result = self.testRunner.run(self.test)
      File "./.tox/django111-py36/lib/python3.6/site-packages/nose/core.py", line 68, in run
        self.config.plugins.finalize(result)
      File "./.tox/django111-py36/lib/python3.6/site-packages/nose/plugins/manager.py", line 99, in __call__
        return self.call(*arg, **kw)
      File "./.tox/django111-py36/lib/python3.6/site-packages/nose/plugins/manager.py", line 167, in simple
        result = meth(*arg, **kw)
      File "./.tox/django111-py36/lib/python3.6/site-packages/django_nose/plugin.py", line 89, in finalize
        self.runner.teardown_test_environment()
      File "./.tox/django111-py36/lib/python3.6/site-packages/django/test/runner.py", line 582, in teardown_test_environment
        teardown_test_environment()
      File "./.tox/django111-py36/lib/python3.6/site-packages/django/test/utils.py", line 157, in teardown_test_environment
        settings.ALLOWED_HOSTS = saved_data.allowed_hosts
      File "./.tox/django111-py36/lib/python3.6/site-packages/django/conf/__init__.py", line 70, in __setattr__
        super(LazySettings, self).__setattr__(name, value)
    TypeError: super(type, obj): obj must be an instance or subtype of type
    ERROR: InvocationError: './runtests.py'
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

1 participant