Commit dc0ece9d authored by Michael Lopez's avatar Michael Lopez

changed the date and time format of announcements under views.py; added more...

changed the date and time format of announcements under views.py; added more reactions on the admin panel for the other announcements
parent 1de9ebf8
...@@ -10,7 +10,9 @@ def pageview(request): ...@@ -10,7 +10,9 @@ def pageview(request):
for announcement in announcements: for announcement in announcements:
string_builder = "{} <br> {} by {} published {} <br> {}".format( string_builder = "{} <br> {} by {} published {} <br> {}".format(
string_builder, announcement.title, announcement.author, announcement.pub_datetime, announcement.body string_builder, announcement.title, announcement.author,
announcement.pub_datetime.strftime("%m/%d/%Y, %I:%M %p"),
announcement.body
) )
for reaction in reactions: for reaction in reactions:
......
...@@ -84,7 +84,7 @@ AUTH_PASSWORD_VALIDATORS = [ ...@@ -84,7 +84,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' TIME_ZONE = 'Asia/Manila'
USE_I18N = True USE_I18N = True
...@@ -93,5 +93,4 @@ USE_TZ = True ...@@ -93,5 +93,4 @@ USE_TZ = True
STATIC_URL = 'static/' STATIC_URL = 'static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment