2 Replies - 1796 Views - Last Post: 20 December 2010 - 06:47 PM Rate Topic: -----

#1 heyoman1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 64
  • View blog
  • Posts: 735
  • Joined: 30-November 09

Need help setting up Django

Posted 20 December 2010 - 06:00 PM

I have downloaded the 1.2.3 version, installed it and checked to see if it was downloaded by doing the import django django.VERSION, and everything worked out. But i'm at a standstill. I'm about to create a project and i get this error: python: can't open file 'django-admin.py': [Errno 2] No such file or directory. I have both the python and the django-admin.py directories in the environment variables. how can i fix this?

This post has been edited by heyoman1: 20 December 2010 - 06:02 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Need help setting up Django

#2 Simown  Icon User is offline

  • Blue Sprat
  • member icon

Reputation: 317
  • View blog
  • Posts: 650
  • Joined: 20-May 10

Re: Need help setting up Django

Posted 20 December 2010 - 06:44 PM

It seems that may be doing:

$ python django-admin.py startproject mysite



Which would give the error you suggested.

The correct syntax for starting a new project called "mysite" in Django is:

$ django-admin.py startproject mysite


This link might help: django-admin.py and manage.py

Hopefully, that should fix it.
Was This Post Helpful? 1
  • +
  • -

#3 heyoman1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 64
  • View blog
  • Posts: 735
  • Joined: 30-November 09

Re: Need help setting up Django

Posted 20 December 2010 - 06:47 PM

View PostSimown, on 20 December 2010 - 05:44 PM, said:

It seems that may be doing:

$ python django-admin.py startproject mysite



Which would give the error you suggested.

The correct syntax for starting a new project called "mysite" in Django is:

$ django-admin.py startproject mysite


This link might help: django-admin.py and manage.py

Hopefully, that should fix it.


that did it. Thanks!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1