diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-09 20:31:27 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | 90c59b4e12e6ff41407694a460f5f30c4688dbfd (patch) | |
| tree | 7bf06c10582702d59253e5ac26b7d603b7bce594 /django | |
| parent | 68e3ca13d771a8f08a8d1c272308cd44b4dcfa76 (diff) | |
Refs #23433 -- Removed django-admin.py entry point per deprecation timeline.
Diffstat (limited to 'django')
| -rwxr-xr-x | django/bin/django-admin.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py deleted file mode 100755 index 594b0f11db..0000000000 --- a/django/bin/django-admin.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -# When the django-admin.py deprecation ends, remove this script. -import warnings - -from django.core import management - -try: - from django.utils.deprecation import RemovedInDjango40Warning -except ImportError: - raise ImportError( - 'django-admin.py was deprecated in Django 3.1 and removed in Django ' - '4.0. Please manually remove this script from your virtual environment ' - 'and use django-admin instead.' - ) - -if __name__ == "__main__": - warnings.warn( - 'django-admin.py is deprecated in favor of django-admin.', - RemovedInDjango40Warning, - ) - management.execute_from_command_line() |
