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.contrib.admin urls don't work on Django 1.10 #37

Closed
mikebryant opened this issue Dec 21, 2016 · 0 comments
Closed

django.contrib.admin urls don't work on Django 1.10 #37

mikebryant opened this issue Dec 21, 2016 · 0 comments

Comments

@mikebryant
Copy link
Owner

Traceback (most recent call last):
  File "/home/m/git/python-blueprints/lists/tests.py", line 11, in test_home_page_returns_correct_html
    response = self.client.get(reverse('lists/home'))
  File "/export/home/m/virtualenvs/python-blueprints/local/lib/python2.7/site-packages/django/urls/base.py", line 91, in reverse
    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
  File "/export/home/m/virtualenvs/python-blueprints/local/lib/python2.7/site-packages/django/urls/resolvers.py", line 344, in _reverse_with_prefix
    self._populate()
  File "/export/home/m/virtualenvs/python-blueprints/local/lib/python2.7/site-packages/django/urls/resolvers.py", line 209, in _populate
    for name in pattern.reverse_dict:
  File "/export/home/m/virtualenvs/python-blueprints/local/lib/python2.7/site-packages/django/urls/resolvers.py", line 242, in reverse_dict
    self._populate()
  File "/export/home/m/virtualenvs/python-blueprints/local/lib/python2.7/site-packages/django/urls/resolvers.py", line 199, in _populate
    p_pattern = pattern.regex.pattern
AttributeError: 'tuple' object has no attribute 'regex'
mikebryant added a commit that referenced this issue Dec 21, 2016
Fix django.contrib.admin urls on Django 1.10. Fixes #37
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