Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #15372 -- Removed obsolete docs about manage.py setting sys.path. #10954

Merged
merged 1 commit into from Feb 6, 2019

Conversation

chosak
Copy link
Contributor

@chosak chosak commented Feb 6, 2019

The current django-admin documentation page contains an outdated and incorrect description of what manage.py does.

The docs say that manage.py adds the project package to sys.path, but this is not true as of Django 1.4.

In versions of Django before 1.4, the manage.py script invoked logic that would add your project to sys.path. This code lived in django.core.management.setup_environ.

The changes to manage.py and the deprecation of this sys.path behavior were documented in the 1.4 release notes. It looks like the logic was removed in 1.6.

@timgraham timgraham changed the title Fixes outdated documentation of manage.py Refs #15372 -- Removed obsolete docs about manage.py setting the path. Feb 6, 2019
@timgraham timgraham changed the title Refs #15372 -- Removed obsolete docs about manage.py setting the path. Refs #15372 -- Removed obsolete docs about manage.py setting sys.path. Feb 6, 2019
@timgraham timgraham merged commit 80f4ecc into django:master Feb 6, 2019
@chosak chosak deleted the fix-managepy-docs branch February 6, 2019 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants