Skip to content

Commit

Permalink
Merge pull request #26 from vintasoftware/fix/urls-include
Browse files Browse the repository at this point in the history
Fix admin url include
  • Loading branch information
pamella authored May 20, 2024
2 parents 0cb0281 + 3ab0874 commit c75c219
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

![PyPI - Version](https://img.shields.io/pypi/v/django-celerybeat-status)
![Supported Python Versions](https://img.shields.io/pypi/pyversions/django-celerybeat-status.svg)
![Supported Django Versions](https://img.shields.io/pypi/frameworkversions/django/django-celerybeat-status.svg)
[![Build Status](https://github.com/vintasoftware/django-celerybeat-status/actions/workflows/tests.yml/badge.svg)](https://github.com/vintasoftware/django-celerybeat-status/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/vintasoftware/django-celerybeat-status/badge.svg?branch=main)](https://coveralls.io/github/vintasoftware/django-celerybeat-status?branch=main)

Expand Down Expand Up @@ -31,7 +32,8 @@ from django.urls import include, path

urlpatterns = [
# other urls...
path("admin/statuscheck/", include("celerybeat_status.urls", namespace="celerybeat_status")),
path("admin/statuscheck/", include("celerybeat_status.urls")), # celerybeat_status admin
path("admin/", admin.site.urls), # django admin
]
```

Expand Down
2 changes: 1 addition & 1 deletion celerybeat_status/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8
__title__ = "CeleryBeat Status"
__version__ = "1.0.0"
__version__ = "1.0.1"
__author__ = "Vinta Software"
__license__ = "MIT License"
__copyright__ = "Copyright 2017 Vinta Serviços e Soluções Tecnológicas Ltda"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> &rsaquo;
<a href="{% url 'periodic-tasks-status' %}">{% trans 'Periodic tasks status' %}</a>
<a href="{% url 'celerybeat_status:periodic-tasks-status' %}">{% trans 'Periodic tasks status' %}</a>
</div>
{% endblock %}

Expand Down
5 changes: 1 addition & 4 deletions tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
urlpatterns = [
# The new admin catch-all view will break URL patterns routed after the admin URLs and matching
# the admin URL prefix. Source: https://docs.djangoproject.com/en/5.0/releases/3.2/#id1
path(
"admin/statuscheck/",
include("celerybeat_status.urls", namespace="celerybeat_status"),
),
path("admin/statuscheck/", include("celerybeat_status.urls")),
path("admin/", admin.site.urls),
]

0 comments on commit c75c219

Please sign in to comment.