can't create django project using Windows command prompt!

49 views
Skip to first unread message

Garin morel

unread,
Oct 5, 2016, 6:59:07 AM10/5/16
to Django users
I would like to start web designing using django! but Whenever i type "django-admin.py startproject mySite" in cmd this code popup through notepad, Then what should I do?

#!c:\users\crepin\envs\myproject\scripts\python.exe
from django.core import management

if __name__ == "__main__":
    management.execute_from_command_line()



Andreas Kuhne

unread,
Oct 5, 2016, 7:25:06 AM10/5/16
to django...@googlegroups.com
Hi,

First make sure that you have  a valid virtual environment - it's the easiest way to run python code. When that is working, you can just write : "python django-admin.py startproject mySite" - your problem is that .py files have been associated with notepad ++, and therefore it opens the file to edit. But by adding python before, you will run the code instead.

Regards,

Andréas

--
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...@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/cbd1eff0-1332-42cb-ad1e-3d86f18610cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages