Ticket #15372: django_module_name_fix

File django_module_name_fix, 595 bytes (added by Jorge Vargas <jorge.vargas@…>, 13 years ago)
Line 
1Index: django/core/management/__init__.py
2===================================================================
3--- django/core/management/__init__.py (revision 15615)
4+++ django/core/management/__init__.py (working copy)
5@@ -415,7 +415,7 @@
6
7 # Import the project module. We add the parent directory to PYTHONPATH to
8 # avoid some of the path errors new users can have.
9- sys.path.append(os.path.join(project_directory, os.pardir))
10+ sys.path.append(os.path.abspath(os.path.join(project_directory, os.pardir)))
11 project_module = import_module(project_name)
12 sys.path.pop()
Back to Top