Задать вопрос

Тел: +7 965 3737 888

471

Просмотров

0

Ответов

RandomFileExtensionMiddleware

<p>If you feel nostalgic for the old days of crufty URLs, put this middleware somewhere in your Django app and add the first entry in settings.MIDDLEWARE_CLASSES as shown below. Keep in mind that you need to replace 'path.to' with the correct Python path to the middleware.</p>
MIDDLEWARE_CLASSES = (
    'path.to.RandomFileExtensionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
)

<p>Note: Although this works it's still a joke.</p>

Вопрос полезен? Да0/Нет0
file_2750.py(1.9Кб)
None