Sam Mitchell
Sam Mitchell

Reputation: 3812

Choosing where to install Django project

I know that django-admin.py startproject whateveryourfolderis would install your project

But this create the project within the "django/bin" folder. If I want to create the project somewhere eles (c:/whatever. What is the correct command?

Thanks.

Upvotes: 1

Views: 760

Answers (1)

Glycerine
Glycerine

Reputation: 7347

I see what your issue might be here.

In order to use django within your system, you must navigate to the bin directory to execute the django-admin command.

You do not need to do this. You must setup an environment path pointing to your site-packages folder in your python directory.

You may also add a path pointing to the django/bin directory - therefore within the command prompt, at any point you may type 'django-admin.py' and invoke its methods.

How to define an Environment Setting: http://support.tabs3.com/main/R10463.htm

E.g. I would add the path 'C:\Python26\Lib\site-packages\django\bin\'

That should solve your problem.

Upvotes: 1

Related Questions