Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
109cc0de
Unverified
Commit
109cc0de
authored
Feb 12, 2018
by
Thom Wiggers
📐
Browse files
Specify app configs in INSTALLED_APPS
This is recommended by the Django documentation
parent
15cd0b47
Changes
17
Hide whitespace changes
Inline
Side-by-side
website/activemembers/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
ActiveMembersConfig
(
AppConfig
):
name
=
'activemembers'
verbose_name
=
_
(
'Active members'
)
website/announcements/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
AnnouncementsConfig
(
AppConfig
):
name
=
'announcements'
verbose_name
=
_
(
'Site header announcements'
)
website/documents/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
DocumentsConfig
(
AppConfig
):
name
=
'documents'
verbose_name
=
_
(
'Documents'
)
website/education/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
EducationConfig
(
AppConfig
):
name
=
'education'
verbose_name
=
_
(
'Education'
)
website/events/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
EventsConfig
(
AppConfig
):
name
=
'events'
verbose_name
=
_
(
'Events'
)
website/mailinglists/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
MailinglistsConfig
(
AppConfig
):
name
=
'mailinglists'
verbose_name
=
_
(
'Mailing lists'
)
website/members/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
MembersConfig
(
AppConfig
):
name
=
'members'
verbose_name
=
_
(
'Members'
)
website/merchandise/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
MerchandiseConfig
(
AppConfig
):
name
=
'merchandise'
verbose_name
=
_
(
'Merchandise'
)
website/newsletters/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
NewslettersConfig
(
AppConfig
):
name
=
'newsletters'
verbose_name
=
_
(
'News letters'
)
website/partners/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
PartnersConfig
(
AppConfig
):
name
=
'partners'
verbose_name
=
_
(
'Partners'
)
website/payments/apps.py
0 → 100644
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
ugettext_lazy
as
_
class
PaymentsConfig
(
AppConfig
):
name
=
'payments'
verbose_name
=
_
(
'Payments'
)
website/photos/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
PhotosConfig
(
AppConfig
):
name
=
'photos'
verbose_name
=
_
(
'Photos'
)
website/pizzas/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
PizzasConfig
(
AppConfig
):
name
=
'pizzas'
verbose_name
=
_
(
'Pizzas'
)
website/pushnotifications/__init__.py
View file @
109cc0de
default_app_config
=
'pushnotifications.apps.PushNotificationsConfig'
website/registrations/__init__.py
View file @
109cc0de
default_app_config
=
'registrations.apps.RegistrationsConfig'
website/thabloid/apps.py
View file @
109cc0de
from
django.apps
import
AppConfig
from
django.utils.translation
import
gettext_lazy
as
_
class
ThabloidConfig
(
AppConfig
):
name
=
'thabloid'
verbose_name
=
_
(
'Thabloid'
)
website/thaliawebsite/settings/settings.py
View file @
109cc0de
...
...
@@ -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
=
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment