Hi,
I was wondering how to upload to my new app (for erpnext) to my personal github, so that I can redistribute it later?
I try using the git command but it isn’t working. Is there a guide somewhere I can use?
Thanks
Hi,
I was wondering how to upload to my new app (for erpnext) to my personal github, so that I can redistribute it later?
I try using the git command but it isn’t working. Is there a guide somewhere I can use?
Thanks
Hi,
Please refer this link, it will be helpful.
https://www.acquia.com/blog/getting-started-collaborative-development-git
Shraddha Ranjane
New Indictrans Technologies Pvt. Ltd.
Thank you I’ll read it right now
Hi again I finish reading the doc you send me. I just got one little question we have to put on github the app under frappe-bench/app/test, if my new module is call test?
This could be an example of what you want to?
I’ve create test_app2 module and it’s working :
Now, I’m trying to export it to a new ERP_Next installation. So I upload it to GITHUB
But I’m unable to make work on the other side. Anybody know why???
I’ve use this command to get the new app : bench get-app test_app2 https://github.com/chafor/test_app2.git
This is the error message I got :
ImportError
ImportError: No module named test_app2.hooks
Traceback (most recent call last)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 588, in call
return self.app(environ, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 588, in call
return self.app(environ, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 224, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 286, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/aptitude/frappe-bench/apps/frappe/frappe/app.py”, line 79, in application
response = frappe.website.render.render(“message”, http_status_code=http_status_code)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/render.py”, line 47, in render
data = render_page(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/render.py”, line 105, in render_page
return build(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/render.py”, line 114, in build
return build_method(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/render.py”, line 127, in build_page
context = get_context(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/context.py”, line 36, in get_context
context = build_context(context)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/context.py”, line 81, in build_context
context.data = render_blocks(context)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/template.py”, line 18, in render_blocks
env = frappe.get_jenv()
File “/home/aptitude/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 14, in get_jenv
set_filters(jenv)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 104, in set_filters
for jenv_filter in (frappe.get_hooks(app_name=app).jenv_filter or []):
File “/home/aptitude/frappe-bench/apps/frappe/frappe/init.py”, line 462, in get_hooks
hooks = _dict(load_app_hooks(app_name))
File “/home/aptitude/frappe-bench/apps/frappe/frappe/init.py”, line 441, in load_app_hooks
app_hooks = get_module(app + “.hooks”)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/init.py”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named test_app2.hooks
Hi Chafor,
I have also similar issue. I did following steps.
This works for me.
Thanks,
Sambhaji
Hi,
Thank you kolate_sambhaji, it did remove test_app2 but what I’m trying do to is install test_app2.
Any idea?
Thank you.
Ok when I put back test_app2 in the app.txt in site/ I manage to install it correctly!
Thank you!