Monday, December 28, 2020

Re: DoesNotExist at /

There's no built-in filter as currency in django template language you can custom create one. 

As Demonstrated Here: LINK

On Monday, December 28, 2020 at 12:35:08 PM UTC+5:30 wrote:

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:
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/ 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/',   '/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 18

Currency matching query does not exist.

8 <div class="home-wrap">
9 <!-- home slick -->
10 <div id="home-slick">
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.slug %}" class="primary-btn">Shop Now</a>
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
To view this discussion on the web visit

No comments:

Post a Comment