Giter Site home page Giter Site logo

Comments (8)

bossan avatar bossan commented on August 12, 2024 1

@malinich I forked the project and created new migrations.

from django-keycloak.

riaanvddool avatar riaanvddool commented on August 12, 2024 1

@bossan Will you be opening a PR for the new migrations?

from django-keycloak.

SpaceWhite avatar SpaceWhite commented on August 12, 2024

I've this issue too when try to migrate using RemoteUserOpenIdConnectProfile and local user storage.

django.db.utils.ProgrammingError: relation "django_keycloak_openidconnectprofile" does not exist

Is there any workaround for this issue?

from django-keycloak.

malinich avatar malinich commented on August 12, 2024

I'm too (
@swist @bossan How you solved this issue? >6 month pass
Because this problem raise docker container big issue

from django-keycloak.

pm-coelho avatar pm-coelho commented on August 12, 2024

I'm still having this issue, I think it is because here the RemoteUserOpenIdConnectProfile.Meta is inheriting the abstract flag, and if you have KEYCLOAK_OIDC_PROFILE_MODEL = 'django_keycloak.RemoteUserOpenIdConnectProfile' set it will never create the django_keycloak_remoteuseropenidconnectprofile table.

Is there a specific reason why it needs to be abstract? if not I'll create a pull request.

from django-keycloak.

dyohan9 avatar dyohan9 commented on August 12, 2024

to repair the migrations, it would be interesting to reset and do the --fake-initial, that way it would solve without generating so many complications

from django-keycloak.

bowerta avatar bowerta commented on August 12, 2024

I am also stuck on this issue, I get the following error when trying to run a migration:
django.db.utils.ProgrammingError: relation "django_keycloak_openidconnectprofile" does not exist

from django-keycloak.

0jinny avatar 0jinny commented on August 12, 2024

I was struggling with the same error, but I fixed it as below.
Delete or comment on lines related to the 'remote user', and migrate again.
After the migration, just roll back the lines, and it works.

# KEYCLOAK_OIDC_PROFILE_MODEL = "django_keycloak.RemoteUserOpenIdConnectProfile"
# KEYCLOAK_REMOTE_USER_MODEL = "django_keycloak.remote_user.KeycloakRemoteUser"
--> + middleware

from django-keycloak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.