Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Salima Begum
Hi all, vikreya mysite .cache .idea .pytest_cache logs media mysite __init__.py manage.py settings.py urls.py wsgi.py pages .cache migrations static te

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Salima Begum
Hi all, my project structure vikreya mysite .cache .idea .pytest_cache logs media mysute __init__.py manage.py settings.py urls.py wsgi.py pages .cache migrations static templates tests test_views.py __init__.py admin.py apps.py cron.py Forms.py functions.py models.py urls.py views.py On Fri, Oct

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Salima Begum
Hi @Akinfolarin Stephen, On Fri, Oct 16, 2020 at 11:10 AM Akinfolarin Stephen < akinfolarinsteph...@gmail.com> wrote: > First I will like you to tell me the folder where test.py is and views.py > > On Fri, Oct 16, 2020, 06:27 Salima Begum > wrote: > >> Hi all, >> >> I have written test case f

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Akinfolarin Stephen
First I will like you to tell me the folder where test.py is and views.py On Fri, Oct 16, 2020, 06:27 Salima Begum wrote: > Hi all, > > I have written test case for views for details page. Here is below code I > have written > > ``` > from django.test import RequestFactory > from django.urls imp

ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Salima Begum
Hi all, I have written test case for views for details page. Here is below code I have written ``` from django.test import RequestFactory from django.urls import reverse from django.contrib.auth.models import User from pages.models import vk_customer from mixer.backend.django import mixer import

Django conditional field display on form

2020-10-15 Thread Clive Bruton
I am trying to make a simple form, that conditionally shows the "website" input field based on the value of another database field (that is not on the form) "status". For the sake of this process the "status" field is not editable by the user, just by the admin. Both fields are in the same

Re: django staticfiles problem

2020-10-15 Thread Chelsea Fan
thanks guys, I did it )) On Thu, Oct 15, 2020 at 9:55 PM Luis Zárate wrote: > You have a problem here > {% static '/css/base.css' %} > > the correct is > {% static 'css/base.css' %} > > Also is a bad idea set media folder in static. > take a look here https://docs.djangoproject.com/en/3.1/ho

Re: django staticfiles problem

2020-10-15 Thread Luis Zárate
You have a problem here {% static '/css/base.css' %} the correct is {% static 'css/base.css' %} Also is a bad idea set media folder in static. take a look here https://docs.djangoproject.com/en/3.1/howto/static-files/ El mié., 14 oct. 2020 a las 23:05, Farai M () escribió: > Why have the

Re: need assistant

2020-10-15 Thread John Rajesh
Share about the Django projects On 15 Oct 2020 20:31, "ericki...@gmail.com" wrote: > hello guys am new at Django , i have couple of projects for Django and > pyside2 if anyone is willing to assist me in this fields i be so great full > as we learn from each other and carry out more projects > > >

Re: need assistant

2020-10-15 Thread Akinfolarin Stephen
Hi will be willing to colaborate On Thu, Oct 15, 2020, 16:38 Noel Simela wrote: > Hi, what is the nature of your projects? > > On Thu, 15 Oct 2020, 17:01 ericki...@gmail.com > wrote: > >> hello guys am new at Django , i have couple of projects for Django and >> pyside2 if anyone is willing to a

Re: need assistant

2020-10-15 Thread Noel Simela
Hi, what is the nature of your projects? On Thu, 15 Oct 2020, 17:01 ericki...@gmail.com wrote: > hello guys am new at Django , i have couple of projects for Django and > pyside2 if anyone is willing to assist me in this fields i be so great full > as we learn from each other and carry out more p

Re: forloop.counter

2020-10-15 Thread GBELE CEDRIC EMMANUEL
{% if forloop.counter < variable %} Le jeu. 15 oct. 2020 à 15:01, nirali sanghvi <18comp.niralisang...@gmail.com> a écrit : > Ig this is bcoz u are using jinga format in a jinga format. > > On Thu 15 Oct, 2020, 8:04 PM luca72.b...@gmail.com, < > luca72.bertolo...@gmail.com> wrote: > >> i have th

Re: forloop.counter

2020-10-15 Thread nirali sanghvi
Ig this is bcoz u are using jinga format in a jinga format. On Thu 15 Oct, 2020, 8:04 PM luca72.b...@gmail.com, < luca72.bertolo...@gmail.com> wrote: > i have this : > {% if forloop.counter < {{ variable }} %} > i have this error: > > Could not parse the remainder: '{{' from '{{' > > how i can s

need assistant

2020-10-15 Thread ericki...@gmail.com
hello guys am new at Django , i have couple of projects for Django and pyside2 if anyone is willing to assist me in this fields i be so great full as we learn from each other and carry out more projects thank you -- You received this message because you are subscribed to the Google Groups "

Re: forloop.counter

2020-10-15 Thread luca72.b...@gmail.com
thanks i forgot it Il giorno giovedì 15 ottobre 2020 alle 16:39:45 UTC+2 larry.mart...@gmail.com ha scritto: > On Thu, Oct 15, 2020 at 7:32 AM luca72.b...@gmail.com > wrote: > > > > i have this : > > {% if forloop.counter < {{ variable }} %} > > i have this error: > > > > Could not parse the re

Re: forloop.counter

2020-10-15 Thread Larry Martell
On Thu, Oct 15, 2020 at 7:32 AM luca72.b...@gmail.com wrote: > > i have this : > {% if forloop.counter < {{ variable }} %} > i have this error: > > Could not parse the remainder: '{{' from '{{' > > how i can solve it? You don't need {{ }} inside of a {% %} -- You received this message because

forloop.counter

2020-10-15 Thread luca72.b...@gmail.com
i have this : {% if forloop.counter < {{ variable }} %} i have this error: Could not parse the remainder: '{{' from '{{' how i can solve it? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Django 3.1.2 JSONField handling error with an Postgres Foreign Data Wrapper-based model

2020-10-15 Thread shahee...@gmail.com
Thanks Jason, I filed https://code.djangoproject.com/ticket/32111#ticket. On Thursday, 15 October 2020 at 12:51:22 UTC+1 Jason wrote: > this is pretty interesting, and may be something to report to the devs at > https://groups.google.com/g/django-developers, or open up a ticket at > https://cod

Re: Django 3.1.2 JSONField handling error with an Postgres Foreign Data Wrapper-based model

2020-10-15 Thread Jason
this is pretty interesting, and may be something to report to the devs at https://groups.google.com/g/django-developers, or open up a ticket at https://code.djangoproject.com/ I don't see any tickets with the query *jsonfield foreign data* that are similar with your experience, so you may have

Django 3.1.2 JSONField handling error with an Postgres Foreign Data Wrapper-based model

2020-10-15 Thread Shaheed Haque
Hi, I have a Django model working fine under Django 3.0 (i.e. "Django<3.1") which looks like this: === class Job(models.Model): id = models.CharField(max_length=36, primary_key=True) queue = models.CharField(max_length=40) args = JSONField() kwa