Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4130347
By: fabioz

Ok, I've downloaded pylons here... and created a (rather short) tutorial on
what you need to make it work with pydev:

1. get it with easy_install 

2. check the pylons manual at: 
http://pylonshq.com/docs/0.9.4.1/getting_started.html
-- I'm just going to extend it a bit here on what needs to be configured in
pydev

3. Pydev specific: remove and add the interpreter again, so that it can find
out about the new libraries (details on how to do that at:
http://fabioz.com/pydev/manual_101_interpreter.html)

4. Pydev specific: create a new project (let's call it pylons_test) -- uncheck
the option to create a 'src' folder.

5. go into the pylons_test and execute in the command-line:
d:\bin\Python24\Scripts\paster.exe create --template=pylons helloworld

This should have created a structure below the project with:
/helloworld
/helloworld/helloworld
/helloworld/config
etc.

6. Pydev specific: add the /helloworld to the project pythonpath (details on
how to do that at: http://fabioz.com/pydev/manual_101_project_conf.html)

7. Keep on with the pylons tutorial ;-)

Still, it seems that pydev could not make the complete below very well...

from helloworld.lib.base import *

class HelloController(BaseController):
    def index(self):
        self. <-- complete here
        return Response('hello world')

but if you change 'from helloworld.lib.base import *' to 'from 
helloworld.lib.base
import BaseController, Response' it works... may be a pydev bug (I have to check
it better).

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to