Skip to content

Commit

Permalink
ignore warning from dateutil as it's upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jan 5, 2024
1 parent 20811b1 commit bb1c7bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""Django's command-line utility for administrative tasks."""
import os
import sys
import warnings


def main():
Expand All @@ -14,6 +15,8 @@ def main():
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
warnings.filterwarnings(
"ignore", lineno=37, module="dateutil.tz", category=DeprecationWarning)
execute_from_command_line(sys.argv)


Expand Down
3 changes: 3 additions & 0 deletions metropolis/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

from django.core.wsgi import get_wsgi_application

warnings.filterwarnings(
"ignore", lineno=37, module="dateutil.tz", category=DeprecationWarning)

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "metropolis.settings")

application = get_wsgi_application()

0 comments on commit bb1c7bd

Please sign in to comment.