Skip to content

Report proper Django name in snapshot w/ Installed Apps #7

@pglombardo

Description

@pglombardo

We should report the proper Django app name with the following:

import django.core.handlers.base as base
name = os.path.basename(base.settings.BASE_DIR)
string.capitalize(name)

which would reveal the package name that this app is built with.

Then also report the list of installed apps:

>>> base.settings.INSTALLED_APPS
['polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 
'django.contrib.contenttypes', 'django.contrib.sessions', 
'django.contrib.messages', 'django.contrib.staticfiles']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions