-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[FEATURE] Split settings.py #1697
Comments
You could install mobsf from pypi.
|
Also, you could use |
Thanks, I guess
The point of this request was to try to avoid the need to manually merge added fields, but maybe one small improvement could be to move |
The current update mechanism looks for version change in settings.py. I will see if I can move to a different file. |
The version will be moved from v3.4 onwards and the default user configuration is loaded from |
Thanks! Seems to be working fine. Not sure if this script about Postgres is correct though, it doesn't seem that (It does work for me by specifying smth like |
Django and MobSF settings are still loaded from The |
Ah, that makes sense, thanks! I was wondering why |
If you're requesting a new feature/enhancement, explain why you'd like it to be added and it's importance.
Is your feature request related to a problem? Please describe.
settings.py
hosts both required MobSF/Django config and local config.Each time MobSF version is updated, need to merge local settings (e.g.,
USE_HOME
, DB config,ALLOWED_HOSTS
) into the updatedsettings.py
~/MobSF/config.py
allows for customizing some values, but can't host Django settings.Describe the solution you'd like
Split the file into
settings.py
andlocal_settings.py
(ideally loaded from `~/.MobSF).Describe alternatives you've considered
Manual merge
Additional context
Django wiki about splitting settings: https://code.djangoproject.com/wiki/SplitSettings
The text was updated successfully, but these errors were encountered: