How to create a Django project folder

I am following a Django tutorial, and I am assuming to create a folder using the Windows command line (Turorial asks to enter the following into C:\):

django-admin.py startproject django_bookmarks

and I should get the following folder with these files:

django_bookmarks/
     __init__.py manage.py settings.py urls.py

I tried to use c: \, c: \ Django-1.4.2.

and I get the following error messages:

"Django-1.4.2 is not recognized as an internal or external command, operating program, or batch file."

Note. Django is installed correctly. I did a python test and it correctly shows the version of Django.

How to create this folder?

Any help would be appreciated.

+5
source share
3 answers

( Python-2.7.X - , Django virtualenv):

C:\Python27\Scripts\django-admin.py startproject django_bookmarks

Django virtualenv, C:\Python27 virtualenv.

Python, SO

+6

$ , . , .

django-admin.py:

django-admin.py startproject django_bookmarks
+4

If someone still needs it, you need to have python before this:

directory1\directory2>python django-admin.py startproject django_bookmarks.
0
source

All Articles