This post has been edited by heyoman1: 20 December 2010 - 06:02 PM
Need help setting up Django
Page 1 of 12 Replies - 1566 Views - Last Post: 20 December 2010 - 06:47 PM
#1
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?
Replies To: Need help setting up Django
#2
Re: Need help setting up Django
Posted 20 December 2010 - 06:44 PM
It seems that may be doing:
Which would give the error you suggested.
The correct syntax for starting a new project called "mysite" in Django is:
This link might help: django-admin.py and manage.py
Hopefully, that should fix it.
$ 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.
#3
Re: Need help setting up Django
Posted 20 December 2010 - 06:47 PM
Simown, on 20 December 2010 - 05:44 PM, said:
It seems that may be doing:
Which would give the error you suggested.
The correct syntax for starting a new project called "mysite" in Django is:
This link might help: django-admin.py and manage.py
Hopefully, that should fix it.
$ 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!
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|