Unverified Commit 109cc0de authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Specify app configs in INSTALLED_APPS

This is recommended by the Django documentation
parent 15cd0b47
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ActiveMembersConfig(AppConfig):
name = 'activemembers'
verbose_name = _('Active members')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AnnouncementsConfig(AppConfig):
name = 'announcements'
verbose_name = _('Site header announcements')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class DocumentsConfig(AppConfig):
name = 'documents'
verbose_name = _('Documents')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class EducationConfig(AppConfig):
name = 'education'
verbose_name = _('Education')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class EventsConfig(AppConfig):
name = 'events'
verbose_name = _('Events')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MailinglistsConfig(AppConfig):
name = 'mailinglists'
verbose_name = _('Mailing lists')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MembersConfig(AppConfig):
name = 'members'
verbose_name = _('Members')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MerchandiseConfig(AppConfig):
name = 'merchandise'
verbose_name = _('Merchandise')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class NewslettersConfig(AppConfig):
name = 'newsletters'
verbose_name = _('News letters')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PartnersConfig(AppConfig):
name = 'partners'
verbose_name = _('Partners')
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class PaymentsConfig(AppConfig):
name = 'payments'
verbose_name = _('Payments')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PhotosConfig(AppConfig):
name = 'photos'
verbose_name = _('Photos')
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PizzasConfig(AppConfig):
name = 'pizzas'
verbose_name = _('Pizzas')
default_app_config = 'pushnotifications.apps.PushNotificationsConfig'
default_app_config = 'registrations.apps.RegistrationsConfig'
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ThabloidConfig(AppConfig):
name = 'thabloid'
verbose_name = _('Thabloid')
......@@ -56,24 +56,26 @@ INSTALLED_APPS = [
'compressor',
'corsheaders',
# Our apps
# Directly link to the app config when applicable as recommended
# by the docs: https://docs.djangoproject.com/en/2.0/ref/applications/
'thaliawebsite', # include for admin settings
'pushnotifications',
'members',
'documents',
'activemembers',
'photos',
'pushnotifications.apps.PushNotificationsConfig',
'members.apps.MembersConfig',
'documents.apps.DocumentsConfig',
'activemembers.apps.ActiveMembersConfig',
'photos.apps.PhotosConfig',
'utils',
'mailinglists',
'merchandise',
'thabloid',
'partners',
'events',
'pizzas',
'newsletters',
'education',
'announcements',
'registrations',
'payments',
'mailinglists.apps.MailinglistsConfig',
'merchandise.apps.MerchandiseConfig',
'thabloid.apps.ThabloidConfig',
'partners.apps.PartnersConfig',
'events.apps.EventsConfig',
'pizzas.apps.PizzasConfig',
'newsletters.apps.NewslettersConfig',
'education.apps.EducationConfig',
'announcements.apps.AnnouncementsConfig',
'registrations.apps.RegistrationsConfig',
'payments.apps.PaymentsConfig',
]
MIDDLEWARE = [
......
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