在Djagno的配置过程中碰到很多问题,还好有python-chinese中的高手帮忙,在这里要特别感谢limodou马踏飞燕兄。

  1. 安装svn,在http://code.djangoproject.com/svn/django/trunk/路径下下载Djagno的最新版。
  2. 我在安装的时候发现这样的问题,如下:
    1. 问题一
      > > > > E:\work\Python24\Tools\djagno>python setup.py install
      > > > > The required version of setuptools (>=0.6a10) is not available, and
      > > > > can't be installed while this script is running. Please install
      > > > >  a more recent version first.

      解决办法:
      用这个命令来安装或者升级setuptool
      ez_setup.py -U setuptools
  3. 在diagno的文件夹下运行python setup.py install
    E:\work\Python24\Tools\djagno>python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing Django.egg-info\PKG-INFO
    writing top-level names to Django.egg-info\top_level.txt
    reading manifest file 'Django.egg-info\SOURCES.txt'
    writing manifest file 'Django.egg-info\SOURCES.txt'
    installing library code to build\bdist.win32\egg
    running install_lib
    running build_py
    error: can't copy 'django\conf\locale\ar\LC_MESSAGES\_svn': doesn't exist or not
     a regular file(这句不知道是什么错误,但是可以正常运行)
  4. 在F:\python\work\mysite>的路径下运行django-admin.py startproject newtest
    意思是在这个目录下新建一个newtest项目
  5. F:\python\work\mysite\newtest>manage.py runserver(运行服务器)
    Validating models...
    0 errors found.
    Django version 0.95 (post-magic-removal), using settings 'newtest.settings'
    Development server is running at http://127.0.0.1:8000/
    Quit the server with CTRL-BREAK.
    [14/Jul/2006 04:54:26] "GET / HTTP/1.0" 404 2055
  6. 可以在http://127.0.0.1:8000/查看一下,是否成功。

文章来源:http://computer.mblogger.cn/yang007/posts/55761.aspx
posted on 2006-07-14 20:05  FireYang  阅读(303)  评论(0编辑  收藏  举报