On 07/22/2011 04:15 PM, Alexey Luchko wrote: > On 22.07.2011 02:59, Gelonida N wrote: >> Another issue, that I had is trying to use django under windows with >> py2exe. >> >> Management commands are no more found, as django would require the >> python source code in order to find existing management commands. >> >> Perhaps there is an easy work around, but I am not aware of one. > > Same here. > > I far as I can see it requires some changes to > django/core/management/__init__.py > > You could try a hack filling django.core.management._commands manually > in your project's manage.py. > > > But for a project's prototype I've just created a script that imports > settings and then calls a manage command manually like that: > from django.core.management.commands import syncdb > syncdb.Command().execute() > > I did the same for one management command. What's even worse is, that even standard management commands like 'syncdb' are lost during the creation of py2exe of one doesn't reregister them manually
The clean fix might be a rewrite of django/core/management/__init__.py > -- > Best regards, > Alexey. > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.