зеркало из https://github.com/mozilla/moz-ldap.git
content_type not mimetype
This commit is contained in:
Родитель
f39fd7f2dd
Коммит
bff5783260
11
README.md
11
README.md
|
@ -7,4 +7,13 @@ about users in LDAP by a straight forwards RESTful API.
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
MPL2
|
MPL2
|
||||||
|
|
||||||
|
|
||||||
|
Running tests
|
||||||
|
-------------
|
||||||
|
|
||||||
|
You need to force a new DB every time since we're using sqlite's
|
||||||
|
`:memory:`.
|
||||||
|
|
||||||
|
FORCE_DB=1 python manage.py test
|
||||||
|
|
|
@ -21,7 +21,7 @@ def home(request):
|
||||||
|
|
||||||
def handler404(request):
|
def handler404(request):
|
||||||
# instead of django.views.defaults.page_not_found
|
# instead of django.views.defaults.page_not_found
|
||||||
return http.HttpResponseNotFound(request.path, mimetype='text/plain')
|
return http.HttpResponseNotFound(request.path, content_type='text/plain')
|
||||||
|
|
||||||
|
|
||||||
#====================================================================
|
#====================================================================
|
||||||
|
|
Загрузка…
Ссылка в новой задаче