Skip to content

Remove the need for a settings_local.py (bug 1050155)#196

Merged
magopian merged 1 commit into
mozilla:masterfrom
magopian:1050155-remove-need-for-settings-local
Sep 1, 2014
Merged

Remove the need for a settings_local.py (bug 1050155)#196
magopian merged 1 commit into
mozilla:masterfrom
magopian:1050155-remove-need-for-settings-local

Conversation

@magopian
Copy link
Copy Markdown
Contributor

@magopian magopian commented Aug 8, 2014

fixes bug 1050155

This means that the settings_local.py won't be used automagically by manage.py anymore. If you want to use it, either:

  • rename it to local_settings.py (imported, if it exists, by the new settings.py file), and make sure that you change the first line to be from settings import * (don't import from lib/settings_base.py or from default.settings directly, I'm not sure what would happen)
  • use DJANGO_SETTINGS_MODULE=settings_local or the --settings=settings_local parameter when you run commands.

I've checked with @jasonthomas, this should be ok with his last changes (can you please give a look at this PR and confirm that it looks ok to you?)

@davidbgk
Copy link
Copy Markdown
Contributor

davidbgk commented Aug 8, 2014

For a more readable diff, use https://github.com/mozilla/olympia/pull/196/files?w=1

@magopian magopian changed the title [WIP] Remove the need for a settings_local.py (bug 1050155) Remove the need for a settings_local.py (bug 1050155) Aug 8, 2014
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need (anymore?) DEBUG set to False here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DEBUG is always set to False (by default) when running the tests in Django (cf https://docs.djangoproject.com/en/dev/topics/testing/overview/#other-test-conditions)

@davidbgk
Copy link
Copy Markdown
Contributor

Good job on updating the docs! 👍

Comment thread docs/topics/hacking/testing.rst Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"test_"

@magopian magopian force-pushed the 1050155-remove-need-for-settings-local branch 3 times, most recently from bec75f0 to cfe5342 Compare September 1, 2014 09:38
@magopian magopian force-pushed the 1050155-remove-need-for-settings-local branch from cfe5342 to a1e1c8c Compare September 1, 2014 12:51
@yohanboniface
Copy link
Copy Markdown
Contributor

r+wc

magopian added a commit that referenced this pull request Sep 1, 2014
…s-local

Remove the need for a settings_local.py (bug 1050155)
@magopian magopian merged commit e8e2c38 into mozilla:master Sep 1, 2014
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.

3 participants