On Sat, Jul 11, 2009 at 7:49 AM, Croydon <[email protected]> wrote:
> > This is my first time running django in windows xp. Im using xampp, > python2.5.4 and django1.0.2 > > I created a new sqlite3 database and I get the following error when I > run "python manage.py syncdb" > > <img src="http://imgur.com/pooSw.png" alt="Hosted by imgur.com" /> Note you can copy from a command prompt without needing to produce an image file, just mark the text via normal mouse select-drag and hit enter. Then paste into your email. No need to make people click through to another page to see that you are getting: ValueError: invalid \x escape from manage.py's attempt to import your settings file. Which means you have a string in your settings file that contains \x followed by a character that is not a valid hex digit. Probably you have a file path specified in settings that has unescaped backslashes. Easiest habit to get into is to use forward slashes for paths in Python, even on Windows. Or you try to remember to always double the slashes or use raw strings: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> bad = '\xxyz' ValueError: invalid \x escape >>> good = '\\xxyz' >>> print good \xxyz >>> good = r'\xxyz' >>> print good \xxyz >>> Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

