On Sun, Apr 5, 2009 at 12:16 PM, knight <alexar...@gmail.com> wrote: > > Hi, > > I have 2 servers with my django app: > The first one has python2.5 as default python and the second don't (It > has python2.5 installed together with the older version). > I want to run dumpdata from my application and I have the following > problem: > If I call: "python manage.py dumpdata" the second server won't work. > If I call: "python2.5 manage.py dumpdata" the first server won't > work. > I mean, I will get the following error: > > Traceback (most recent call last): > File "manage.py", line 2, in <module> > from django.core.management import execute_manager > ImportError: No module named django.core.management > > How can I find the right python version to call? Maybe I can take it > from PYTHONPATH? If yes, where can I find it? > > Thanks, Alex A. > > > > Getting errors like that means you have Django installed to the site-packages dir of that python version, to figure out which python version to run all you should need to do is go to each python interpretter and do import django, and whichever one doesn't give an error is the right one to use.
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---