Using Admin to manage users that is not in django

2022-03-20 Thread Thiago Luiz Parolin
Hi. I am trying to make a web app to manage samba AD DC. Using python bindings from samba, i can access users/groups/features of our directory. What i want is: - How can i use the django admin to manage AD? Because all the user base is inside samba, not in django. - Or i need to build my own 'adm

Re: Using Admin to manage users that is not in django

2022-03-21 Thread Thiago Luiz Parolin
existing Django admin that is > already linked to your existing models, > you can edit the Django admin index page template and put the link to your > Samba AD DC management page. > Your Samba AD DC management page will be an ordinary Django app. > > On Mon, Mar 21, 2022 at 9:52

'ascii' codec can't encode character

2022-04-28 Thread Thiago Luiz Parolin
Hi, i have a model with 2 charfields for givenname, surname: nome = models.CharField( max_length=150, verbose_name=_("Nome"), default='' ) sobrenome = models.CharField( max_length=150, verbose_name=_("Sobrenome"), default='' ) My mode

Django Admin external script before save/delete

2022-05-10 Thread Thiago Luiz Parolin
Hello everyone, I'm trying to run a script before saving and deleting objects in db using django admin. If the script fails, the action (save or delete) needs to be aborted and we need to inform the user with a message. In the django docs: "...When overriding ModelAdmin.save_model() andModelAdmin

Re: Adding Microsoft Word Editor to Django

2023-02-01 Thread Thiago Luiz Parolin
There are some alternatives that I can think of. Libreoffice online: https://www.libreoffice.org/download/libreoffice-online/ Etherpad is a web editor that has a plugin for import docx documents https://etherpad.org/ https://www.npmjs.com/package/ep_mammoth - (plugin) If you can use php: https

Re: Django samples

2017-10-25 Thread Thiago Luiz Parolin
https://docs.djangoproject.com/en/1.11/intro/tutorial01/ This link will help you. Enjoy! 2017-10-25 13:43 GMT-02:00 Ruifeng Hu : > > Hello everyone, > > Is there anyone who can share with me a small example, I just start > learning Django. > > Than you. > > Ruifeng Hu > > -- > You received th

Re: Enable https for a production django application

2017-12-04 Thread Thiago Luiz Parolin
You can use Let's Encrypt - Free SSL/TLS Certificates ( https://letsencrypt.org) 2017-12-04 8:07 GMT-02:00 SHAILESH NEGI : > Hey Bijal, > > You need to purchase the SSL. > Follow the link. > https://www.digitalocean.com/community/tutorials/how-to- > install-an-ssl-cer

Re: send email with django

2017-04-19 Thread Thiago Luiz Parolin
i am using sendgrid for send emails...the free service works very well for me...there is a paid version too.. sendgrid can be integrated into django https://sendgrid.com/docs/Integrate/Frameworks/django.html 2017-04-19 8:46 GMT-03:00 Carl : > As a counter-perspective, we have this working wit

how to include template

2017-05-03 Thread Thiago Luiz Parolin
I have a project that has a folder structure like this: Project1 / --Templates / Base.html Error.html --App1 Templates / --App1 / App1.html How can i include error.html in app1.html? I am trying using {% include

Re: how to include template

2017-05-03 Thread Thiago Luiz Parolin
> > > Also, pay attention to capitalization of filenames, as "Error.html" and > "error.html" are different files on many systems. I use all-lowercase to > avoid issues. > > Dartos > > > On Wednesday, May 3, 2017 at 10:00:37 AM UTC-4, Thiago Luiz Paro

Re: Adding code when pressing one of admin's save buttons

2017-07-25 Thread Thiago Luiz Parolin
Try using 'def save(self):' on your models. When you save a new record, this will be executed, so if you hit any button, you are saving in anyway and the code will be executed. Just my cents about your question. 2017-07-25 8:29 GMT-03:00 ron_w_add via Django users < django-users@googlegroups.com

Re: Create ModelForms to create ModelForms

2017-08-02 Thread Thiago Luiz Parolin
Hi, Try using this app: Django-fobi https://github.com/barseghyanartur/django-fobi I've never used it, but it looks very promising. 2017-08-01 21:15 GMT-03:00 Shazia Nusrat : > I need to create a frontend app where I can use forms to create forms such > as Google Surveys or Survey Monkey kind of

Re: Deploying django with Apache2 and mod-wsgi in ubuntu14.04

2017-08-03 Thread Thiago Luiz Parolin
I am using django and apache in a debian 8 and 9 server and everything is working fine. Firstly, don't use /var/www/html for python files. In my server, we have a ordinary user that host python files in his home dir. I will try enumerate some steps used in one of my projects: - with your ordina

How to prevent the use of hidden fields in a form

2017-08-17 Thread Thiago Luiz Parolin
I have a system that does: 1 - The user registers a project with name, title and responsible teacher 2 - The teacher responsible for this project must authorize it or not So I have a page that displays to the teacher, all the projects that are waiting for authorization and in each project there is

Re: Wrapping basic static HTML page in sites base template. How to?

2017-10-16 Thread Thiago Luiz Parolin
Hi, Look at the flatpages docs. https://docs.djangoproject.com/en/2.0/ref/contrib/flatpages/ 2017-10-16 9:06 GMT-02:00 Bernd Wechner : > Curious and I admit lazy question as I don't even know where to look or > how for such a general idea. But there it is, I'd like to be able to write > a stat

Re: django and webcams

2020-08-13 Thread Thiago Luiz Parolin
ted to access your link but it seems > broken. Do you think you could share that information? Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails fr

Re: How to get datetime from server

2018-09-06 Thread Thiago Luiz Parolin
Sorry, my mistake! In manage.py runserver, the server is my computer and the time displayed is my computer time. Putting the code in production server all work as expected! Em qui, 6 de set de 2018 às 10:29, Thiago Luiz Parolin < thiago.paro...@unesp.br> escreveu: > Hi, > I am build

How to get datetime from server

2018-09-06 Thread Thiago Luiz Parolin
Hi, I am building a django system that prevent user from upload a file after a date. This date is setting using: today = datetime.date.today() but if the user alters his computer date, he can upload file normally after the end date. how can i assing to 'today', the date from server and not client

How to get queryset from get method

2018-12-04 Thread Thiago Luiz Parolin
ethod of the same class? I do not know if I could explain it correctly, but thanks if anyone can help me. -- Thiago Luiz Parolin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Re: How to get queryset from get method

2018-12-05 Thread Thiago Luiz Parolin
e get method's queryset in another method of the >> same class? >> I do not know if I could explain it correctly, but thanks if anyone can help >> me. >> >> -- >> Thiago Luiz Parolin >> > > -- > You received this message because you are subs

Re: Pasting versus uploading

2020-10-08 Thread Thiago Luiz Parolin
Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b7464b8e-0ad4-c8a6-6bfc-2312

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
Hi... Normally i use field__lte and field__gte Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE escreveu: > Dear Team, > > I need help. I have a list of Items in a table. And I want to filter some > data between dates (start and end date). Please help me to do a search > between the two date. I a

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
f/models/querysets/ I hope I helped a little despite my bad English. Em qua., 3 de fev. de 2021 às 10:24, Eugene TUYIZERE < eugenetuyiz...@gmail.com> escreveu: > Dear Thiago, > > Can I have some documentations or sample codes please? > > On Wed, 3 Feb 2021 at 15:16, Thi

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
documentations or sample codes please? >> >> On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin >> wrote: >> >>> Hi... >>> Normally i use field__lte and field__gte >>> >>> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE >>> escreve

Re: Playing Video with Django and html tag

2021-04-21 Thread Thiago Luiz Parolin
c1818-3312-45b4-a652-6a2dbc5bb688n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thiago Luiz Parolin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: 3D Object Interaction

2019-08-23 Thread Thiago Luiz Parolin
rs+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0122874a-5d05-4872-9d40-396431cd9b34%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0122874a-5d05-4872-9d40-396431cd9b34%40googlegroups.c

Re: 3D Object Interaction

2019-08-23 Thread Thiago Luiz Parolin
E28E0149B221266DE1A40%40DM6PR18MB2937.namprd18.prod.outlook.com > <https://groups.google.com/d/msgid/django-users/DM6PR18MB293722DBE28E0149B221266DE1A40%40DM6PR18MB2937.namprd18.prod.outlook.com?utm_medium=email&utm_source=footer> > . > -- Thiago Luiz Parolin -- You receiv

Admin form in intermediate page

2019-11-19 Thread Thiago Luiz Parolin
I have a form in admin that when selecting a particular action, presents an intermediate page with numeric fields to be filled and saved in the selected records. How can I save each record of my queryset with its respective field on this intermediate page? I have almost everything working, just ass

Re: Admin form in intermediate page

2019-11-21 Thread Thiago Luiz Parolin
Thank you!!! It helped me a lot!! :) -- 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 django-users+unsubscr...@googlegroups.com. To view this discussion on the we

Re: Styling in Django

2019-12-03 Thread Thiago Luiz Parolin
t, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/74571e79-91d6-4fb8-b03f-1195893bfc91%40googlegroups.com > . > -- Thiago Luiz Parolin -- You received this message because you are

Restricting url access in DetailView

2019-12-05 Thread Thiago Luiz Parolin
y bad english. -- Thiago Luiz Parolin -- 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 django-users+unsubscr...@googlegroups.com. To view this discussion o