This means your windows system has python files (.py) associated with
notepad not python.
It's okay, but anything you are going to run a python script like
django-admin.py or manage.py you need to run pythin first.

>  python django-admin.py startproject myapp
>  python manage.py

If you get an error about python comand not found you will need to fix the
path, the easy way might be to re run the python3 installer and make sure
add python to the path and associdate .py files to python is checked.

Dylan

On Sat, Feb 17, 2018 at 8:59 AM, Tet Yeap <tyeap...@gmail.com> wrote:

> Hi,
>
>     I was trying to crate a django project using "django-admin.py
> startproject mysite". The a message showed up in notepad
>
> "#!C:\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\python.exe
> from django.core import management
>
> if __name__ == "__main__":
>     management.execute_from_command_line()
>
>     I am using Django 2.0, Python 3.6. Both programs run on Windows 8.
>
>     Do anyone know what is wrong? Tx.
>
>
> --
> 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/7eef68cc-5480-4a3a-b0b8-11a97044ca0d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7eef68cc-5480-4a3a-b0b8-11a97044ca0d%40googlegroups.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/CAHtg44Ca5r%3Dwp2XMu4nzNBsk1o9aKV%3Dh8o0wc%3DA7EAUGe%3D4ZSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to