hdx-ckan
hdx-ckan copied to clipboard
Organisation creation
Trying to create Organisation in the local latest HDX-CKAN instance. Request is getting placed but no org. is actually created in the system. SMTP settings are working as well. I am only getting a notification of a request submitted. Can you please suggest, what to do to create organization in the local running instance of HDX-CKAN ?
configuration = Configuration(hdx_site='prod',hdx_key="xxxx-96bc4010740d",user_agent="admin",hdx_config_yaml="/root/hdx_configuration.yml",project_config_dict={"MY_PARAMETER":"MY_VALUE"}) remoteckan = ckanapi.RemoteCKAN("http://xxx:5050/",apikey="xxxxxx-96bc4010740d",user_agent="admin") configuration.setup_remoteckan(remoteckan)
organization = Organization(configuration=configuration) organization['field'] = 'ccc' organization['name'] = 'ccc' organization['title'] = 'ccc' organization['description'] = 'cc' organization['organization'] = 'cccc' organization.create_in_hdx()
.create_in_hdx()
Traceback (most recent call last):
File "
Regards, Kartik