Django startup problems
This is something similar to what's posted he开发者_运维技巧re: No Module named django.core
To reiterate, I'm getting this error on running "django-admin.py startproject mysite"(without the double quotes):
C:\Documents and Settings\fixavier\Desktop>django-admin.py startproject mysite
Traceback (most recent call last):
File "C:\Program Files\BitNami DjangoStack\apps\django\django\bin\django-admin.py", line 2, in <module>
from django.core import management
ImportError: No module named django.core
But the error still exists! Please help. OS:Windows Installed django using BitNami Django stack.
What happens if you try to import django from the Python shell? Type python
at a command prompt, then type import django
at the next prompt. I'm not familiar with BitNami, but you might want to consider just installing Django the normal way. Otherwise you're going to have a hard time getting answers to issues via Google. It's not hard to install on Windows. You can get a binary installer for Python, then install Django according to the instructions in the docs.
Bonus points (and not as complicated as it sounds): To make Python package installation fairly painless, you can then install pip (or you can install pip first and then run pip install django
). In order to install pip, you'll need setuptools. Once setuptools is installed, you should be able to do easy_install pip
, but that's the only time you should ever use easy_install
as pip's a much better product.
Make sure you add the location of your django install to your PATH settings. Instant Django might also be an option for you http://www.instantdjango.com/.
精彩评论