Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for differently-named settings files or structures #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

skoczen
Copy link

@skoczen skoczen commented Aug 19, 2013

I use project/settings/dev.py/project/settings/production.py or something similar in a lot of projects.

This PR provides a way to explicitly set the project root path, instead of only the magic replace('.settings', '') method.

Thanks for a great project!

If this looks good and gets merged, a quick version bump and pypi release would be awesome, so I can pull our projects off my fork and back on to trunk.

Thanks!

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))

class SiteAndPathUtils(object):
@crolfe
Copy link

crolfe commented Sep 30, 2014

I'd like to see this change get merged in, as modular settings is a very common pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants