migration not included in python package, causing migrations not to run
See original GitHub issueFixed in #27
Shown by first installing package normally, and then from my master.
# virtualenv ve1
New python executable in ve1/bin/python2.7
Also creating executable in ve1/bin/python
Installing setuptools, pip, wheel...done.
# ve1/bin/pip install django-custom-user
Collecting django-custom-user
Using cached django_custom_user-0.5-py2.py3-none-any.whl
Collecting Django>=1.5 (from django-custom-user)
Using cached Django-1.9-py2.py3-none-any.whl
Installing collected packages: Django, django-custom-user
Successfully installed Django-1.9 django-custom-user-0.5
# ve1/bin/python
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from custom_user.migrations import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named migrations
>>>
# virtualenv ve2
New python executable in ve2/bin/python2.7
Also creating executable in ve2/bin/python
Installing setuptools, pip, wheel...done.
# ve2/bin/pip install https://github.com/peterlauri/django-custom-user/archive/master.zip
Collecting https://github.com/peterlauri/django-custom-user/archive/master.zip
Downloading https://github.com/peterlauri/django-custom-user/archive/master.zip
| 28kB 204kB/s
Collecting Django>=1.5 (from django-custom-user==0.5)
Using cached Django-1.9-py2.py3-none-any.whl
Installing collected packages: Django, django-custom-user
Running setup.py install for django-custom-user
Successfully installed Django-1.9 django-custom-user-0.5
# ve2/bin/python
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from custom_user.migrations import *
>>>
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
python - Django 1.7 - "No migrations to apply" when run ...
When I run python manage.py migrate app-name , Django checks in django_migrations table in the db to see which migrations have been already...
Read more >Possible migration file missing from third party package?
Build my docker container and run my compose-file. Migration error. When the app was starting I got a migration error: curated-app | Traceback...
Read more >Django Migrations and How to Manage Conflicts
Use this case if the migrations refer to different models and you want different migration files for each one of them.
Read more >How to Create an Index in Django Without Downtime
CREATE INDEX ix ON table (column) ONLINE;. When generating migrations, Django will not use these special keywords. Running the migration as is will...
Read more >Making Django migrations in Python - LogRocket Blog
If a migration file contains an error or is missing a critical field, ... There's no need for complex SQL queries or to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve released version 0.6 with migrations included @peterlauri @teuneboon @atogle @marnovdm
I would really appreciate a fix for this for our production environment. Any news when pip will be updated? Can we do anything to help get this fixed faster?