question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoReverseMatch Exception

See original GitHub issue

I have the following exception when I try to view the calender.



Request Method: GET
Request URL: http://0.0.0.0:8000/admin/r/11/3/

Django Version: 1.8.2
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'app',
 'schedule')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in wrapper
  254.                 return self.admin_view(view, cacheable)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
  110.                     response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner
  233.             return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/views.py" in shortcut
  31.     absurl = get_absolute_url()
File "/usr/local/lib/python2.7/dist-packages/schedule/models/calendars.py" in get_absolute_url
  187.         return reverse('calendar_home', kwargs={'calendar_slug': self.slug})
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in reverse
  579.     return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in _reverse_with_prefix
  496.                              (lookup_view_s, args, kwargs, len(patterns), patterns))

Exception Type: NoReverseMatch at /admin/r/11/3/
Exception Value: Reverse for 'calendar_home' with arguments '()' and keyword arguments '{u'calendar_slug': u'test'}' not found. 0 pattern(s) tried: []```

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ogivrancommented, Aug 21, 2016

Thank you very much Leonardo. Now it’s working.

0reactions
JanineRouxcommented, Feb 13, 2021

Although it’s not obvious from the URL definitions, the ‘fullcalendar’ URL invocation requires a slug (name of the calendar). I am assuming that this is the initial attempt at calling the calendar, so I suggest you create a calendar - (in Admin with a generated slug) and then pass the slug to the call e.g. " href=“{% url ‘fullcalendar’ ‘J9’ %}”>" fullcalendar .

Read more comments on GitHub >

github_iconTop Results From Across the Web

django - What is a NoReverseMatch error, and how do I fix it?
The NoReverseMatch exception is raised by django.core.urlresolvers when a matching URL in your URLconf cannot be identified based on the ...
Read more >
Solving Django error 'NoReverseMatch at' URL with ...
Main reasons behind this error are: · 1) Using wrong URL name in template html file. · 2) Commented HTML code. · 3)...
Read more >
6.2.4 The NoReverseMatch Exception - Django Unleashed ...
When URL reversal doesn't work, Django raises a NoReverseMatch exception. In Example 6.11, we ask for a URL pattern name that doesn't exist....
Read more >
Error NoReverseMatch at my url Reverse for my url name with ...
The NoReverseMatch exception is raised by django.core.urlresolvers when a matching URL in your URLconf cannot be identified based on the ...
Read more >
reverse throwing NoReverseMatch exception - Django Forum
reverse throwing NoReverseMatch exception · Using Django · SirDarknight January 28, 2022, 9:16pm #1. My project structure looks like this: │ ├───apps
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found