Re: Unique and null

2021-04-07 Thread Mike Dewhirst
Many thanksMike--(Unsigned mail from my phone) Original message From: "Ing.Daniel Bojorge" Date: 8/4/21 08:59 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Unique and null I suggest that if you set unique, the field must have value, so null=False.Blank=True es fo

Re: Unique and null

2021-04-07 Thread Ing.Daniel Bojorge
I suggest that if you set unique, the field must have value, so null=False. Blank=True es for form and template, to set required. Null es for database. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Re: Unique and null

2021-04-07 Thread Mike Dewhirst
No. PostgreSQL.I checked that post. And googled the answer. Postgres follows the SQL standard and permits multiple nulls in a unique column.I should have done that instead of asking. I had first thought of it being a Django thing and couldn't find the answer in the docs.Thanks for responding.Ch

Extending with plugins remotely -at least from a frontend

2021-04-07 Thread Joel Tanko
Hi guys I have a question just one, but it houses a myriad of smaller questions for clarity. So I'm building a django app that creates virtual organizations, I'm planning on hosting with digitalocean for reasons. My app just creates a droplet and host a site ( already done that) Now I want my use

Re: Green job, anywhere inside U.S.

2021-04-07 Thread Brandon Del Pozo
Hello marlacparker, You can post you django Jobs here: https://t.me/djangojobs On Wed, Apr 7, 2021 at 8:31 AM marlacparker wrote: > Two actually, one for python/django and the other data engineering but > also python: > > https://www.linkedin.com/jobs/view/2464811223/ > https://www.linkedin.com/

Listview Iterate over List

2021-04-07 Thread sebasti...@gmail.com
Hello, i want to create a Listview like this: class HistorieListView(ListView): model = Address template_name = 'marketing/liststandardtemplate.html' fieldlist = ('id', 'lastname', 'firstname') now i want in liststandardtemplate.html that i iterate in tablebody over fieldlist:

Finding unsupported bytestring

2021-04-07 Thread Benny M
Hi folks, We’re finally making our move out of 1.x Django and one of the changes we’ve ran into is the removed support for bytestring in some places: https://docs.djangoproject.com/en/2.0/releases/2.0/#removed-support-for-bytestrings-in-some-places

Re: Unique and null

2021-04-07 Thread Roger Gammans
I should have said SQL specifies NULL compares Non-equal, the ORM converts None's in python to NULL in SQL for you, as well as all the other things it does On Wed, 2021-04-07 at 15:25 +0100, Roger Gammans wrote: > Hi All, > Let shed some actually light on the whole problem, before people > start pi

Re: Unique and null

2021-04-07 Thread Roger Gammans
Hi All, Let shed some actually light on the whole problem, before people start piling in. This is mostly (form the Django perspective) and issue with CharFields, because a CharField can store None or ''. For values of '' in CharField, IIRC, django will convert them to null, with null=True, blank=

Re: Unique and null

2021-04-07 Thread Vkash Poudel
I'm using Postgresql does CharField unique solves problem of uniqueness , can we work with uuid model. On Wed, Apr 7, 2021 at 6:51 PM Derek wrote: > Are you using MySQL? > > > https://stackoverflow.com/questions/371/does-mysql-ignore-null-values-on-unique-constraints > > > On Wednesday, 7 A

Green job, anywhere inside U.S.

2021-04-07 Thread marlacparker
Two actually, one for python/django and the other data engineering but also python: https://www.linkedin.com/jobs/view/2464811223/ https://www.linkedin.com/jobs/view/2491308025/ MUST be able to work full time permanent in one of the 50 U.S. states. (Sorry - small company.) Need about 4 years

Re: Unique and null

2021-04-07 Thread Derek
Are you using MySQL? https://stackoverflow.com/questions/371/does-mysql-ignore-null-values-on-unique-constraints On Wednesday, 7 April 2021 at 08:07:35 UTC+2 Mike Dewhirst wrote: > I have just made a CharField unique and Django detects duplicates nicely > but seems to ignore multiple insta

Re: Unique and null

2021-04-07 Thread Ryan Nowakowski
I'm not sure about the case with null. However, I believe that most uses of CharField leave null=False and use the empty string instead to represent "empty" value. On April 7, 2021 1:06:44 AM CDT, Mike Dewhirst wrote: >I have just made a CharField unique and Django detects duplicates >nicely

Django 3.2 AttributeError: 'TextField' object has no attribute 'db_collation'

2021-04-07 Thread Asaduzzaman Sohel
I've an existing project on Django 3.1 and I upgraded my project to Django 3.2. I created an app called payment on my project. But When I make migrations. It trow an error ```AttributeError: 'TextField' object has no attribute 'db_collation'``` ``` from django.db import models from django.conf i

Re: License management system Refrence

2021-04-07 Thread bikash...@gmail.com
License as per the service On Wednesday, April 7, 2021 at 10:16:55 AM UTC+5:45 Ryan Nowakowski wrote: > What kind of product are you trying to license? A proprietary computer > desktop application? A mobile application for iOS or Android? A proprietary > self-hosted web app? > > > On April 6, 2