Git Product home page Git Product logo

Comments (5)

stushurik avatar stushurik commented on August 17, 2024

For now I use MIGRATION_MODULES for registration app migrations and creating initial migration for this app

from django-inspectional-registration.

lambdalisue avatar lambdalisue commented on August 17, 2024

First of all, we are using django-inspectional-registration in Django 1.8 with CustomUserModel (here) thus I don't really think it is django-inspectional-registration problem.

It seems that django-inspectional-registration uses south which is incompatible out of the box with django migrations.

You can upgrade from south. So it is not really incompatible.
https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south

I don't really get the point of this issue... It seems "The django-inspectional-registration become "unmigrated app" and thus django tries create django-inspectional-registration before my user model." is a issue but I don't really know such behaviour. So could you tell me

  • Problems summary
  • Procedure
  • Expect behaviour
  • Actual behaviour

To make it clear for me?

from django-inspectional-registration.

stushurik avatar stushurik commented on August 17, 2024
  • Problems summary:

I have a cutom user app, with migrations. I have placed custom_user app before registration app in the INSTALLED_APPS. When I launch manage.py migrate for the first time (the DB doesn`t have any table), I can see in console:

Operations to perform:
  Synchronize unmigrated apps: registration
  Apply all migrations: custom_users
Synchronizing apps without migrations:
  Creating tables...
    Creating table registration

When it tries to create registration that has reference to the user model, there is no custom_user table. And it fails.

  • Procedure
    manage.py migrate
  • Expect behavior
    If I placed custom_user app before the registarion app in the INSTALLED_APPS than custom_user tables would be created earlier than registration app`s tables.
  • Actual behavior
    The registration tables are created first.

I think it is caused by that fact, that django-inspectional-registration uses south migrations

from django-inspectional-registration.

lambdalisue avatar lambdalisue commented on August 17, 2024

Could you try https://github.com/lambdalisue/django-inspectional-registration/tree/hotfix/issue48 to figure out whether the change will fix your problem?

from django-inspectional-registration.

stushurik avatar stushurik commented on August 17, 2024

Yes it works. Thanks.

from django-inspectional-registration.

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.