Django access the Default database (prod/dev) when testing and Fatal Error

2020-08-13 Thread Carlos Leite
Hello everyone, I run into a odd situation while trying to run some tests in an old project (dj 1.8) Then I tried the same on a django 3.1 and the problem is still there. # models.py # class Disco(models.Model): nome = models.CharField('disco', max_length=50) class

Re: ERROR

2020-08-13 Thread traore arouna
how define it Le jeu. 13 août 2020 à 21:23, Akinfolarin Stephen < akinfolarinsteph...@gmail.com> a écrit : > your user variable is not define try to define it like is not referencing > anything > > On Fri, Aug 14, 2020 at 11:07 AM traore arouna > wrote: > >> ok my js file is >> >> >> var

Re: ERROR

2020-08-13 Thread traore arouna
where can define it Le jeudi 13 août 2020 à 21:24:37 UTC, akinfolar...@gmail.com a écrit : > your user variable is not define try to define it like is not referencing > anything > > On Fri, Aug 14, 2020 at 11:07 AM traore arouna wrote: > >> ok my js file is >> >> >> var updateBtns =

Re: ERROR

2020-08-13 Thread Akinfolarin Stephen
your user variable is not define try to define it like is not referencing anything On Fri, Aug 14, 2020 at 11:07 AM traore arouna wrote: > ok my js file is > > > var updateBtns = document.getElementsByClassName('update-cart') > > for(var i = 0; i < updateBtns.length; i++) > { >

Re: ERROR

2020-08-13 Thread traore arouna
ok my js file is var updateBtns = document.getElementsByClassName('update-cart') for(var i = 0; i < updateBtns.length; i++) { updateBtns[i].addEventListener('click',function(){ var productId = this.dataset.product var action = this.dataset.action console.log('productId:',productId,

Re: ERROR

2020-08-13 Thread traore arouna
no I not switch to my web site I alway in my local project directory Le dimanche 9 août 2020 à 02:30:36 UTC, kovy@gmail.com a écrit : > Are you switching into your projects directory and then using 'python > manage.py runserver' from command prompt/terminal to run your website? > > On Sat,

Re: ERROR

2020-08-13 Thread traore arouna
and my view content from django.shortcuts import render from django.http import JsonResponse import json from .models import * def store(request): if request.user.is_authenticated: customer = request.user.customer order, created =

Re: django and webcams

2020-08-13 Thread Thiago Luiz Parolin
when i need that some user take a picture using his/her webcam, i use uppy uploader. https://uppy.io Em qua., 12 de ago. de 2020 às 18:05, Samara Muñoz escreveu: > > > On Sunday, January 24, 2010 at 11:46:27 AM UTC-6, H.İbrahim Yılmaz wrote: >> >> Thanks Atamert, >> This is! :) >>

Re:

2020-08-13 Thread Santosh V
Hi Rohini, You can check django docs for pagination and django filter for searching On Thu, Aug 13, 2020, 8:28 AM ROHINI PUNDE wrote: > Hi, > I want to do sorting, searching and paging in my crud operations,I am not > getting exactly what can I do easily with python and django.please give me >

Re:

2020-08-13 Thread Deepraj Devikar
Hello Rohini, use this MyModels.objects.filter(name = "Rahul") MyModel is Database table, name is column name, rahul is value to filter all users whose name is rahul will be filter links for more information https://docs.djangoproject.com/en/3.0/ref/models/querysets/

Re:

2020-08-13 Thread shubham vashisht
But I think it's not needed because most probably he wants to sort, search Django model objects. On Thu, 13 Aug 2020, 09:06 'Amitesh Sahay' via Django users, < django-users@googlegroups.com> wrote: > probably, you can implement binary search algorithm > > Regards, > Amitesh > > > On Thursday, 13

DjangoProject

2020-08-13 Thread Sunday Adeyemi
Hello I have interest , thanks Soo much.Sunday -- 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+unsubscr...@googlegroups.com. To view this

Re: 'Sandboxed' Template engine/context

2020-08-13 Thread Mitesh Shah
Hi Michael, I'm looking for a similar option to allow users to upload their own templates for theming purposes. Did you find any solution to this? Thanks, Mitesh On Friday, July 10, 2020 at 2:52:36 PM UTC+5:30 michael.t...@gmail.com wrote: > Hi all, > > Does anyone know of a straightforward

Re:

2020-08-13 Thread Damanjeet Singh
Hello Rohini, I suggest using the Java script if you would like to do such an operation in the template. https://www.w3schools.com/jsref/jsref_sort.asp https://medium.com/@cecilia.wahome/searching-sorting-algorithms-in-javascript-fcc08551c8a8 best regards, Daman On Thu, Aug 13, 2020 at 3:57