First time here? Check out the FAQ!
1

Monkey patch for dango in local_settings

Hello The wing documentationsuggests to add the monkey patch in local_settings.py on your development system. What is meant with this? If the this a django settings I am reluctant to have in my settings which is in git a patch which is devoted to a pecific IDE Il it is in another file I do not understand how the file can be called. Should I add it into the project properties?

piscvau's avatar
526
piscvau
asked 2021-10-01 03:09:45 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2021-10-01 12:09:31 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I'm not sure if Django automatically loads a file named local_settings.py or if you need to add something like the following to your settings.py:

try:
    from local_settings import *
except ImportError:
    pass

Then you would not check local_settings.py into revision control and have it only on your development system(s).

That said, I'm not sure if this is even needed anymore with modern Django versions. When your code hits an unexpected exceptions, does it stop in Wing? If so you don't need this.

Wingware Support's avatar
4.2k
Wingware Support
answered 2021-10-01 11:59:10 -0600, updated 2021-10-01 12:00:34 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer