How to use JS in Django?

2022-08-16 Thread Matheus Bon
Hello friends I'm new to Django and I'm having trouble using JS. I want to create a sidebar for my project, however, for some reason, I can't get it to 'move'. I tried the traditional way, putting the in the index.html document, but it didn't work. I tried another way, using the static files

Re: How to use JS in Django?

2022-08-16 Thread Matheus Bon
cript > > JavaScript can change the content of an HTML element: > > Click Me! > > This is a demonstration. > > > function myFunction() { > document.getElementById("demo").innerHTML = "Hello JavaScript!"; > } > > > > > > >

Two list on one page

2022-08-24 Thread Matheus Bon
Hello There I want to create two lists on one page, in the style of the image (I'm Brazilian, so the list is in Portuguese). However, if I do it the way I'm showing it in the code image, I'll necessarily have to make two pages for each list, right? -- You received this message because you ar

Re: Two list on one page

2022-08-24 Thread Matheus Bon
What would be a way to get two lists on the same page? Em quarta-feira, 24 de agosto de 2022 às 16:33:23 UTC-3, Matheus Bon escreveu: > Hello There > > I want to create two lists on one page, in the style of the image (I'm > Brazilian, so the list is in Portuguese). > >

Why are the items not appearing in the table?

2022-09-06 Thread Matheus Bon
the POS link that is on github, because I believe it is easier. https://github.com/Matheus-Bon/frente-de-caixa OBS: I'm Brazilian, so the codes will be in my language, but I think that's not a problem. The app I created to make the table is called app: 'cadastro'; and I

Re: Why are the items not appearing in the table?

2022-09-08 Thread Matheus Bon
Hello, Francisco! We've managed to solve this problem! Thank you so much for your time. Em qui., 8 de set. de 2022 às 17:50, Francisco Valadares < valadares@gmail.com> escreveu: > > Hello Matheus Bon , > > > > Could you give me more detail about " I&

Re: Why are the items not appearing in the table?

2022-09-09 Thread Matheus Bon
, Boris Pérez escreveu: > Oi Matheus!!! É possible que vc esquecera enviar na lista de items a o > template dd a view? > > El jue, 8 sept 2022 a las 17:02, Matheus Bon () > escribió: > >> Hello, Francisco! >> We've managed to solve this problem! Thank you so much fo

'WSGIRequest' object has no attribute 'is_ajax'

2022-09-15 Thread Matheus Bon
Hello guys! I'm using AJAX in my Django project, as soon as I finished writing the code and went to test it, this error always pops up. The site runs normally, it's only when I send it that this happens. What should I do? -- You received this message because you are subscribed to the Google G

Re: 'WSGIRequest' object has no attribute 'is_ajax'

2022-09-16 Thread Matheus Bon
> longer supported. > > You can check the docs to confirm: > https://docs.djangoproject.com/en/4.1/ref/request-response/ > > On Thu, 15 Sept 2022 at 16:55, Matheus Bon wrote: > >> Hello guys! >> >> I'm using AJAX in my Django project, as soon as I finished w

JSON files. How is it done?

2022-09-22 Thread Matheus Bon
Hi! I'm lost in a question of my project, I see so many methods on the internet but none work for me (maybe I'm implementing it wrongly) But, I would like to know if you could give me a method to transform my model into a JSON file and then be able to retrieve these JSON files for me to put in

Re: JSON files. How is it done?

2022-09-23 Thread Matheus Bon
something heavier, you can refactor the > code with a simple couple of lines. > > https://django-select2.readthedocs.io/en/latest/ > > Regards, > > Julio Cojom > > El jue, 22 sept 2022 a las 4:23, Matheus Bon () > escribió: > >> Hi! >> >> I'm

Elements don't render in my table

2022-09-28 Thread Matheus Bon
Hello friends! I've been trying to find my error for a while as to why my database items are not being printed in the table I created, I've looked at all my files and nothing! Where is my mistake? Thanks. Here is the code: Views.py https://github.com/Matheus-Bon/frente-de-caixa