[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help request



On Sat, 16 Oct 2010, Yaroslav Halchenko wrote:

> Sorry to bother with a naive question, but I guess it might be worth it
> ;)
> 
> I am new to pylons and any WSGI development.  My question -- how to do
> it efficiently?  now I am just 
> 
> doing changes (emacs)
> ./deploy
> apache2 restart
> 
> then observe changes in the web browser
> 
> So I wonder if there is a way to develop "in-place" so no heavy deploy/restart
> would be necessary? may be some IDE is primarily good fit for that?

Oh, this question is most definitely worth asking. :)

Here's what you do:

| paster serve --reload development.ini

Then access the thing on the port defined in development.ini.  No need
to restart things from here on, paster will reload the application
whenever it notices a file has changed.

> btw, whenever I do 
> 
> python setup.py nosetests 
> 
> I get following exception and wonder if that is problem with my setup or
> something more generic? ;)
> 
> ======================================================================
> ERROR: test_index (app.snapshot.tests.functional.test_package.TestPackageController)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/yoh/deb/projects/snapshot-neuro.debian.net/web/app/snapshot/tests/functional/test_package.py", line 6, in test_index
>     response = self.app.get(url(controller='package', action='index'))
>   File "/usr/lib/pymodules/python2.6/paste/registry.py", line 155, in __call__
>     return self._current_obj()(*args, **kw)
>   File "/usr/lib/pymodules/python2.6/routes/util.py", line 420, in __call__
>     (args, kargs))
> GenerationException: Could not generate URL. Called with args: () {'action': 'index', 'controller': 'package', '_environ': {'SCRIPT_NAME': ''}}

Never tried that, sorry.

-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/


Reply to: