Hi,
Let me go through the dock and see if I'll get a breakthrough.
Thanks
On Mon, 28 Dec 2020, 18:41 Prashanjeet Halder, <jeetu8halder@gmail.com> wrote:
There's no built-in filter as currency in django template language you can custom create one.--On Monday, December 28, 2020 at 12:35:08 PM UTC+5:30 techg...@gmail.com wrote:Hello,I am getting the error as shown below when uploading my django project to share hosting. How can I resolve it?Please advise.DoesNotExist at /
Currency matching query does not exist.
Request Method: GET Request URL: http://fullcart.co.ke/ Django Version: 3.0.7 Exception Type: DoesNotExist Exception Value: Currency matching query does not exist.Exception Location: /home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages/django/db/models/query.py in get, line 417 Python Executable: /home2/fullcart/virtualenv/fullcart/3.7/bin/python3.7 Python Version: 3.7.8 Python Path: ['', '/opt/alt/python37/bin', '/home2/fullcart/fullcart', '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python37.zip', '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7', '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7/lib-dynload', '/opt/alt/python37/lib64/python3.7', '/opt/alt/python37/lib/python3.7', '/home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages']Server time: Mon, 28 Dec 2020 07:00:13 +0000 Error during template rendering
In template
/home2/fullcart/fullcart/home/templates/slider.html
, error at line 18Currency matching query does not exist.
8 <div class="home-wrap"> 9 <!-- home slick --> 10 <div id="home-slick"> 11 12 {% for rs in products_slider %} 13 <!-- banner --> 14 <div class="banner banner-1"> 15 <img src="{{ rs.image.url }}" alt="" style="width:1200; height:560px"> 16 <div class="banner-caption text-center"> 17 <h1>{{ rs.title }} </h1> 18 <h3 class="white-color font-weak"> {{ rs.price|currency:request.session.currency }} {{ request.session.currency }} </h3> 19 <a href="{% url 'product_detail' rs.id rs.slug %}" class="primary-btn">Shop Now</a> 20 21 </div> 22 </div> 23 <!-- /banner --> 24 {% endfor %}
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e17e0564-d639-47d9-b359-8e8f6fa695ccn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADYG20HNJ5RmyR%2BaMpoAfkhoM68_02QM-rvOxB2_%2BvhbpKjVZQ%40mail.gmail.com.
No comments:
Post a Comment