django pydev Undefined variable from import: objects

Recently started learning python web, take notes under the small.

Most came into contact with the web2py, really impressed by this web framework, individuals feel very good use, powerful management tools Admin and comes with IDE, deployment tools, debugging, web app level of clarity and support GAE applications. The third edition of the official document is to present,

From personal preference, it is not very accustomed to web2py Web IDE that comes with development, learning needs related to the API to find documentation, tools, tips itself does not own the code (this is very accustomed to), I try to introduce them into the Eclipse IDE, the introduction of Python path, and web2py src, but for me, the place is still a little difficult.

Django, install the latest version of the pydev plugin to support Django applications, personal feeling pretty good.

configure windows installation, configuration, after the relevant good, remember the system environment variables in the configuration parameters

URL in related configuration, the configuration has been defined models, may experience the following problems
Undefined variable from import: objects

In view of this undefined variable, you can use annotations ignore, or add the specified global object
Windows -> Perferences -> Pydev -> Code Analysis, select the Undefined, in the "condsider the following nams as globals: (comma separated)"
_, Tr, objects

Use "," to separate the good, adding objects

Personally feel that is due to the dynamic nature of language itself, there is an undefined object (for Eclipse semantic analysis) may not be "friendly", we can exclude such a way to compile Eclipse error.

I think java lovers, any hints for the compiler errors are not acceptable, the first under the django ready to learn first, then come back ready to take a look at web2py, now has his own is not very used to python's web development, huh, huh.

Vim you recommend a good listen, but so far has not been used, in fact, a single py file preparation, I also quite good that comes with IDLE, the Getting Started to write it out first.

Finally, "the lovely python" notes the end of a sentence, "Life is short, I used the Python"

分类:Python 时间:2010-10-17 人气:281
blog comments powered by Disqus


  • java read operating system environment variables 2010-11-04

    Easier to make money at home / ** File Name: Description: Get the current system variable procedures. System.getProperty only for java JVM in the past, if you want to get system environment variables, but also use the system-related func

  • Java code to dynamically set by the Linux system environment variables 2010-12-03

    First, a few nonsense, the original has been written in this article Netease blog, but imagined or JE in comparison to the force and then to do a very difficult decision, since there is need to record something to write here. Oh. Today java code that

  • CentOS system environment variables to configure java 2011-06-09

    In the CentOS system, we often use java, but many people may not understand these people, here, we have to introduce this knowledge. CentOS mainly to learn java environment variables to configure the system. (1) CentOS system with a text editor to op

  • java read linux, unix system environment variables 2010-04-28

    /** * Read environment variables * @return string */ public static String getTomcatEnv() { String env = null; Map map = System.getenv(); Iterator i = map.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry); if (entry.g

  • Notes from office server installation - installation configuration chapter 2010-04-06

    Host Configuration: Single Intel Xeon E5405 2.0G Quad-Core CPU, 4 A 500G Seagate SATA II hard disk server, 4G memory. OS: CentOS 5.3 Installation: CentOS 5.3 raid5 array + LVM logical volume of soft First, install the operating system Install the ope

  • MyEclipse + MySQL + Hibernate + Tomact installation configuration 2011-08-04

    You J Friends, Hello, everyone! Previously been engaged in Delphi, c + + development, recently put into learning Java. From rookie to open up learning. I want my learning journey and to share with everyone. Please do not laugh at. Great weekend! Here

  • cassandra-0.6.1 installation configuration (the cluster) 2011-08-13

    Keywords: cassandra-0.6.1 installation configuration (the cluster) Related blog: Download Cassandra 1 download version 0.5.1. 2 Installation Ca

  • Java environment variables in a number of configuration issues 2010-05-06

    [JDK environment variable] My Computer, right-click menu -> Properties -> Advanced -> Environment Variables -> System environment variables -> New: JAVA_HOME: D: \ Program Files \ Java \ jdk1.6.0_07 Path:% JAVA_HOME% \ bin CLASSPATH:% JAVA_

  • [Original] Windows under mysql free installation configuration and use 2010-06-09

    1. First, download from, Extract e:\mysql5.1 Directory . 2. Set system environment variables to facilitate it in cmd Command line mysql. Environment variable settings : Right-click the desktop, My Computer,

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 黔ICP备15002463号-1

processed in 0.465 (s). 13 q(s)