Without the stack trace, it's hard to tell what is wrong, but my first
guess would be that you saved at least one file as utf8 with BOM. Or some
other encoding not understood by python.

Explaining what that means is a bit technical. Text file are really a list
of rather small number. Each letter is given a code composed of one or more
number. If the text file and python use different encoding, you can get
sequence of number which corresponds to no character. That one way to get
an invalid character.

Another way is the BOM symbol. That's two number placed at the start of a
file encoded as utf8. But if the app reading the file don't expect the BOM,
it will try to turn it into a letter and get an invalid character.

If you have an invalid character on the first line, first letter, there is
a good chance the problem is BOM.

On 12 Apr 2017 10:10 pm, "Vijay Khemlani" <vkhem...@gmail.com> wrote:

> Please copy and paste the whole stack trace (the messages on the command
> prompt)
>
> On Wed, Apr 12, 2017 at 3:01 PM, Divya Rajpurohit <
> akkmhadevi1...@gmail.com> wrote:
>
>> I started learning django a few days ago & i am trying to run a example
>> project for a demo but when i put this command "manage.py runserver" it
>> show so many lines on cmd promt & at end line showing 'invalid character'
>> it's not showing those result which showed in documentation of django & for
>> this i check my environment path but it having that /python36 i am using
>> python in windows os if anyone knows what's going wrong tell me waiting for
>> reply
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/d4427871-2ff4-4e30-8d82-1607ad06eb1e%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CALn3ei2hTuj1eMeEguTeW7m3vSUSL
> p-kUimY7ch5ofqajZ0F_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALn3ei2hTuj1eMeEguTeW7m3vSUSLp-kUimY7ch5ofqajZ0F_g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEuG%2BTZ4tcoig5RVJ8jp58FNJ0q9RFzYffdKayZYcHQkX%3Ds7gA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to