# Error implementation web with cert tools

**URL:** <https://community.blockcerts.org/t/error-implementation-web-with-cert-tools/241>\
**Category:** Support\
**Created:** [July 19, 2017, 9:56pm UTC](https://community.blockcerts.org/t/error-implementation-web-with-cert-tools/241 "2017-07-19T21:56:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngel](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@ngel](https://community.blockcerts.org/u/ngel)\
**Post date:** [July 19, 2017, 9:56pm UTC](https://community.blockcerts.org/t/error-implementation-web-with-cert-tools/241/1 "2017-07-19T21:56:23Z")

</div>

Hi people  
I have other question, I am implementation cert tools in my web site like this:

import certTools

# in my function

@app.route(‘generate-cert’, methods=[‘GET’,‘POST’])  
def generatecert()  
“”" with this line, I try replace the command line create-certificate-template -c conf.ini  
in create\_v2\_certificate\_template.py file in function get\_config() I changed  
this line  
base\_dir = os.path.abspath(os.path.join(os.path.dirname( **file** ), os.pardir))  
p = configargparse.getArgumentParser(default\_config\_files=[os.path.join(base\_dir, ‘/home/ngel/Documents /Projects/accreditablockcertalfa/certTools/conf.ini’)])  
“”"  
func\_run = certTools.create\_v2\_certificate\_template  
return ‘ok’

and show me this error like this:

 ![](https://us1.discourse-cdn.com/flex016/uploads/blockcerts/original/1X/9a9d6d7b6205831bef963eb2c58379bb814d05f9.png)

do you know,what file I can use for replace command console please, I want replace this create-certificate-template -c conf.ini, for one function like above in my function.

regards  
Angel

---

<div class="post-metadata">

**Author:** ![kim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/kim/32/307_2.png) [@kim](https://community.blockcerts.org/u/kim)\
**Post date:** [July 20, 2017, 4:03pm UTC](https://community.blockcerts.org/t/error-implementation-web-with-cert-tools/241/2 "2017-07-20T16:03:00Z")

</div>

Hello Angel,  
This code is not part of cert-tools; my guess is that either you inadvertently added it or your IDE is.  
Thanks,  
Kim

---

<div class="post-metadata">

**Author:** ![ngel](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@ngel](https://community.blockcerts.org/u/ngel)\
**Post date:** [July 23, 2017, 1:22pm UTC](https://community.blockcerts.org/t/error-implementation-web-with-cert-tools/241/3 "2017-07-23T13:22:31Z")

</div>

Hi kim,

thanks for your reply, and yes I add cert-tools in my project web, well I need to integrate cert-tools in my web project have you idea how to integrate in my web project this tool,

regards  
Angel
