-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Server error when USE_TZ = False #316
Comments
CI runs on Django 4.2 and Python 3.8. Maybe it's a config issue, the default is |
https://github.com/django/django/blob/main/django/utils/timezone.py#L204 It looks like your config has USE_TZ set to false |
I see I have USE_TZ commented out in my settings. It may be impacting another app that I am using. |
Is there a way in django where you can extend settings.py from each installed app? It seems some of my problems are to do with the fact that I am installing Spirit on an existing site - so I have to retrofit all the changes onto my original settings.py. A mechanism to add to the settings.py from each installed app (with warnings for incompatibility) will improve the overall experience. Is djconfig an attempt at doing this? |
Settings.py module is loaded before all apps. By the time an app is loaded
all settings have been used by Django and changing them won't do anything
in most cases. So, you need manually merge your existing settings.py file
with Spirit's base.py file, idk about other way.
Djconfig is an app to store and retrieve settings from a data base, so it
can be donde from the website and no server restart is needed.
For app static settings there is
https://github.com/nitely/django-app-defaults but Spirit already does
something like that with all the ST_ settings and it does not solve the
need to modify the Django specific settings.
…On Mon., Jul. 31, 2023, 1:14 p.m. sureshvv, ***@***.***> wrote:
Is there a way in django where you can extend settings.py from each
installed app? It seems some of my problems are to do with the fact that I
am installing Spirit on an existing site - so I gave to retrofit all the
changes onto my original settings.py. A mechanism to add to the settings.py
from each installed app (with warnings for incompatibility) will improve
the overall experience.
Is djconfig an attempt at doing this?
—
Reply to this email directly, view it on GitHub
<#316 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM6L44CBGXZTXAAWXWWCNDXS7KWPANCNFSM6AAAAAA25FWYKY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Leaving this open as Spirit should either work with |
Also created an issue to improve the settings validations #318 |
Changing forms.py line 103 to
seems to have "fixed" it.
The text was updated successfully, but these errors were encountered: