Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339213
development.py
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
663 B
Subscribers
None
development.py
View Options
# Copyright (C) 2017-2018 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
# flake8: noqa
"""
Django development settings for swh-web.
"""
import
os
# guard to avoid side effects on the django settings when building the
# Debian package for swh-web
if
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
==
'swh.web.settings.development'
:
from
.common
import
*
MIDDLEWARE
+=
[
'swh.web.common.middlewares.HtmlPrettifyMiddleware'
]
from
django.core.cache
import
cache
cache
.
clear
()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 9:31 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3349164
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment