-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sid is none when I try to migrate #107
Comments
I got this too when attempting initial migration of the example project on Django 1.8.11. On Django 1.9.4 it dies even earlier with:
This leads me to wonder under what circumstances does the example project actually work? |
What version of django-categories are you using? Is "categories" in your INSTALLED_APPS? |
I was using the current HEAD at the time, which was 7f27053. The settings file was the one from the example project, and it looks like "categories" is indeed in INSTALLED_APPS in the example settings. Basically what I did was:
|
@rantecki, very interesting. I'll have to try that out. We probably need to add a test to catch this, because right now all tests are passing. |
I added pull request #114, this is my "scratch pad" for trying to fix this issue. It basically makes migrate work in the example app, however like the PR says, "the admin will have some bugs because of my change in If you undo the changes in If you undo the changes in I've run out of time tonight to work on this, so if anyone else has some solutions, please feel free to offer them up. :) I'm not sure when I'll have time to work on this again for awhile. :) |
Did some more work this morning. Got it working in PR #114. However the fix in |
Every time I try migrate for my project
django==1.8.6
django-mptt==0.7.4
and I got this error log
Traceback (most recent call last):
File "/Users/hasanabuzayed/Documents/Development/workspace-jee/mix-express/manage.py", line 17, in
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(_args, *_cmd_options)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(_args, *_options)
File "/Library/Python/2.7/site-packages/django/core/management/commands/migrate.py", line 226, in handle
emit_post_migrate_signal(created_models, self.verbosity, self.interactive, connection.alias)
File "/Library/Python/2.7/site-packages/django/core/management/sql.py", line 280, in emit_post_migrate_signal
using=db)
File "/Library/Python/2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send
response = receiver(signal=self, sender=sender, **named)
File "/Library/Python/2.7/site-packages/categories/migration.py", line 61, in migrate_app
transaction.savepoint_commit(sid)
File "/Library/Python/2.7/site-packages/django/db/transaction.py", line 74, in savepoint_commit
get_connection(using).savepoint_commit(sid)
File "/Library/Python/2.7/site-packages/django/db/backends/base/base.py", line 264, in savepoint_commit
self._savepoint_commit(sid)
File "/Library/Python/2.7/site-packages/django/db/backends/base/base.py", line 218, in _savepoint_commit
cursor.execute(self.ops.savepoint_commit_sql(sid))
File "/Library/Python/2.7/site-packages/django/db/backends/base/operations.py", line 348, in savepoint_commit_sql
return "RELEASE SAVEPOINT %s" % self.quote_name(sid)
File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/operations.py", line 98, in quote_name
if name.startswith('"') and name.endswith('"'):
AttributeError: 'NoneType' object has no attribute 'startswith'
The text was updated successfully, but these errors were encountered: