创建新的django项目时出现Pydev错误 [英] Pydev error while creating new django project

查看:124
本文介绍了创建新的django项目时出现Pydev错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次使用钛(eclipse)和pydev创建一个新的django项目时,都会遇到这个错误。
实际上,它确实创建了文件settings.py
我不知道是什么导致此错误以及如何解决?

I keep getting this error every time i create a new django project using titanium (eclipse) with pydev. Actually, it did create the file settings.py I wonder what make this error and how to fix it?

推荐答案

真的是PyDev问题与Django 1.4。新版本(2.5.0)将在本周晚些时候正式支持Django 1.4中的布局更改。

It's really a PyDev issue with Django 1.4. A new release (2.5.0) will be done later this week properly supporting the layout changes in Django 1.4.

您仍然可以使用以这种方式创建的项目,但是必须做一些手动的事情:

You can still use the project created this way, but you have to do some manual things:


  1. 将创建的文件夹内的内容移动到模块中(这是结构化在django中进行的更改1.4)

  1. Move the contents inside of the folder that was created to your module (this was the structural change done in django 1.4)

settings.py不会在向导中输入详细信息(即:手动编辑settings.py)

The settings.py won't have the details you entered in the wizard (i.e.: manually edit the settings.py)

在项目django的属性(右键单击项目>属性并检查django属性页面)中,您必须将适当的设置放置到设置模块并进行管理。 py。

In the project django's properties (right click project > properties and check the django properties page), you have to put the proper settings to the settings module and manage.py.

这篇关于创建新的django项目时出现Pydev错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆