Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Django error #400

Open
Alea4jacta6est opened this issue Apr 16, 2021 · 1 comment
Open

Django error #400

Alea4jacta6est opened this issue Apr 16, 2021 · 1 comment

Comments

@Alea4jacta6est
Copy link

django.core.exceptions.ImproperlyConfigured: Cannot import 'jobs'. Check that 'regparser.web.jobs.apps.JobsConfig.name' is correct.
when using cmd version of the app

@johnnyporkchops
Copy link

johnnyporkchops commented Dec 22, 2021

If you are using Django >= 3.2, there are changes that may cause this issue:
https://docs.djangoproject.com/en/3.2/releases/3.2/#what-s-new-in-django-3-2

We fixed this in our instance of the app by :
in settings/base.py in regulations-parser AND Eregulations:

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

And in regparser/web/jobs/apps.py in regulations-parser, put full path to the app:

name = 'regparser.web.jobs'

Hope this helps.

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

No branches or pull requests

2 participants