1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

Adding comments in code.

This commit is contained in:
Dorian Wood 2024-03-13 18:16:53 -04:00
parent 9768c08466
commit 884f995f6e
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,13 @@
# The Forms modules supplies tools for http get and post,
# and building the <form> 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

View File

@ -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]