Comments (5)
For now I use MIGRATION_MODULES for registration app migrations and creating initial migration for this app
from django-inspectional-registration.
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.
- 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.
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.
Yes it works. Thanks.
from django-inspectional-registration.
Related Issues (20)
- Django 1.8: django.contrib.admin.util is deprecated HOT 3
- Form validation HOT 4
- Signals HOT 8
- Inject values from supplement form in the User model HOT 1
- Raise `AppRegistryNotReady` on Django1.9 HOT 2
- ImportError: cannot import name RequestSite HOT 3
- Cannot load RegistrationSupplementBase on 0.6.0 HOT 2
- Inspector notification e-mail not working HOT 2
- RFC: Improve doc HOT 3
- django.conf.urls.patterns() is depreceated, update to list/tuple? HOT 2
- Additional migration created if using registration supplement HOT 3
- Can not override __str__ in RegistrationSupplementBase HOT 6
- Admin interface error when clicking on a user
- Use email other than settings.DEFAULT_FROM_EMAIL
- custom login view HOT 4
- Error on admin page to approve registration HOT 1
- Leaking of password reset token through the reset url HOT 1
- Override RegistrationProfile Admin HOT 4
- Django 2.0 Compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-inspectional-registration.