thomasw / djproxy

djproxy is a class-based generic view reverse HTTP proxy for Django.
MIT License
42 stars 15 forks source link

Add empty middleware setting to quiet warning #11

Closed blaix closed 9 years ago

blaix commented 9 years ago

Before this change, starting a dev server would give this warning:

Performing system checks...

System check identified some issues:

WARNINGS:
?: (1_7.W001) MIDDLEWARE_CLASSES is not set.
        HINT: Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES. django.contrib.sessions.middleware.SessionMiddleware, django.contrib.auth.m
iddleware.AuthenticationMiddleware, and django.contrib.messages.middleware.MessageMiddleware were removed from the defaults. If your project needs these mid
dleware then you should configure this setting.
blaix commented 9 years ago

To be clear, I'm talking about the test dev server started in the root of the project with:

django-admin.py runserver --settings=tests.test_settings --pythonpath="./"
coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.0%) to 99.43% when pulling 32c676e727845c62e8958514d3c61ea56569a77b on yola:quiet_middleware_checks into 6891fbcdcec71d94966a0f4de26dc427c07eb81c on thomasw:master.

thomasw commented 9 years ago

Thanks.