Created
May 9, 2015 05:56
-
-
Save isaquealves/aad1046307b9c6412e8d to your computer and use it in GitHub Desktop.
Django new application loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from django.apps import apps | |
get_model = apps.get_model | |
except ImportError: | |
from django.db.models.loading import get_model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment