Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
, John_Diddles escribió: > Can you share the CSS? > > On Sat, Oct 24, 2020, 8:10 PM Walter Randazzo wrote: > >> Hi Folks, >> >> Im trying to get aligned 2 buttons in a TD but they stay overlaped. >> Im attaching the html and the results. >> >

Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
Sorry, I forgot to attach the file. This is how the template looks like now: El sábado, 24 de octubre de 2020 a la(s) 20:19:27 UTC-3, Walter Randazzo escribió: > Hi Jhon thanks for replying: > > I was able to solve the aling issue following the botstrapp documentation > about b

Re: Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
El sábado, 24 de octubre de 2020 a la(s) 20:19:27 UTC-3, Walter Randazzo escribió: > Hi Jhon thanks for replying: > > I was able to solve the aling issue following the botstrapp documentation > about buttons. Here is the new code: > > > >

DJANGO forms: Improve the presentation of the elements

2020-10-25 Thread Walter Randazzo
Hi guys, Is there any way to improve the distribution of the elements of the django form, from this (img1) to (img2)? How so? Thanks in Advance Code: {{filter.form|bootstrap}} Buscar % .00 Aplicar

Filter a field in a form CreatView

2020-10-28 Thread Walter Randazzo
Hi guys, How r u doing? I have a field called articulos that is foreign key, in a form is defined as follow: *forms.py* from django import forms #from django.contrib.auth.models import User from .models import Stockmov class StockmovForm(forms.ModelForm): class Meta: model =

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
ion defined properly? > if(e="OK") vs. if(e=="OK") > > On Sun, Oct 25, 2020 at 2:06 PM Walter Randazzo > wrote: > > > > Hi buddies, I have a POST request from ajax. At the backend some records > are updated in the django view, this is done fine

Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
Hi buddies, I have a POST request from ajax. At the backend some records are updated in the django view, this is done fine but an error comes up and the page isnt reloaded. ***This is the error:*** > SyntaxError: Unexpected token O in JSON at position 0 ***This is the ajax:*** $.ajax({

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
hi there, As far as I check its OK. Thanks for replay. El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (< rbarh...@xcaretresearch.com>) escribió: > Not sure, but looks like an extra closing bracket in line 9 of the ajax > code > > On Sunday, October 25, 2020 at 2:05:28 PM UTC-7

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
Try removing one of these from the end of the ajax section: > > }); > > > > > > *From:* django...@googlegroups.com *On > Behalf Of *Walter Randazzo > *Sent:* Monday, 26 October 2020 9:09 AM > *To:* django...@googlegroups.com > *Subject:* Re: Error at the

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
r success function, you are assigning the variable e = 'OK', so in > your if statement, it appears to throw an error. If you change it to > if(e=="OK"), does it work? Note the two equal signs, == . > > On Sun, Oct 25, 2020 at 3:29 PM Walter Randazzo > wrote: > >> I

Re: Login Default admin page

2020-10-26 Thread Walter Randazzo
Could please share more about the background? Code, setup, etc? Errors 4xx refers to the client side... El lun., 26 oct. 2020 a las 8:52, waqar khan () escribió: > i have many small project all my project same issues , > before properly work , > How can solve this is my problems > > On Sun,

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread Walter Randazzo
Hi Derek, Thanks for sharing. im gonna try with crispy forms. El lunes, 26 de octubre de 2020 a la(s) 10:52:24 UTC-3, Derek escribió: > What you want to achieve (labels to the side) is the same example shown in > the Django-crispy-forms README: > >

Re: DJANGO forms: Improve the presentation of the elements

2020-10-26 Thread Walter Randazzo
Hi Sarva, Hope u can aply gsoc!!! El lunes, 26 de octubre de 2020 a la(s) 12:18:18 UTC-3, sarva nithin escribió: > hey,guys I'm new for all these present I have been learning python through > python bootcamp course in udemy so, I want to crack GSOC so, I started to > learn stuff like

Updating a field of mutiple records with CBV

2020-10-24 Thread Walter Randazzo
Hi guys! Im working with class based views. This is how the ListView looks like ( pic1 ) And...This is how my models is defined (pic2) So... Is there any way to update the price (precio field) of the selected

Align Two buttons in a TD

2020-10-24 Thread Walter Randazzo
Hi Folks, Im trying to get aligned 2 buttons in a TD but they stay overlaped. Im attaching the html and the results. Hope u guys can help me, Many Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Cant output the value of the foreign key via jsonresponse serealize

2020-12-06 Thread Walter Randazzo
*Hi Mates,* I want to get json serialized the name of the products insted of the id ones. I tried to add natural_keys method on the parent model with no luck. I can receive the json data good but in this way: [{"model": "ocompra.compradetail", "pk": 1, "fields": {"producto": 238, "precio":

I cannot output the value of the foreign key via jsonresponse serealize

2020-12-06 Thread Walter Randazzo
Hi mates, I want to get json serialized the name of the products instead of the id ones. I tried to add natural_keys method on the parent model with no luck. I can receive the json data good but in this way: [{"model": "ocompra.compradetail", "pk": 1, "fields": {"producto": 238, "precio":

Re: Django don't save a form using Floppyforms on a foreign key field

2020-12-05 Thread Walter Randazzo
'}),'Cantidad': forms.NumberInput(attrs={'class':'form-control', 'placeholder':'Cantidad'}), } labels = { 'medicamento':'Medicamento', 'motivo':'Motivo del Movimiento', 'Cantidad':'Cantidad del Movimiento', } cya! El mié, 2 dic 2020 a las 18:55, Walter Randazzo () escribió: > Hi guys, > &g

Re: I cannot output the value of the foreign key via jsonresponse serealize

2020-12-08 Thread Walter Randazzo
Hi Derek, I gonna take a look on it. Many thanks for your reply. Regards, El mar, 8 dic 2020 a las 2:57, Derek () escribió: > You may want to try some of the approaches given in this StackOverflow: > >

Re: django app deployement

2020-12-11 Thread Walter Randazzo
Good morning whats the issue? greetings El vie, 11 dic 2020 a las 8:33, Kasper Laudrup () escribió: > Hi Eugene, > > On 12/10/20 4:14 PM, Eugene TUYIZERE wrote: > > I have an issue to disploy django app using IIS on Windows server 2019. > > I am using python 3.8.3 and django 3.0.8. Please

Re: Template rendering problem

2020-10-28 Thread Walter Randazzo
Hi Realdox, Please share the code also. The explanation of the problem isnt enough to help u. thanks, El mié., 28 oct. 2020 a las 20:15, Realdox Opeyemi (< realdox2yk47...@gmail.com>) escribió: > My template work fine with dummy data, but my data disappear when I try > render data from my

Re: Filter a field in a form CreatView

2020-10-29 Thread Walter Randazzo
text_html = super(ListTextWidget, self).render(name, value, > attrs=attrs) > data_list = f'' > for item in self._list: > data_list += f'' > data_list += '' > return (text_html + data_list) > > > HTH, David > > On 29 Oct 2020

Re: hi

2020-11-01 Thread Walter Randazzo
HI there! El dom., 1 nov. 2020 a las 16:13, tyshan...@gmail.com (< tyshanchn...@gmail.com>) escribió: > > hi > > -- > 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 >

Re: Django Queryset

2020-11-04 Thread Walter Randazzo
Hi there. Did you try datatable Regards, El mié., 4 nov. 2020 8:30 a. m., lada...@gmail.com escribió: > Hello, Django Users please I need your help and it is urgent, > > I have this code: > *permit_cy = Permit.objects.values(* > > *'info__date_of_transaction__year', >

Re: Exception

2020-11-05 Thread Walter Randazzo
Great! Whats is the error message? El jue., 5 nov. 2020 12:46 p. m., Igbinyemi Adeboye Amos < adeboyeam...@gmail.com> escribió: > > Please am having error > I just change my database from the default to Mysql > And its now working perfectly but once the page is loaded it throws error > on the

Re: paho-mqtt with django

2020-12-29 Thread Walter Randazzo
Hi Sabuhi, Did you find a way to display the data in real live time way? regards, El domingo, 23 de junio de 2019 a la(s) 11:24:12 UTC-3, sabuhi@gmail.com escribió: > hello there! > > I wonder if someone has implemented paho with django and used websockets > to display realtime data

Django MQTT Broker

2020-12-30 Thread Walter Randazzo
Hi guys, How r u all? Hope doing ok. Im working a iot project and I want to develp a panell of control with django. ¿Whats is the best or possible way to connect django to mqtt broker? Thanks in advance, Regards, -- You received this message because you are subscribed to the Google

Re: How can i start to learn django?

2021-06-14 Thread Walter Randazzo
Hi Luciano, In my opinion the best way to learn is to read a basic tutorial and then start working in a real project ( From basic to advanced) Hope you enjoy learn it! El lun, 14 jun 2021 a las 6:53, Luciano Martins () escribió: > Docs Django is a start! > > Em domingo, 13 de junho de 2021 às

Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
The code in textlines: models & view https://del.dog/ohuxemockal Thanks again, El lun, 10 may 2021 a las 7:02, Luciano Martins () escribió: > coloque seu code no github... > > Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com > escreveu: > >> Hi dudes, >> >> I have to

Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
Many thanks dude! El lun., 10 may. 2021 3:58 p. m., Abdelrhman Elbershawi < abdelrhmanelbersh...@gmail.com> escribió: > I will try to figure it out and get back to you. > > On Mon, 10 May 2021 at 12:02, Luciano Martins wrote: > >> coloque seu code no github... >> >> Em domingo, 9 de maio de

Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
I will. thxs El lun., 10 may. 2021 7:02 a. m., Luciano Martins escribió: > coloque seu code no github... > > Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com > escreveu: > >> Hi dudes, >> >> I have to render a template with a "matrix" data, I was trying to >> perform it with

Dictionary not rendering in a html table in a Template

2021-05-13 Thread Walter Randazzo
Hi there, I am having some issues during a dictionary renderding on a template. Some values are showed outside the html table. I cant realize why, d u give a hand? Thanks in advance dudes, #This is how the dictionary is printed on the console [{'socio': 'Randazzo Walter Ariel 25', 'enero':

Re: Dictionary not rendering in a html table in a Template

2021-05-13 Thread Walter Randazzo
Here is how the dictionary is render out in the template: https://tmpsee.com/v/nbkdqhnxee thanks -- 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

Re: Dictionary not rendering in a html table in a Template

2021-05-13 Thread Walter Randazzo
see it. Why you don't cut and paste here in forum > page ? > Gabriel Araya Garcia > GMI - Desarrollo de Sistemas Informáticos > > > > > El jue, 13 may 2021 a las 20:22, Walter Randazzo () > escribió: > >> Here is how the dictionary is render out in the template:

Re: Dictionary not rendering in a html table in a Template

2021-05-14 Thread Walter Randazzo
-table-when-values-are-generators. > .. > Greetings, Boris > > > 2021-05-14 12:44 GMT-04:00, Walter Randazzo : > > Hi Boris, Thanks for the reply. > > > > Here is the code: > > > > View: > > http://del.dog/mavihosuna > > > > Template:

Re: Dictionary not rendering in a html table in a Template

2021-05-14 Thread Walter Randazzo
ull to u >> >> https://stackoverflow.com/questions/51209582/django-dictionary-to-html-table-when-values-are-generators. >> .. >> Greetings, Boris >> >> >> 2021-05-14 12:44 GMT-04:00, Walter Randazzo : >> > Hi Boris, Thanks for the reply. >>

Re: Dictionary not rendering in a html table in a Template

2021-05-15 Thread Walter Randazzo
ike I missed something in this exchange. The template setup looked > as though it was designed to loop though a list of dictionaries. As a > result, based on the code provided, it should have produced two rows of > data? Was that not the case? > > Benny > > On May 15, 2021, at

Re: Dictionary not rendering in a html table in a Template

2021-05-15 Thread Walter Randazzo
Yes Boris. It works fine now. Thanks, El sáb, 15 may 2021 a las 19:18, Boris Pérez () escribió: > Hi Walter, your template is rendering the data ok, after the changes??? > > > 2021-05-14 20:56 GMT-04:00, Walter Randazzo : > > Hi All, > > > > This is how I get this

Best way to struct data to Plot a chart in Django

2021-05-17 Thread Walter Randazzo
Hi guys, *In order to plot a chart with Highcharts I have to structure a queryset in a list of dictionaries that have to look like the following:* [{ name: 'Europe', data: [{ name: 'Germany', value: 767.1 }, { name: "Cyprus", value: 7.2 }] },

Re: Dictionary not rendering in a html table in a Template

2021-05-14 Thread Walter Randazzo
t u are using... > Si quieres igual hablamos en español... > Saludos... > > 2021-05-13 22:03 GMT-04:00, Walter Randazzo : > > Hi Gabriel, > > > > I´ve just share the code via snippet to respect the identation of the > code > > > > > > El jue, 13 may 2021

Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-04-30 Thread Walter Randazzo
Hi Dudes, Im working with pisa from xhtml2pdf LIB in order to get a pdf. That works OK, but i cant figure out how to attach the generated pdf to an email in order to send it . Anyone dealt with this? I would appreciate any help on this! *View*: def get(self,request,*args,**kwargs):

_set.all in a template with no results

2021-04-23 Thread Walter Randazzo
Hi there, I am trying to list in a template a bunch of fields of the model (PagosDetail) that is related to another one (PagosHead) via numero_pago field. I am able to list the PagosHead items in the template but when I use the " _set.all" in order to get those fields from PagosDetail i've

Re: _set.all in a template with no results

2021-04-23 Thread Walter Randazzo
Dudes, I received online help. In the template there was a mistype error: {% for pagosdet in pagos.pagosdetail_set.all %} => * {% for pagosdet in pago.pagosdetail_set.all %} ( Without 's')* Thanks for reading, El vie, 23 abr 2021 a las 17:37, Walter Randazzo () escribió: > Hi the

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-18 Thread Walter Randazzo
Try installing miniconda o anaconda first. El jue., 18 mar. 2021 3:10 p. m., Simon Lankwagh < simmonshasbounced...@gmail.com> escribió: > I have installed python 3.9 and selected 'add to path' during > installation, i am now trying to install django 3.1.7 but it generates a > lot of errors i can

Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Walter Randazzo
Hi Tristan, i have used this one just once. https://www.highcharts.com/demo Check it, it easy to setup. Regards, El lun, 12 abr 2021 a las 10:05, tristant () escribió: > I am looking to build site with a variety of charts and graphs. A quick > search shows quite a lot of packages out

Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Walter Randazzo
Plus, in order to be an interactive real "live" chart you can use ajax. El lun., 12 abr. 2021 10:32 a. m., Walter Randazzo escribió: > Hi Tristan, > > i have used this one just once. > > > https://www.highcharts.com/demo > > Check it, it easy to setup. > &

Re: How to retrieve the values of environment variables in cpanel?

2022-02-18 Thread Walter Randazzo
Hi Imad, I've just follow up the steps u suggested with no luck. I think i miss up something. How you set the SECRET_KEY variable in settings.py file? Thanks in advances, El mar, 8 feb 2022 a las 11:16, Walter Randazzo () escribió: > Hi Imad, > > Thanks very much for your help

Re: How to retrieve the values of environment variables in cpanel?

2022-02-18 Thread Walter Randazzo
, Walter Randazzo () escribió: > Hi Imad, > > I've just follow up the steps u suggested with no luck. I think i miss up > something. > > How you set the SECRET_KEY variable in settings.py file? > > > Thanks in advances, > > > > El mar, 8 feb 2022 a las 11:16,

How to retrieve the values of environment variables in cpanel?

2022-02-07 Thread Walter Randazzo
Hi there, good night. Does anybody know how to set up environment variables in a cpanel shared hosting? I've found the way to declare the variable name and the value through the "Setup Python App" section, but I didn't find the way to retrieve the value in the settings file. Please note that

Re: How to retrieve the values of environment variables in cpanel?

2022-02-08 Thread Walter Randazzo
Hi Imad, Thanks very much for your help. Ill try that in the next few days also Ill let u know how it goes. Thanks bro! El mar, 8 feb 2022 a las 11:10, imad latch () escribió: > I think you will have limited abilities without terminal but you can try > it anyway . > check this >

Re: Database Saving

2022-09-22 Thread Walter Randazzo
R u using createview class? Regards, El jue, 22 sept 2022 a las 20:28, Saudi Mostafa () escribió: > I have a project with simple form ,when submit directed to the list > without saving > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Re: User Statistics

2022-09-23 Thread Walter Randazzo
Usung Django admin panel. El jue, 22 sept 2022 20:28, Saudi Mostafa escribió: > Pls I need help > How can I get as an administrator statistics for users and activities > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe