django.apps.config AppConfig Example Code

AppConfig (documentation) represents an app for a Django project, including metadata such as name, label and path.

Example 1 from AuditLog

Auditlog (project documentation) is a Django app that logs changes to Python objects, similar to the Django admin's logs but with more details and output formats. Auditlog's source code is provided as open source under the MIT license.

AuditLog / src/auditlog_tests / apps.py

from django.apps import AppConfig


class AuditlogTestConfig(AppConfig):
    name = 'auditlog_tests'

Example 2 from dccnsys

dccnsys is a conference registration system built with Django. The code is open source under the MIT license.

dccnsys / wwwdccn/registration / apps.py

from django.apps import AppConfig


class RegistrationConfig(AppConfig):
    name = 'registration'

Example 3 from django-allauth

django-allauth (project website) is a Django library for easily adding local and social authentication flows to Django projects. It is open source under the MIT License.

django-allauth / allauth/socialaccount / apps.py

from django.apps import AppConfig

from allauth.compat import ugettext_lazy as _


class SocialAccountConfig(AppConfig):
    name = 'allauth.socialaccount'
    verbose_name = _('Social Accounts')

Example 4 from gadget-board

gadget-board is a Django, Django REST Framework (DRF) and Angular web application that is open source under the Apache2 license.

gadget-board / web/authentication / apps.py

from django.apps import AppConfig


class AuthenticationConfig(AppConfig):
    name = 'authentication'

Full Stack Python

Full Stack Python is an open book that explains concepts in plain language and provides helpful resources for those topics.
Updates via Twitter & Facebook.

Matt Makai 2012-2019