#9751: project_directory calculated incorrectly when "settings" is a directory
(breaks 'startapp')
--------------------------------------+-------------------------------------
Reporter: lamby | Owner: nobody
Status: new | Milestone: 1.1
Component: django-admin.py | Version: 1.0
Resolution: | Keywords: startapp,settings,module
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by gsong):
My patch fixes a few problems:
1. ``get_commands()`` was importing project settings each time it's
called. That's not necessary.
2. ``get_commands()`` was actually passing the project package instead of
settings module/package to ``setup_environ()``.
3. In ``setup_environ()``, check to see if settings module is a package or
module by checking to see if its ``__file__`` contains ``__init__.py`` or
not. Not sure if this works for Jython as I don't know how Jython
filenames work.
--
Ticket URL: <http://code.djangoproject.com/ticket/9751#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---