django pydev Undefined variable from import: objects

sponsored links
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"
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of django pydev Undefined variable from import: objects

  • web developed by a number of issues (java directions)

    Internship soon, and the company give me a number of questions, let me seriously think about. I encountered some problems, some not, I check the information from the Internet, and finally put together some answers to questions, I hope that users be able t

  • (Shanghai) co-tenant server hosting rails php python

    As follows: one in Shanghai and Friend (a friend has a server) to Shanghai hosted here, an annual fee of around 4500. Intend to find about five people, along with co-tenant, custodian fees everyone shared. Configuration is as follows: A 4-core CPU in ...

  • Ruby Tutorial

    eclipse plug-ins under the RDT Net download installed version of ruby: http://www.ruby-lang ...

  • ROR study notes 1 (basic - Installation - configuration)

    Recent company projects a little space that you intend to take the time to play ROR Start now, to learn while finishing Oh .................. 1. Basic concept of 1.ruby is a dynamic object-oriented scripting language, grammar and flexible, providing ...

  • Practical Rails plug-ins

    Editor article FCKeditor #undefined method `relative_url_root' for #<ActionController::CgiRequest:0x23b026> #There is been a Fix for Rails 2.2 #in the file app/controllers/fckeditor_controller.rb #look for uploaded = request.relative_url_root.to_s+"

  • Detailed Js Call Ways

    call method Please refer to Applies to: Function objects Request Version 5.5 An object calling a method to replace the current object to another object. call ([thisObj [, arg1 [, arg2 [, [,. argN ]]]]]) Parameters thisObj Optional. Will be used as the obj

  • Django Ajax file uploads and progress display

    At Django 1.0 version, the file upload to do a great deal of change, one of a very important point is the introduction of the concept Upload Handlers. Upload Handlers This is Django's Middleware and almost anything can be set in the file d

  • JavaScript's "this"

    Read recently in Programming Languages Pragmatics when they see this, although does not seem to do anything worth mentioning, in order to avoid forgotten or recorded. JavaScript's this is called object. Say the image is that "." Prior t ...

  • javascript of this

    javascript of this: First look at a section of code: the following for clarification: This is a function object as a way to use an example, in this case is very simple. The function of this object which are being called, then that this would represen ...

  • Hibernate configuration parameters

    Hibernate in the configuration file: <properties> <property name="" value="create" /> </ properties> Parameter Description: validate load hibernate, the authentication to create a database t ...

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries