Ask Your Question
1

Monkey patch for dango in local_settings

asked 2021-10-01 03:09:45 -0500

piscvau's avatar

updated 2021-10-01 12:09:31 -0500

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-01 11:59:10 -0500

updated 2021-10-01 12:00:34 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-10-01 03:09:45 -0500

Seen: 236 times

Last updated: Oct 11 '21