@revant_one ok one question . I have main.html, main.py both in www folder of frappe. Now i been able to add events which is the standard event doctype in frappe. WHen i add new events it doesnt get dynamically added to the main.html . I need to restart server for changes to be shown?
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 39, in render
data = render_page_by_language(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 133, in render_page_by_language
return render_page(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 149, in render_page
return build(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 156, in build
return build_page(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 169, in build_page
context = get_context(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 28, in get_context
context = build_context(context)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 100, in build_context
update_controller_context(context, context.controller)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 37, in update_controller_context
module = frappe.get_module(controller)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 704, 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 www.index
my “index.py” looks like that:
from __future__ import unicode_literals
import frappe
def get_context(context):
context.sliders = frappe.db.sql("select image from `tabSlider`")
context.marks = frappe.db.sql("select trade_mark_name,image,name from `tabTrade Mark`")
context.news = frappe.db.sql("select title,image,subject,name from `tabNews`")