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

Fix settings import #68

Merged
merged 5 commits into from Jul 18, 2011
Merged

Fix settings import #68

merged 5 commits into from Jul 18, 2011

Conversation

a8
Copy link
Contributor

@a8 a8 commented Jul 17, 2011

While converting Codespeed into a Django app I missed the convert scripts to upgrade old installations. Here is the fix for that. I moved the scripts into the tools directory. Maybe they could be moved to a migrations dir... As always, I'm happy to change things as requested.

a8 added 5 commits July 17, 2011 22:43
    - Fixed all the imports (global_settings needs to be imported for settings injection in codespeed.__init__)
    - Only adding "default" Branch if not there yet
    - works from tool dir if DJANGO_SETTINGS_MODULE is set. Otherwise, works from Django project dir
    - Same as in create_branch.py script
    - Maybe could be factored out if migrations get more complicated
tobami added a commit that referenced this pull request Jul 18, 2011
@tobami tobami merged commit a7bd2ea into tobami:master Jul 18, 2011
@tobami
Copy link
Owner

tobami commented Jul 18, 2011

I just used create_trunks and migrate_script and they worked perfectly (after being copied to the project dir). Thanks a bunch!

@a8
Copy link
Contributor Author

a8 commented Jul 18, 2011

I just used create_trunks and migrate_script and they worked perfectly (after being copied to the project dir). Thanks a bunch!
Setting DJANGO_SETTINGS_MODULE and the PYTHONPATH of course it should
also work out of the tools directory.

a8

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.

None yet

2 participants