Re: counting the same words within a song added by a user using Django

2021-07-05 Thread Lalit Suthar
[image: Screen Shot 2021-07-06 at 9.50.12 AM.png] Counter works with words also nice one Simon Charette learned something new :) On Tue, 6 Jul 2021 at 07:56, DJANGO DEVELOPER wrote: > thanks Simon but I am not using postgresql. I am using sqlite3 database. > so I want a global solution, that wo

Re: counting the same words within a song added by a user using Django

2021-07-05 Thread DJANGO DEVELOPER
thanks Simon but I am not using postgresql. I am using sqlite3 database. so I want a global solution, that work in all the databases. On Tue, Jul 6, 2021 at 1:54 AM Simon Charette wrote: > If you're using a PostgreSQL you might want to look at using a tsvector > column instead which will ignore

Related model 'company.user' cannot be resolved

2021-07-05 Thread Mike Dewhirst
I moved my custom user and userprofile models from my 'common' app into my 'company' app by way of locking the model tables first (db_table = "common_user" and so on) and just plain refactoring. That has all worked sort of as expected in that Company and User models now appear in the company a

Re: counting the same words within a song added by a user using Django

2021-07-05 Thread Simon Charette
If you're using a PostgreSQL you might want to look at using a tsvector column instead which will ignore stop words (the, or, of, ...) and map lexemes to their number of occurrence and position in the lyrics[0]. Assuming you were to index this column you'd be able to efficiently query it for ex

Re: hello i need a help

2021-07-05 Thread sum abiut
The error message is very clear send_mass_mail only expect 4 values but you are passing in more than four. You should only pass in four values. datatuple = ( ('f_subject', 'f_message','f_email', ['mygm...@gmail.com']), # second person ('f_subject', 'f_message','f_email', ['sec...@gmail.com']) )

Re: counting the same words within a song added by a user using Django

2021-07-05 Thread DJANGO DEVELOPER
Thank you Lalit bhai. it seems to be a solution. but what if I want to get the result for each single word rather than single letter? On Mon, Jul 5, 2021 at 5:43 PM Lalit Suthar wrote: > https://www.guru99.com/python-counter-collections-example.html > Counter can be helpful for this situation >

Re: Credentials fail from custom Auth backend

2021-07-05 Thread David Crandell
BACKENDS.PY class EmpBackend(ModelBackend): Emp = get_user_model() supports_object_permissions = True supports_anonymous_user = False supports_inactive_user = False def authenticate(self, request, email=None, password=None, **kwargs): if email is None or password is None: return try: username =

Re: Credentials fail from custom Auth backend

2021-07-05 Thread David Crandell
This is the message I get when I try to login "Please enter a correct email and password. Note that both fields may be case-sensitive." I've changed my code a little in an effort to try to remedy my situation. I'm really stuck on this. From what I can tell, it's passing the values to the authen

hello i need a help

2021-07-05 Thread Richard Dushime
i am getting this error down when trying to submit my form data to email {{ ValueError at /contact too many values to unpack (expected 4) Request Method: POST Request URL: http://localhost:8000/contact Django Version: 3.2.4 Exception Type: ValueError Exception Value: too many values to unpack

Re: counting the same words within a song added by a user using Django

2021-07-05 Thread Lalit Suthar
https://www.guru99.com/python-counter-collections-example.html Counter can be helpful for this situation On Mon, 5 Jul 2021 at 17:07, DJANGO DEVELOPER wrote: > Hi there. > I am developing a project based on adding songs to the user's library and > to the home page. > other users can also purchas

counting the same words within a song added by a user using Django

2021-07-05 Thread DJANGO DEVELOPER
Hi there. I am developing a project based on adding songs to the user's library and to the home page. other users can also purchase the songs like wise people do shopping on eCommerce stores. *Problem:(Question)* The problem that I want to discuss here is that when a user adds a sing through dja

Re: Django beginner

2021-07-05 Thread Andréas Kühne
Hi and welcome to the django community! The best way to learn django depends a lot on you skill and experience of python as well. If you don't know that much python, I would recommend starting with a good course or a book about fundamentals in Python. After that I would go to the following resour

Re: looking for mobile developers

2021-07-05 Thread Kylex Isasi Tech
I'm interested Le dim. 4 juil. 2021 à 9:38 PM, Theresa Taye a écrit : > Hello guys, > > I need flutter users for a project urgently if you are interested, please > contact me. > > Best regards > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

How do I return a queryset of all items (X) ManyToMany related to model class (Y) and include values for (Y) in the same result in each item X

2021-07-05 Thread mtp...@gmail.com
I have the following two model classes: ``` class Property(models.Model): """Represents property class model""" serial_no = models.CharField(unique=True,max_length=255,blank=True,null=True) map_no = models.CharField(max_length=255,blank=True,null=True) lr_no = models.CharField(ma