Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: django.setup is an inconvenience for developers #81

Open
sevein opened this issue Oct 6, 2020 · 0 comments
Open

Problem: django.setup is an inconvenience for developers #81

sevein opened this issue Oct 6, 2020 · 0 comments

Comments

@sevein
Copy link
Member

sevein commented Oct 6, 2020

a3m inherits from Archivematica's codebase the dependency on Django. The latter needs to be started manually before using it, so Django can populate its application registry. a3m implementors expect to include the following code in their applications:

from a3m.cli.common import init_django
init_django()

We want to hide this from implementors. init_django should become a no-op and be deprecated. The use of init_django should be removed from the examples (https://github.com/artefactual-labs/a3m/blob/main/examples/webapp.py) and docs (if there is any reference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant