Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
fe964e5a
Commit
fe964e5a
authored
Mar 05, 2023
by
RJC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed TIMEZONE settings and added tz_detect for utc to local time conversion
parent
2cc6c087
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
settings.py
widget_robo_mommy/widget_robo_mommy/settings.py
+5
-1
No files found.
widget_robo_mommy/widget_robo_mommy/settings.py
View file @
fe964e5a
...
...
@@ -11,8 +11,10 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from
pathlib
import
Path
from
dotenv
import
load_dotenv
import
os
DIRNAME
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
load_dotenv
()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
...
@@ -34,12 +36,14 @@ ALLOWED_HOSTS = []
INSTALLED_APPS
=
[
'forum.apps.ForumConfig'
,
'Dashboard.apps.DashboardConfig'
,
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'tz_detect'
,
]
MIDDLEWARE
=
[
...
...
@@ -108,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE
=
'en-us'
TIME_ZONE
=
'
UTC
'
TIME_ZONE
=
'
Asia/Hong_Kong
'
USE_I18N
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment