New in Django 1.7 is an application registry that stores configuration and provides introspection. This mechanism allows you to change several attributes of the application.
The main thing I want to do is that renaming the application is not always necessary: โโwhen configuring the application, conflicting applications can be resolved. But also a way if your application needs a friendly name.
As an example, I want to call my user feedback survey application. This happens as follows:
Create the apps.py file in the polls directory:
from django.apps import AppConfig class PollsConfig(AppConfig): name = 'polls' verbose_name = "Feedback from users"
Add the default application configuration to polls/__init__.py :
default_app_config = 'polls.apps.PollsConfig'
For more application configuration: https://docs.djangoproject.com/en/1.7/ref/applications/
allcaps Dec 01 '14 at 9:31 2014-12-01 09:31
source share