First of all i want to say that the QGIS web client works correctly. Now i want to get the search feature mod_wsgi running.
Here you can add the following:
Alias /wsgi/ path\to/wsgi/folderSetHandler wsgi-script Options ExecCGI //this will execute the script instead of downloading it Order allow,deny Allow from all
Now i want to test the feature direct in the adress list:
-- http://localhost/qgis-web-client-ma...ry=&searchtables=&query=fd&cb=stcCallback1001
But I don't get an answer, only the script search.wsgi is given back to me.
Does anybody now what's wrong or can give me a hint ?
Edit: PROBLEM Solved
أكثر...
- I downloaded the correct mod_wsgi.whl fromhttp://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi and unpacked it.
-- i copy the mod_wsgi.so file into apache/modules
- i added in apache conf
-- LoadModule wsgi_module modules/mod_wsgi.so andWSGIScriptAlias /wsgi
-- C:/OSGeo4W/apache/htdocs/qgis-web-client-master/wsgi WSGIScriptAliasMatch ^/wsgi/([^/]+)
-- "C:/OSGeo4W/apache/htdocs/qgis-web-client-master/$1.wsgi"
Here you can add the following:
Alias /wsgi/ path\to/wsgi/folderSetHandler wsgi-script Options ExecCGI //this will execute the script instead of downloading it Order allow,deny Allow from all
Now i want to test the feature direct in the adress list:
-- http://localhost/qgis-web-client-ma...ry=&searchtables=&query=fd&cb=stcCallback1001
But I don't get an answer, only the script search.wsgi is given back to me.
Does anybody now what's wrong or can give me a hint ?
Edit: PROBLEM Solved
- add Python to windows path
- Install Webob library (you will need to download this one and compile it with python using pip -> pip is automaticly added from v. 2.7.6.+) and psycopyq2 (usually psycopyq2 is installed as dependency package when installing QGIS web)
- add search table to Database where you should define the columns: displaytext, search_category, searchstring, showlayer, the_geom (the last column needs the geometry information of the found searchstring)
- edit: qwc_connect(line6) -> your postgresql connectionand search.wsgi(line32) -> your database tables that you will search in
أكثر...