Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
print django project information
from compat import import_string
from django.conf import settings
for app_name in settings.INSTALLED_APPS:
app = __import__(app_name)
print "Information for " + app_name
try:
print "verion: " + app.__version__
except Exception as e:
print "version: " + str(e)
print "path: " + app.__file__.rstrip('/__init__.pyc')
print ""
print ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.