Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2491 -- Pass the project directory back from setup_environ so …

…that we

can set up the "startapp" command. Thanks, marcink@elksoft.pl.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ae83871580c27ffaf876228cc66bb546a7c75db2 1 parent 27bf70d
Malcolm Tredinnick authored August 06, 2006

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/core/management.py
3  django/core/management.py
@@ -1307,9 +1307,10 @@ def setup_environ(settings_mod):
1307 1307
 
1308 1308
     # Set DJANGO_SETTINGS_MODULE appropriately.
1309 1309
     os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % project_name
  1310
+    return project_directory
1310 1311
 
1311 1312
 def execute_manager(settings_mod, argv=None):
1312  
-    setup_environ(settings_mod)
  1313
+    project_directory = setup_environ(settings_mod)
1313 1314
     action_mapping = DEFAULT_ACTION_MAPPING.copy()
1314 1315
 
1315 1316
     # Remove the "startproject" command from the action_mapping, because that's

0 notes on commit ae83871

Please sign in to comment.
Something went wrong with that request. Please try again.