paster

Ckan Always redirecting to localhost:5000

二次信任 提交于 2020-01-07 06:40:36
问题 I have set up a virtual machine(eg., ckan.test.com) and set up CKAN on that machine. Every thing looks fine until i try to submit any form. If i try to submit any form it will automatically redirect to localhost:5000. Ex: Login page is http://ckan.test.com/user/login. Once i enter credentials and login its redirecting to http://localhost:5000/user/logged_in. If i replace localhost:5000 with ckan.test.com it takes me to the correct home page. Can any one tell me whats going on 回答1: CKAN form

Paster cannot stop daemon

会有一股神秘感。 提交于 2020-01-02 08:48:33
问题 I'm using the following command in my pylons app in an attempt to stop the daemon on the server: paster serve --daemon dev.ini stop This is the error I get: No PID file exists in paster.pid Could not stop daemon; aborting Wondering how I can stop this daemon so I can reload dev.ini. Thanks! 回答1: kill the process. 来源: https://stackoverflow.com/questions/1502568/paster-cannot-stop-daemon

Paste (Python) Web Server - Autoreload Problem

断了今生、忘了曾经 提交于 2019-12-30 10:35:31
问题 When I start the `Paste' web server in daemon mode, it seems to kill off it's ability to reload when the timestamp of a source file is updated. Here is how I start the daemon... cd ${project} && ../bin/paster serve --reload --daemon development.ini; cd ..; ...which defeats one of the main points of using Paste (for me). Has anyone come across this or know what I'm doing wrong? To be complete, the file that I'm changing is a controller file. The version is `PasteScript 1.7.3' 回答1: I believe

Paster daemon won't shut down because can't read own pid file

偶尔善良 提交于 2019-12-23 16:06:03
问题 TL;DR version : When I ask Paster to stop-daemon, it fails to read its own file that it uses to track its process id. Longer version : I am running Paster (pastescript 1.7.3) on Python 2.7.1 on Windows Vista. My first surprise comes from running a simple web-site: >paster serve development.ini Starting server in PID 15184. serving on http://127.0.0.1:5000 I expected to find a paster.pid file in the same directory, but I don't. Odd. Never mind, let's make it explicit, by killing that process

Why is my log level not being used when using loadapp from paste.deploy?

 ̄綄美尐妖づ 提交于 2019-12-18 05:27:12
问题 I want to temporailiy turn on debug messages in a production pyramid web project so I adjusted the production.ini file, pushed it to Heroku and saw only error and warn level messages. So I thought, that seems odd since if I start the pyramid application like the following on my local PC I get all the log level messages. env/bin/pserve production.ini OK, so that's not exactly how it runs on Heroku, it is actually run from a little bit of python that looks like this (in a file called runapp.py

Pylons Uploading Distorted Images on Windows

ⅰ亾dé卋堺 提交于 2019-12-14 02:15:43
问题 I'm creating an web app in Pylons, and am working on an image upload action. This is currently running using egg:paste#http on my windows machine, in the basic development configuration described in the pylons documentation quickstart. When I POST an image to my application, then move the image to the web root directory, then pull the uploaded image up in the browser, the image appears distorted. This is what I got when i uploaded a GIF of the Yahoo! logo, but most files don't show up in the

No module named deploy when trying to start pyramid app with mod_wsgi

纵饮孤独 提交于 2019-12-06 05:50:18
问题 trying to use mod_wsgi for the first time for my pyramid app, but I keep getting an ImportError: No module named deploy when I try to access the site in my /etc/apache2/sites-available/domain.com <VirtualHost *:80> ServerName domain.com ServerAlias www.domain.com ServerAdmin admin@domain.com DocumentRoot /data/app ErrorLog /data/app/apache_error.log WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On WSGIDaemonProcess pyramid user=www-data group=www-data \ processes=2 threads=4 \ python

CKAN Install: paster error

喜你入骨 提交于 2019-12-04 13:33:22
问题 Installing CKAN locally on OSX 10.9, based on http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html. I've created and activated the python virtualenv and now need to create a CKAN config file: $ paster make-config ckan /etc/ckan/default/development.ini The output is as follows (ImportError at the last line): Distribution already installed: ckan 2.2 from ~/ckan/lib/default/src/ckan Traceback (most recent call last): File "/usr/lib/ckan/default/bin/paster", line 9, in

How to debug long running python scripts or services remotely?

只愿长相守 提交于 2019-12-04 12:17:51
问题 Pretty much what the title says, I would like to be able to connect to a python process running under paster or uwsgi and utilize pdb functionality. 回答1: Using winpdb, you can attach to a running process like this: Insert import rpdb2; rpdb2.start_embedded_debugger('mypassword') inside your script. Launch your script (through paster or uwsgi) as usual. Run winpdb Click File>Attach Type in password (e.g. "mypassword"), select the process. To detach, click File>Detach. The script will continue

No module named deploy when trying to start pyramid app with mod_wsgi

谁都会走 提交于 2019-12-04 10:51:25
trying to use mod_wsgi for the first time for my pyramid app, but I keep getting an ImportError: No module named deploy when I try to access the site in my /etc/apache2/sites-available/domain.com <VirtualHost *:80> ServerName domain.com ServerAlias www.domain.com ServerAdmin admin@domain.com DocumentRoot /data/app ErrorLog /data/app/apache_error.log WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On WSGIDaemonProcess pyramid user=www-data group=www-data \ processes=2 threads=4 \ python-path=/data/app/lib/python2.6/site-packages/ WSGIScriptAlias / /data/app/pyramid.wsgi <Directory /data