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.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ActiveMembersConfig(AppConfig): class ActiveMembersConfig(AppConfig):
name = 'activemembers' name = 'activemembers'
verbose_name = _('Active members')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AnnouncementsConfig(AppConfig): class AnnouncementsConfig(AppConfig):
name = 'announcements' name = 'announcements'
verbose_name = _('Site header announcements')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class DocumentsConfig(AppConfig): class DocumentsConfig(AppConfig):
name = 'documents' name = 'documents'
verbose_name = _('Documents')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class EducationConfig(AppConfig): class EducationConfig(AppConfig):
name = 'education' name = 'education'
verbose_name = _('Education')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class EventsConfig(AppConfig): class EventsConfig(AppConfig):
name = 'events' name = 'events'
verbose_name = _('Events')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MailinglistsConfig(AppConfig): class MailinglistsConfig(AppConfig):
name = 'mailinglists' name = 'mailinglists'
verbose_name = _('Mailing lists')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MembersConfig(AppConfig): class MembersConfig(AppConfig):
name = 'members' name = 'members'
verbose_name = _('Members')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class MerchandiseConfig(AppConfig): class MerchandiseConfig(AppConfig):
name = 'merchandise' name = 'merchandise'
verbose_name = _('Merchandise')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class NewslettersConfig(AppConfig): class NewslettersConfig(AppConfig):
name = 'newsletters' name = 'newsletters'
verbose_name = _('News letters')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PartnersConfig(AppConfig): class PartnersConfig(AppConfig):
name = 'partners' 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.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PhotosConfig(AppConfig): class PhotosConfig(AppConfig):
name = 'photos' name = 'photos'
verbose_name = _('Photos')
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class PizzasConfig(AppConfig): class PizzasConfig(AppConfig):
name = 'pizzas' name = 'pizzas'
verbose_name = _('Pizzas')
default_app_config = 'pushnotifications.apps.PushNotificationsConfig'
default_app_config = 'registrations.apps.RegistrationsConfig'
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ThabloidConfig(AppConfig): class ThabloidConfig(AppConfig):
name = 'thabloid' name = 'thabloid'
verbose_name = _('Thabloid')
...@@ -56,24 +56,26 @@ INSTALLED_APPS = [ ...@@ -56,24 +56,26 @@ INSTALLED_APPS = [
'compressor', 'compressor',
'corsheaders', 'corsheaders',
# Our apps # 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 'thaliawebsite', # include for admin settings
'pushnotifications', 'pushnotifications.apps.PushNotificationsConfig',
'members', 'members.apps.MembersConfig',
'documents', 'documents.apps.DocumentsConfig',
'activemembers', 'activemembers.apps.ActiveMembersConfig',
'photos', 'photos.apps.PhotosConfig',
'utils', 'utils',
'mailinglists', 'mailinglists.apps.MailinglistsConfig',
'merchandise', 'merchandise.apps.MerchandiseConfig',
'thabloid', 'thabloid.apps.ThabloidConfig',
'partners', 'partners.apps.PartnersConfig',
'events', 'events.apps.EventsConfig',
'pizzas', 'pizzas.apps.PizzasConfig',
'newsletters', 'newsletters.apps.NewslettersConfig',
'education', 'education.apps.EducationConfig',
'announcements', 'announcements.apps.AnnouncementsConfig',
'registrations', 'registrations.apps.RegistrationsConfig',
'payments', 'payments.apps.PaymentsConfig',
] ]
MIDDLEWARE = [ 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