0

There are two Django packages with the same option that I must add to the settings:

Add "captcha" to the INSTALLED_APPS in your settings.py

But it is not possible to add "captcha"to the settings two times because I will get the next error:

django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: captcha

So how can I use two packages with the same name in my Django project?

PS: Please do not confuse "packages" and Django "apps". It described in official documentation about using apps with the same name, but there is nothing about packages.

Nairum
  • 1,217
  • 1
  • 15
  • 36

1 Answers1

0

You might Google "django rename app" and find this answer

I did once successfully rename an app following it and then fixing up problems, but it's also a definite case of "here be dragons". Nevertheless, if you back up so you can revert if it all goes wrong, and especially if one or other app does not haver any database tables or migrations, then you might succeed. The dragons are the details ... only way to find out is to try it, see what breaks, try to fix the breakages ....

nigel222
  • 7,582
  • 1
  • 14
  • 22