DoesNotExist at /

Visto 92 veces
Saltar al primer mensaje no leído

tech george

no leída,
28 dic 2020, 2:05:0828/12/20
a django...@googlegroups.com
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 18

Currency 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 %}

AMRIT SHAHI

no leída,
28 dic 2020, 10:41:4028/12/20
a django...@googlegroups.com
Is your hosting support python

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADYG20Hfxc4xK0tDs-%2B326_dS%2BobsNAzaYKOBSYnpg9b8ykprg%40mail.gmail.com.

Prashanjeet Halder

no leída,
28 dic 2020, 10:41:4228/12/20
a Django users
There's no built-in filter as currency in django template language you can custom create one. 

As Demonstrated Here: LINK

tech george

no leída,
28 dic 2020, 13:16:3728/12/20
a django...@googlegroups.com

tech george

no leída,
28 dic 2020, 13:17:3328/12/20
a django...@googlegroups.com
Hi,


Let me go through the dock and see if I'll get a breakthrough.

Thanks

--
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...@googlegroups.com.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos