Re: Windows development server problem
Hi, Sorry for not giving more details. I did not want to get into my code as much as I was hoping to find out more about how the dev server might differ from the command line. I was using the pod module (http://code.google.com/p/pickled-object- database/) in addition to mysql. It turns out that the reason the code would not work in the dev server was based differences in the way import statements function in the dev server. When I imported the my pod database models using the command line each class ended up with a names like models.AModel. But when I imported them using the dev server they ended up with names like myproject.models.AModel. Since pod derives info from the class name, it failed in one case and worked in the other. I should note that pod is still in development. I think the way info is derived from class names will need to be changed. Thanks for all your comments, Chuck --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Windows development server problem
On Jul 21, 12:13 am, cwurldwrote: > Hi, > > I have a snippet of code that runs fine as a standalone program. But > when I incorporate it into a view and access that view w the > development server, the snippet no longer works. > > What is the difference between the python interpreter and the > development server? > > Thanks, > Chuck What does 'no longer works' mean? Does it do nothing at all, does it give errors, does it do something unexpected, or what? Post the traceback if you have one, and/or the snippet itself. -- DR. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Windows development server problem
Did you forget any imports? Maybe your code snippet's identifiers clashed with the default django ones? Are there any errors in stdout? 2009/7/21 cwurld: > > Hi, > > I have a snippet of code that runs fine as a standalone program. But > when I incorporate it into a view and access that view w the > development server, the snippet no longer works. > > What is the difference between the python interpreter and the > development server? > > Thanks, > Chuck > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Windows development server problem
Hi, I have a snippet of code that runs fine as a standalone program. But when I incorporate it into a view and access that view w the development server, the snippet no longer works. What is the difference between the python interpreter and the development server? Thanks, Chuck --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---