Commit 48815888 authored by Patipat Jo's avatar Patipat Jo
Browse files

Update from-package.md

parent f4567811
......@@ -338,4 +338,27 @@ sudo pip install -r src/ckanext-dcat/requirements.txt
```sh
sudo service apache2 restart
```
#### 13.7 ckanext-thai_gdc:
```sh
source /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default
sudo pip install -e 'git+https://gitlab.nectec.or.th/opend/ckanext-thai_gdc.git#egg=ckanext-thai_gdc'
```
แก้ไขไฟล์ config ของ CKAN ดังนี้:
```sh
- เพิ่มค่า config ถัดจาก [app:main] (มีอยู่แล้ว)
[app:main]
ckan.auth.public_user_details = false
ckan.tracking_enabled = true
ckanext.pages.form = pages/base_form.html
ckanext.pages.allow_html = True
ckanext.pages.editor = ckeditor
scheming.dataset_schemas = ckanext.thai_gdc:ckan_dataset.json
- ckan.plugins
> ckan.plugins = stats text_view image_view recline_view resource_proxy datastore datapusher webpage_view pdf_view scheming_datasets pages hierarchy_display hierarchy_form package_group_permissions dcat dcat_json_interface structured_data thai_gdc
```
```sh
sudo service apache2 restart
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment