Re: pyodbc in umbutu 19.10

2020-02-18 Thread Elias Coutinho
t install unixodbc-dev > > Hope it helps! > > -Jorge > > > > On Tue, Feb 18, 2020, 10:49 AM Elias Coutinho > wrote: > >> Good afternoon people. >> >> >> Out of curiosity I installed SQL Server on Linux. >> >> >> I restore

pyodbc in umbutu 19.10

2020-02-18 Thread Elias Coutinho
Good afternoon people. Out of curiosity I installed SQL Server on Linux. I restored a database and made basic commands. Working properly! I have a connection I made to a .py file to make queries and run stored procedures. It also works on windows. As I wanted to have a SQL Server SGDB

Re: Groups and summarys in template

2019-12-01 Thread Elias Coutinho
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: >> >> accounts = Account.objects.filte

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

help with inline

2019-11-05 Thread Elias Coutinho
Hello, In this project I use: django-material (http://docs.viewflow.io/material_forms.html) and materializecss (https://materializecss.com/select.html) In your example without these js and css libraries it works perfectly, ie with pure html it's beautiful. I tried to add these libraries and it

Re: django-extra-views

2019-10-30 Thread Elias Coutinho
Sorted out! path('nova/', views.CreatePerson.as_view(), name='CreatePerson'), Em qua, 30 de out de 2019 às 14:27, Elias Coutinho escreveu: > Good afternoon friends! > > I need your help on this issue. > > I'm trying to use this lib: > > https://github.com/AndrewIngr

django-extra-views

2019-10-30 Thread Elias Coutinho
Good afternoon friends! I need your help on this issue. I'm trying to use this lib: https://github.com/AndrewIngram/django-extra-views Specifically CreateWithInlinesView or UpdateWithInlinesView Then I created the view like this: from extra_views import CreateWithInlinesView,

Re: Staticfiles on S3

2019-09-19 Thread Elias Coutinho
Em quarta-feira, 4 de setembro de 2019 17:06:29 UTC-3, Elias Coutinho escreveu: > > Guys good afternoon, > > I managed to put my static folder in s3, the problem is that my effects > already lost power. lol > > The staticfiles folder where the auxiliary applications are installe

Staticfiles on S3

2019-09-04 Thread Elias Coutinho
Guys good afternoon, I managed to put my static folder in s3, the problem is that my effects already lost power. lol The staticfiles folder where the auxiliary applications are installed stop working, in my case it was django-material, select2 and others. If I comment this code

Re: unsupported operand type (s) for -: 'NoneType' and 'NoneType'

2019-04-08 Thread Elias Coutinho
nship model key those don't have any object. > > Please let me know if you have any other questions. > Or share with me model structure. > > I'm happy to help you. > > On Mon, Apr 8, 2019, 5:45 AM Elias Coutinho > wrote: > >> Save some people. >> >> Fr

unsupported operand type (s) for -: 'NoneType' and 'NoneType'

2019-04-07 Thread Elias Coutinho
Save some people. Friends lack sufficient knowledge to try to solve this problem alone. I have these 3 classes below: Historical , Account

Re: forms with get_or_create and inlineformset_factory

2019-01-26 Thread Elias Coutinho
could be but in the context of my client's need this would be inversely to what the project proposes. When he needs to choose the questions he must choose a form and when he wishes all he chooses another. so there are two way and two Views. Em sáb, 26 de jan de 2019 14:31, Mohammad Etemaddar <

forms with get_or_create and inlineformset_factory

2019-01-26 Thread Elias Coutinho
Good morning my friends. I have two forms that I use to insert data into the same models in different situations: class SearchFormCompleto(forms.ModelForm): class Meta: model = Search fields = ( 'search_key', 'person', 'researched',

More than one parameter in the url

2018-11-20 Thread Elias Coutinho
Good morning friends. In this project I create several Model Questions: https://github.com/CoutinhoElias/pesquisasatisfacao/blob/master/pesquisasatisfacao/core/views.py#L61 Then I create my Client:

Exception Value: Cannot query "PERGUNTA 2": Must be "Question" instance.

2018-11-17 Thread Elias Coutinho
Good morning my friends. Before sending this doubt I searched a lot in the forums of life! I have the following code that does bulk inclusion: def seach_create(request): template_name = 'seach_create.html' if request.method == 'POST': form = SearchForm(request.POST) if

Using forms for bulk records

2018-11-03 Thread Elias Coutinho
Good morning people. As always my problem is conceptual. I have improved a lot, but still in the fight. 1 - I have a list of data and I know how to add it to another model at one time. (Easy) 2 - It turns out that in this list some data will be filled by the user before saving and will be

Deploy on Heroku

2018-06-27 Thread Elias Coutinho
Good Morning, Following the deploy model of this tutorial , I was not successful. Below the traceback of the terminal and then the heroku logs. Where did I go wrong? I did not identify what the message meant.

Re: Django and Fullcalendar.

2018-04-30 Thread Elias Coutinho
users/f157cd20-7ddd-4692-aa66-9ca028fb143a%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Elias Coutinho. Aprender sobre alguns assuntos é fundamental. Aprender sobre Deus é indiscutivelmente o melhor conte

Django and Fullcalendar.

2018-04-25 Thread Elias Coutinho
Good afternoon my friends. Anyway, I do not make a living, and someday some day maybe. My knowledge of Django is intermediate so do not be surprised if I make a mistake. I have the FULLCALENDAR project. It is using DRF and ajax for some actions

Capture fk

2017-08-24 Thread Elias Coutinho
Good afternoon people. . . I have two models: Person and Address Address has a Person fk I would like to register the addresses of people without the need to manually point to which person's given address will belong. . . I was directed to use inlines but I hate the admin of django because if I

Error rendering template ==> raise KeyError (key) KeyError: 'address_inline'

2017-08-09 Thread Elias Coutinho
Good afternoon people, I'm trying to render a template with django-material I am getting the error message in the template as below: And the complete traceback

Re: TypeError: __init__() takes 2 positional arguments but 3 were given (django-material)

2017-07-26 Thread Elias Coutinho
nibraz/persons/views.py", line 6, in from danibraz.persons.forms import ClientsForm, EmployeeForm File "/home/eliaspai/dani/danibraz/persons/forms.py", line 31, in class ClientsForm(Form): File "/home/eliaspai/dani/danibraz/persons/forms.py", line 52, in ClientsForm

TypeError: __init__() takes 2 positional arguments but 3 were given (django-material)

2017-07-25 Thread Elias Coutinho
Hello guys! I'm trying to recreate a form with Inline using django and django-stuff. I already got it once, but this is not being easy! I want to create a form that can register a Client and its addresses, or something similar to this link here. Example 1: Adding contacts. Example 2: Adding

DateTimeField Outside Admin

2016-11-27 Thread Elias Coutinho
Good afternoon people, I would like to

Re: Django, Ajax e Fullcalendar

2016-11-15 Thread Elias Coutinho
with django you can carry here as well. Thank you. Em terça-feira, 15 de novembro de 2016 13:57:54 UTC-3, Elias Coutinho escreveu: > > Boa tarde a todos. > > Assisti o vídeo de um colega > https://www.youtube.com/watch?v=PwskBz5re4Q=youtu.be e peguei > carona no projeto dele p

Django, Ajax e Fullcalendar

2016-11-15 Thread Elias Coutinho
Boa tarde a todos. Assisti o vídeo de um colega https://www.youtube.com/watch?v=PwskBz5re4Q=youtu.be e peguei carona no projeto dele para iniciar estudo de Ajax. Aproveitei a api rest que ele criou, modifiquei um pouco para atender o que eu desejava, ja havia estudado django rest framework e

Webix an django.

2016-04-25 Thread Elias Coutinho
Good night folks, http://webix.com/demos/ WEBIX is very nice to see and ride the templates. The question is simple: Django works by taking the data? Does anyone have an example? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

recuperar user logado

2016-04-18 Thread Elias Coutinho
Boa tarde pessoal, Estou utilizando django material, LayoutMixin Minha View é a seguinte: class NewProfissoesPessoaView(LoginRequiredMixin,LayoutMixin, extra_views.NamedFormsetsMixin, extra_views.CreateWithInlinesView): title = "Nova Profissão"

request user

2016-04-18 Thread Elias Coutinho
Good afternoon people, I am using django material, LayoutMixin My view is: class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, extra_views.NamedFormsetsMixin, extra_views.CreateWithInlinesView): title = "New Job" model =