django/django/apps/base.py
Aymeric Augustin 0e9d3472d7 Stored AppConfig objects instead of models modules in the app cache.
This is a step towards allowing applications without a models module.
2013-12-17 10:17:44 +01:00

11 lines
296 B
Python

class AppConfig(object):
"""
Class representing a Django application and its configuration.
"""
def __init__(self, label, models_module):
self.label = label
self.models_module = models_module
def __repr__(self):
return '<AppConfig: %s>' % self.label