Hello, I've now sorted out my problems with porting to Magic Removal - I'll pass on what I've learned:
> o When I run "manage.py runserver" I get this: > > admin.logentry: 'user' has relation with uninstalled model User > admin.logentry: 'content_type' has relation with uninstalled model > ContentType This was because settings.py only listed the built-in "django.contrib.admin" package, and not the packages it relies on ("django.contrib.contenttypes", "django.contrib.sessions" and "django.contrib.auth"). Given that it all worked on the trunk, I guess the dependencies used to get pulled in automatically but no longer do. > o When I log in as my superuser to the admin site, I get "You don't have > permission to edit anything". This was because it didn't think there was anything to edit (a poor error message IMHO). "manage.py syncdb" wasn't creating the necessary admin database entries because my applications used the old directory structure (project/apps/appname/models/modelname.py) rather than the new structure (project/appname/models.py). Once I'd restructured things, syncdb worked like a charm. Question: is there any documentation on this change of structure? I don't believe the RemovingTheMagic page covers it, unless I missed something. > o When I run "manage.py sqlinitialdata myapp" I get the following output: > > BEGIN; > COMMIT; >From what others have said, I think this is correct. But in that case, the description in the tutorial is misleading: "Outputs any initial data required for Django's admin framework and your models." That's not true - if it were true, it would at least output the necessary SQL to populate django_content_type and auth_permission. [Ken] > The db alteration stuff is definitely still shaky. Hopefully, it'll get > cleaned up this week. I'm going to devote as much time as I can to it. I've spent many hours on this aspect of my port - improvements would be most welcome! Thanks to those who helped me with this, and I hope it might be useful to others going through the porting process. As an aside: I am *so* glad I have a decent set of Selenium tests (http://www.openqa.org/selenium-ide/) for my app. I had no idea the MR port would be such a major edit. -- Richie Hindle [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---