From 884f995f6ebd110bf1250fed7245a43bb8727669 Mon Sep 17 00:00:00 2001 From: Dorian Wood Date: Wed, 13 Mar 2024 18:16:53 -0400 Subject: [PATCH] Adding comments in code. --- brutaldon/forms.py | 7 +++++++ brutaldon/models.py | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/brutaldon/forms.py b/brutaldon/forms.py index d348d5f..83c58bd 100644 --- a/brutaldon/forms.py +++ b/brutaldon/forms.py @@ -1,6 +1,13 @@ +# The Forms modules supplies tools for http get and post, +# and building the
html elements to use them. from django import forms +# This module gives us access to the settings given to +# Django at runtime via settings files. from django.conf import settings +# Module for translating text, returns strings from django.utils.translation import gettext as _ +# Module for calculating times +# Note: Python 3.9 or later projects should be using internal libraries per pytz docs from pytz import common_timezones from .models import Theme, Preference diff --git a/brutaldon/models.py b/brutaldon/models.py index fcf65d7..f518bea 100644 --- a/brutaldon/models.py +++ b/brutaldon/models.py @@ -1,6 +1,10 @@ from django.db import models +# Module to access variables given to Django at runtime from django.conf import settings +# Module to translate strings from django.utils.translation import gettext as _ +# Module for calculating time +# Note: Python 3.9 or later programs should use internal libraries, per pytz docs from pytz import common_timezones timezones = [(tz, tz) for tz in common_timezones]