Skip to content

Commit

Permalink
Compatibility, clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Aug 26, 2023
1 parent cf54bf6 commit 7a9d23c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
7 changes: 1 addition & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for doing just that.
or unexported setting key from a template results in an exception.


Tested on Python 2.7+, Django 1.5+.
Tested on Python 3.7+, Django 1.5+.


Installation
Expand All @@ -32,8 +32,6 @@ Installation
Add ``'django_settings_export.settings_export'`` to
template context processor list in your ``settings.py``:

**Django 1.8 and newer:**

.. code-block:: python
TEMPLATES = [
Expand Down Expand Up @@ -165,9 +163,6 @@ Development
# Run tests on current Python
$ python manage.py test
# Run tests on all Pythons
$ tox
Change Log
==========
Expand Down
16 changes: 9 additions & 7 deletions tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from django.conf.urls import url
try:
from django.urls import path
except ImportError:
# Old Django
from django.conf.urls import url as path

from . import views


urlpatterns = [
url('^$', views.render_ok),
url('^rename$', views.render_ok_rename),
url('^error$', views.render_error),
url('^list', views.render_list),
path('', views.render_ok),
path('rename', views.render_ok_rename),
path('error', views.render_error),
path('list', views.render_list),
]


10 changes: 0 additions & 10 deletions tox.ini

This file was deleted.

0 comments on commit 7a9d23c

Please sign in to comment.