Author: mtredinnick
Date: 2006-08-06 05:35:25 -0500 (Sun, 06 Aug 2006)
New Revision: 3528

Modified:
   django/trunk/django/core/management.py
Log:
Fixed #2491 -- Pass the project directory back from setup_environ so that we
can set up the "startapp" command. Thanks, [EMAIL PROTECTED]


Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2006-08-06 02:29:38 UTC (rev 
3527)
+++ django/trunk/django/core/management.py      2006-08-06 10:35:25 UTC (rev 
3528)
@@ -1307,9 +1307,10 @@
 
     # 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to