summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/management.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/management.py b/django/core/management.py
index e978ae0fd0..bddac1075a 100644
--- a/django/core/management.py
+++ b/django/core/management.py
@@ -1307,9 +1307,10 @@ def setup_environ(settings_mod):
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % project_name
+ return project_directory
def execute_manager(settings_mod, argv=None):
- setup_environ(settings_mod)
+ project_directory = setup_environ(settings_mod)
action_mapping = DEFAULT_ACTION_MAPPING.copy()
# Remove the "startproject" command from the action_mapping, because that's