rvanlaar/djangorecipe — Issue #30: Cannot use a settings file outside of my project package
Author: rvanlaar
Created: 2011-12-27 21:40:36+00:00
State: open
Labels: New, Undecided

I want to use the djangorecipe's manage.py wrapper and the test script in a new
created django app.

I have the following directory structure:

src/
app/
__init__.py
tests.py
buildout.cfg
testsettings.py

And here is the django part of my buildout.cfg:

[django]
recipe = djangorecipe
version = 1.1.1
project = app
projectegg = app
settings = testsettings
test = app
eggs =
extra-paths =
src

Unfortunatelly djangorecipe will fail here. It will not find my settings file
correctly, because it always prepends the settings module name with the project
name which results in `app.testsettings` in this case. This not a good
behaviour and is limiting my project layout. Ofcourse i considered moving the
testsettings.py file into the app direcotry, but I think it is no good habit
for a django app to ship with its own settings file.

Just give me nice hint if I have overlooked an option that makes djangorecipe
behave the way which is needed in this case.