Skip to content

Commit

Permalink
PR ready
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Jul 3, 2023
1 parent f7ff44a commit 59de1e0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[bumpversion]
commit = True
current_version = 0.8.0
current_version = 0.7.9
tag = True
tag_name = {new_version}

Expand Down
13 changes: 7 additions & 6 deletions test_project/test_app/urls.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Django
try:
from django.urls import path
from django.urls import re_path
except ImportError:
from django.conf.urls import url as path
from django.conf.urls import url as re_path

# Test App
from test_project.test_app.views import api_index, index
from test_project.test_app.views import index, api_index


app_name = 'test_app'

urlpatterns = [
path('', index, name='index'),
path('api/', api_index, name='api_index'),
]
re_path(r'^$', index, name='index'),
re_path(r'^api/$', api_index, name='api_index'),
]
8 changes: 4 additions & 4 deletions test_project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
from django.conf import settings

try:
from django.urls import include, path
from django.urls import include, re_path
except ImportError:
from django.conf.urls import url as path
from django.conf.urls import include, url as re_path

include_kwargs = dict(namespace='test_app')

urlpatterns = [
path('test_app/', include('test_project.test_app.urls', **include_kwargs)),
re_path(r'^test_app/', include('test_project.test_app.urls', **include_kwargs)),
]

if 'django.contrib.admin' in settings.INSTALLED_APPS:
from django.contrib import admin
admin.autodiscover()
urlpatterns += [
path('', admin.site.urls),
re_path(r'', admin.site.urls),
]

if 'django.contrib.staticfiles' in settings.INSTALLED_APPS and settings.DEBUG:
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ deps =
pytest
pytest-cov
pytest-django
; pytest-flake8
pytest-runner
Cmake
setuptools
Expand Down

0 comments on commit 59de1e0

Please sign in to comment.