Hacker News new | past | comments | ask | show | jobs | submit login

RemovedInDjango30Warning inherits from the python built-in DeprecationWarning, so it can ignored on the command line with:

    python -Wa -Wignore::DeprecationWarning
The above, however, will ignore all DeprecationWarning warnings. You can further filter this ignore if you know the module where the warning originates: https://docs.python.org/3/library/warnings.html#describing-w...

Alternatively, if you find a package import is causing this warning, you can wrap the import in a context manager that ignores the warning:

    import warnings
    from django.utils.deprecation import RemovedInDjango30Warning

    with warnings.catch_warnings():
        warnings.simplefilter("ignore", RemovedInDjango30Warning)
        import MODULE

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact