#IPackageController p.implements(p.IPackageController, inherit=True) import logging logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG) logging.debug('This message should go to the log file')'''
Right now I have been working with CKAN for a while using 2.6/2.8.4/2.9.1 and I am kind of understanding the roadmap like how project is moving ahead from pylons to Flask completely. During such transition, I am planning to try CKAN as backend, so my question is, how easy it is to accomplish ? I know it's possible as per datopian repos and other repos which I saw.
What I understand is that, CKAN uses sessions and response cookies to make sure user is authenticated and other stuff but I am worried if I use Frontend framework, then things might break like existing controllers not working or for plugins I'll have to rewrite to support frontend request. So do I have to create custom endpoints for this like data_upload flow, authentication etc
Why I am asking is because there is lot going in CKAN internals which I might have missed that's why confirming it here
Any help is much appreciated :)
/login_generic, which returns html response rather than JSON. In that case, do I have write my own extension to make it possible (I was not able to find any other endpoint for that)? which goes for other endpoints as well which I am not aware of ? Like new_package / add_resource etc
ckan /etc/ckan/default/ckan.ini run. But this output is not saving to file. The code in my plugin is:
import logging logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG) logging.debug('This message should go to the log file') logging.info('So should this') logging.warning('And this, too') logging.error('And non-ASCII stuff, too, like Øresund and Malmö')