~netlandish/django-wiki

eced6df1e0359b0786d0dd356d07eab5401238e3 — Benjamin Bach 6 years ago c425215 + e972422
Merge pull request #794 from rsalmaso/deprecations

Remove deprecations
M testproject/testproject/settings/base.py => testproject/testproject/settings/base.py +1 -1
@@ 55,7 55,7 @@ INSTALLED_APPS = [
TEST_RUNNER = 'django.test.runner.DiscoverRunner'


MIDDLEWARE_CLASSES = [
MIDDLEWARE = [
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',

M testproject/testproject/settings/dev.py => testproject/testproject/settings/dev.py +1 -1
@@ 12,7 12,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

try:
    import debug_toolbar  # @UnusedImport
    MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES) + [
    MIDDLEWARE = list(MIDDLEWARE) + [
        'debug_toolbar.middleware.DebugToolbarMiddleware',
    ]
    INSTALLED_APPS = list(INSTALLED_APPS) + ['debug_toolbar']

M testproject/testproject/urls.py => testproject/testproject/urls.py +1 -1
@@ 10,7 10,7 @@ from wiki.urls import get_pattern as get_wiki_pattern
admin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/', admin.site.urls),
    url(r'^robots.txt', lambda _: HttpResponse('User-agent: *\nDisallow: /')),
]


M tests/settings.py => tests/settings.py +1 -1
@@ 37,7 37,7 @@ INSTALLED_APPS = [
    'wiki.plugins.macros.apps.MacrosConfig',
    'wiki.plugins.globalhistory.apps.GlobalHistoryConfig',
]
MIDDLEWARE_CLASSES = [
MIDDLEWARE = [
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',

M tests/testdata/urls.py => tests/testdata/urls.py +1 -1
@@ 9,7 9,7 @@ admin.autodiscover()

urlpatterns = [
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/', admin.site.urls),
]

if settings.DEBUG: