On Tue, Feb 6, 2018 at 1:23 PM, Murat Sert <[email protected]> wrote:

> Hi,
>
> I'm working on a project upgrade from Django 1.8 to 1.11. They've used a
> custom registration app which is inheriting from Django Registration Redux
> package.
> Both packages are listed on installed_apps list. All works fine however
> when I try to run tests, where it creates test tables back to back, it
> errors at the following lines:
> ```
>     ....
>     Creating table profile_preferences
>     Creating table registration_registrationprofile
>     Creating table registration_registrationprofile
>     django.db.utils.ProgrammingError: relation 
> "registration_registrationprofile"
> already exists
> ```
>
> This is because both Apps are listed within the installed_apps list. Is
> there a way around this?
>
> Removing the django-registration-redux from installed_apps causes
> ```RuntimeError: Model class registration.models.RegistrationProfile
> doesn't declare an explicit app_label and isn't in an application in
> INSTALLED_APPS.``` error.
>

If you provide an app_label in the Model's Meta (whatever installed app),
does it run?


>
>
> Regards
>
> Murat
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/f9774a9a-cc7e-444d-b7d3-432192d3b5df%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f9774a9a-cc7e-444d-b7d3-432192d3b5df%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BFDnhKoQ9OvQEx2bCA8hzHQOb8rasmdtpSA%2Be5Zy7UWF3YFgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to