Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend not rendering fully - jinja2.exceptions.TemplateNotFound: templates/includes/app_analytics/mixpanel_analytics.html #2

Open
ncc-social opened this issue Apr 7, 2024 · 1 comment

Comments

@ncc-social
Copy link

After installing the design_app, I was able to go to the login page and login.

The homepage doesn't display

image

Traceback (most recent call last):
File "apps/frappe/frappe/utils/jinja.py", line 97, in render_template
return get_jenv().from_string(template).render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "env/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 113, in top-level template code
jinja2.exceptions.TemplateNotFound: templates/includes/app_analytics/mixpanel_analytics.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 18, in get_response
response = renderer_instance.render()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File "apps/frappe/frappe/website/utils.py", line 523, in cache_html_decorator
html = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 101, in get_html
html = self.render_template()
^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 236, in render_template
html = frappe.render_template(self.source, self.context, safe_render=safe_render)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/jinja.py", line 99, in render_template
throw(
File "apps/frappe/frappe/init.py", line 593, in throw
msgprint(
File "apps/frappe/frappe/init.py", line 565, in msgprint
_raise_exception()
File "apps/frappe/frappe/init.py", line 516, in _raise_exception
raise exc
frappe.exceptions.ValidationError:

Frappe


{% for include in include_css -%}
{{ include_style(include) }}
{%- endfor -%}



{% include "public/icons/timeless/icons.svg" %}
{% include "templates/includes/splash_screen.html" %}
 
                                                        Welcome back, !
                                                        
                                                            
                                                                
                                                            
                                                            You have 0 new
                                                            Notifications
                                                        
 
    window._version_number = "{{ build_version }}";
    // browser support
    window.app = true;
    window.dev_server = {{ dev_server }};

    if (!window.frappe) window.frappe = {};

    frappe.boot = JSON.parse({{ boot }});
    frappe._messages = frappe.boot["__messages"];
    frappe.csrf_token = "{{ csrf_token }}";


{% for include in include_js %}
{{ include_script(include) }}
{% endfor %}

{% include "templates/includes/app_analytics/google_analytics.html" %}
{% include "templates/includes/app_analytics/mixpanel_analytics.html" %}

{% for sound in (sounds or []) %}

{% endfor %}

Traceback (most recent call last):
File "apps/frappe/frappe/utils/jinja.py", line 97, in render_template
return get_jenv().from_string(template).render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "env/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 113, in top-level template code
jinja2.exceptions.TemplateNotFound: templates/includes/app_analytics/mixpanel_analytics.html

@walkinlogic
Copy link
Owner

issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants