开发者

Problems beginning a new project with Django on Windows 7 OS

I am trying to begin a pr开发者_C百科oject(first one ever) with Django on a Windows 7 machine, and am encountering issues with 'startproject.' I have made sure Django is installed correctly and it seems as though it is working fine, however I run into a problem when I try "django-admin.py startproject sitename"

I have tried using the full path length (C:\Python25\Lib\site-packages\django\contrib\auth\admin.py) and still nothing. I've tried multiple things on both the normal command prompt as well as the python command line. Any ideas?


If you are using Windows 7, make sure that you are running the Windows command prompt as Administrator. However, I'm afraid that without knowing more details about the exact issue that you are finding it will be very difficult to help you.

You mention that you are going to do your fist Django project. If you still have issues with the environment configuration and you just want to focus in the development tasks, you may want to try the BitNami DjangoStack. It is free and we created it specifically for developers, so everything works out of the box. It includes Python 2.6.5, Apache with mod_wsgi, Django 1.3 and you can select to install PostgreSQL, MySQL or both. It also includes SQLite.


Have you tried this?

C:\path\to\parent\folder>C:\Python25\Lib\site-packages\django\bin\django-admin.pyc startproject MY_DJANGO_PROJECT
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜