david / semanticdjango (http://semanticdjango.org/)

fork of django-trunk

The right time for a semantic contrib, that's my pony.

Clone this repository (size: 23.1 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/david/semanticdjango/
commit 6482: 7f485076b3e4
parent 6481: b0aa5a5c0671
branch: default
Fixed #9789 -- Handle jython's compiled settings filename correctly. Patch from Frank Wierzbicki.
mtredinnick
14 months ago

Changed (Δ224 bytes):

raw changeset »

AUTHORS (1 lines added, 0 lines removed)

django/core/management/__init__.py (7 lines added, 0 lines removed)

Up to file-list AUTHORS:

@@ -423,6 +423,7 @@ answer newbie questions, and generally m
423
423
    Chris Wesseling <Chris.Wesseling@cwi.nl>
424
424
    James Wheare <django@sparemint.com>
425
425
    Mike Wiacek <mjwiacek@google.com>
426
    Frank Wierzbicki
426
427
    charly.wilhelm@gmail.com
427
428
    Rachel Willmer <http://www.willmer.com/kb/>
428
429
    Gary Wilson <gary.wilson@gmail.com>

Up to file-list django/core/management/__init__.py:

@@ -311,7 +311,14 @@ def setup_environ(settings_mod, original
311
311
    if project_directory == os.curdir or not project_directory:
312
312
        project_directory = os.getcwd()
313
313
    project_name = os.path.basename(project_directory)
314
315
    # Strip filename suffix to get the module name.
314
316
    settings_name = os.path.splitext(settings_filename)[0]
317
318
    # Strip $py for Jython compiled files (like settings$py.class)
319
    if settings_name.endswith("$py"):
320
        settings_name = settings_name[:-3]
321
315
322
    sys.path.append(os.path.join(project_directory, os.pardir))
316
323
    project_module = __import__(project_name, {}, {}, [''])
317
324
    sys.path.pop()