Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread Integr@te System
Hi freind, the last time u recieved an email to check config with content of many fields and connection. If u see wrong password field, check in app and db setting. On Sat, Nov 30, 2019, 04:51 Jonathan Duclos wrote: > > > On Friday, 29 November 2019 09:42:00 UTC-3, EMPOWER EXCEL wrote: >> >> c

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Integr@te System
Hi Dvenun, Bc of Django implement accord to python, of cause child inherit from parent existence. https://docs.python.org/3.7/library/functions.html#id On Sat, Nov 30, 2019, 13:30 Dvenum wrote: > Interest idea and it works, but not necessary: > company = Company() > #company.id is N

Re: Groups and summarys in template

2019-11-29 Thread Integr@te System
Hi, You can sellect from SO(relate to 'sold_value') as retrieve from new SO base on current time. Or If due date time == datetime now && 'due date' != 0: retrieve 'due date' On Sat, Nov 30, 2019, 02:36 Elias Coutinho wrote: > Good afternoon people! > > I have the following querysets: > >

Re: Groups and summarys in template

2019-11-29 Thread Dvenum
Not sure I understand, what you doing, but you may use F() expression to compare fields in the query: https://docs.djangoproject.com/en/2.2/ref/models/expressions/#f-expressions On Sat, Nov 30, 2019 at 2:36 AM Elias Coutinho wrote: > Good afternoon people! > > I have the following querysets: > >

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Dvenum
Interest idea and it works, but not necessary: company = Company() #company.id is None companies.append(company) Company.objects.bulk_create(companies) #company.id is 1 Instead to ask pk from database, it can be used from company_value.company.id. Django save pk value to intern

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Charles Lee
I have an idea. 1. `bulk_create` all companies. 2. `Filter`(SELECT) all `Company` and make it dictionary for retrieving company fast. 3. 1. company_dict = { ’Name’: ‘pk’, ... } 4. Create a list of `CompanyValue` with company name and company_dict.

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Charles Lee
I have an idea. 1. `bulk_create` all companies. 2. `Filter`(SELECT) all `Company` and make it dictionary for retrieving company pk fast. 3. 1. company_dict = { ’Name’: ‘pk’, ... } 4. Create a list of `CompanyValue` with company name and company_dict

Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread Jonathan Duclos
On Friday, 29 November 2019 09:42:00 UTC-3, EMPOWER EXCEL wrote: > > cqn some body helps me to correct this error while running *python > manager.py runeserver * > (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ > python manage.py runserver > Performing system checks... >

Groups and summarys in template

2019-11-29 Thread Elias Coutinho
Good afternoon people! I have the following querysets: accounts = Account.objects.filter (person__is_representative = False) .order_by ('due date') groups = Account.objects.values ('due_date'). annotate (total_day = Sum ('sold_value')). order_by ('due_date') Accounts Returns a List

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Dvenum
Integr@te System, thanks. If I set pk (id) manually, it works, but hard to specify this id value. Maybe for one thread this way is good. On Fri, Nov 29, 2019 at 10:59 PM Integr@te System wrote: > Hi guy, > > I see this doc fix for u, with builtin pk in models django. > And you can create index i

Django Africa

2019-11-29 Thread Joshua Kayode
Are you Interested in seeing more people across Africa tap into the potential of the web? and would like to help reached underserved communities? Then join DjangoAfrica with the mission to spread the knowledge of the web across underserved communities. Join our WhatsApp group *https://chat.whatsapp

Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread John McClain
try resetting the PW On Fri, 29 Nov 2019 at 12:40, EMPOWER EXCEL wrote: > cqn some body helps me to correct this error while running *python > manager.py runeserver * > (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ > python manage.py runserver > Performing system checks.

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Integr@te System
Hi guy, I see this doc fix for u, with builtin pk in models django. And you can create index in text/char field to optimize performance. https://docs.djangoproject.com/en/dev/ref/databases/#manually-specified-autoincrement-pk On Fri, Nov 29, 2019, 19:41 Maxim Bulatov wrote: > Hello, > > I hav

Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread EMPOWER EXCEL
thanks On 11/29/19, Integr@te System wrote: > Hi freind, > > check your connection on vm first, and then config > https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-HOST > > On Fri, Nov 29, 2019, 19:41 EMPOWER EXCEL wrote: > >> cqn some body helps me to correct this error while runn

Re: Set different value for a field when Admin creates an user

2019-11-29 Thread Sencer Hamarat
Check request.user.is_superuser. If it return True, the role of the user signed in is Admin. Saygılarımla, Sencer HAMARAT On Fri, Nov 29, 2019 at 3:41 PM Fruity Code wrote: > I have an updated user model and added two fields to it, mobile_number and > role. The field role has two options Cust

Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread Integr@te System
Hi freind, check your connection on vm first, and then config https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-HOST On Fri, Nov 29, 2019, 19:41 EMPOWER EXCEL wrote: > cqn some body helps me to correct this error while running *python > manager.py runeserver * > (analyseprotection

Update _id field before .save() for ForeignKey

2019-11-29 Thread Maxim Bulatov
Hello, I have lot of lists like follow: (Name1): (V1, V2, V3, V4, ..) And I use many threads to create many db objects: company = Company(Name) for x in vector: v = CompanyValue(company=company, value=x) values.append(v) class CompanyValue(models.Model): company = models.ForeignKey('

core hrms software - online hrm software - cloud hr software

2019-11-29 Thread WINHRMPAYROLL CLOUD HRM PAYROLL SOFTWARE
Cloud-based core HRMS Software -Try our Cloud HRMS software from Win HRM Payroll. Operate Hassle-Free HRMS Software with our Cloud Based best HRM Software. Manage complete Humana resource Management Functions with our cloud HRMS software so

HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread EMPOWER EXCEL
cqn some body helps me to correct this error while running *python manager.py runeserver * (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ python manage.py runserver Performing system checks... System check identified no issues (0 silenced). Unhandled exception in thread st

Set different value for a field when Admin creates an user

2019-11-29 Thread Fruity Code
I have an updated user model and added two fields to it, mobile_number and role. The field role has two options Customer and Admin. Currently, I have made customer as the default value for role. Now what I want is when user signup the role should be a customer but when an admin create a user fro