Wednesday, August 27, 2014

TypeError: "Source code string cannot contain null bytes"

As it says: you have a null character in your source code script. That is an invalid character for a python script; this does not seems to be related with Django.

Open your source code script with a powerfull text editor capable of showing hidden/special characters, then look for a 'null' character somewhere in your code.

If you pasted a text, assure you correctly copy the source.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cb1ae209-1bd6-4ab4-afdd-2515c57ea5f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment