English 中文(简体)
Django: 无法得到django-admin.py ,以掌握任何东西。
原标题:Django: Can not get django-admin.py to run anything
  • 时间:2012-05-02 16:49:38
  •  标签:
  • django

系统:Windows 7x64

Django诉1.4

Python v. 3.2

第一次与Django或Python合作,我正在把我的头部击倒隔离墙。 我已根据安装指示为Django安装了所有设备。 唯一的步骤是选择性虚拟安装。

我正试图在干jan项目上进行辅导,我可以开始项目工作。 这里是我的问题。

在试图使用django-admin.py时,开始项目现场,甚至仅仅使用django-admin。 我获得以下帮助:

Traceback (most recent call last):
File "C:Python32Scriptsdjango-admin.py", line 2, in

from django.core import management File "C:Python32libsite-packagesdjangocoremanagement__init__.py", line 54

except ImportError,e:
^ SyntaxError: invalid syntax

^指 com。

我检查了我手脚的许可,一切照旧。 我做了什么错误?

最佳回答

Django与3 (yet)做工。

反之,第2.7号。

问题回答

您也可坚持到3.X处,并得上django 1.5,目前正处于塔级阶段。

Python 3.3 offers experimental support. django-admin.py still won t run properly, but here s a workaround for you:

你们可以直接从你自己的手稿中打上jan灯。

from django.core import management    
management.call_command("startproject", "mysite")

几乎所有其他工作都应从管理中进行。 file file

python manage.py runserver

或你重新寻找。 你们也可以使用“python33”,而不是 p。





相关问题
How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

Flexible pagination in Django

I d like to implement pagination such that I can allow the user to choose the number of records per page such as 10, 25, 50 etc. How should I go about this? Is there an app I can add onto my project ...

is it convenient to urlencode all next parameters? - django

While writing code, it is pretty common to request a page with an appended "next" query string argument. For instance, in the following template code next points back to the page the user is on: &...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

热门标签