Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Sithembewena L. Dube
Your model fields are not cased correctly. https://stackoverflow.com/questions/8908760/should-i-use-camel-case-or-underscores-in-python Kind regards, Sithu *Sent with Shift

Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Gourav Chawla
First of all, use appropriate model fields for linking objects. For example users should be a foreign key to your(or Django's) user table. Then whenever you want to show data on any interface to any user, just filter content/rows by user department. Something like:

Re: Advanced permissions and role creation

2019-04-20 Thread Mike Dewhirst
On 21/04/2019 12:11 pm, Joel Mathew wrote: I have an application for a hospital. There, I should be able to assign different roles like Doctor, Nurse, Attender, Auxillary Nurse, Pharmacist, Store Manager etc, each of would be having specific access to seperate areas (views), with some having

Re: Advanced permissions and role creation

2019-04-20 Thread Sithembewena L. Dube
For roles and permissions management, I would stick with Django's Auth application (django.contrib.auth). It sounds like you ought to read up on how to design and build a multi-tenancy SaaS project in Django. I cannot recommend any one resource, so you'll have to do some searching and see what

Advanced permissions and role creation

2019-04-20 Thread Joel Mathew
I have an application for a hospital. There, I should be able to assign different roles like Doctor, Nurse, Attender, Auxillary Nurse, Pharmacist, Store Manager etc, each of would be having specific access to seperate areas (views), with some having restricted access. In addition, there are other

Re: Why my email goes to spam?

2019-04-20 Thread 'Rumah Ilmu Indonesia' via Django users
On Thu, Apr 18, 2019 at 3:06 PM Mohammad Etemaddar < mohammad.etemad...@gmail.com> wrote: > Hello. I'm working on a bussiness website. I send invitation and also > confirm emails by django-allauth. > Invitation and allauth emails go to spam box. > I don't know what is the problem? > How can I

Re: Django - always getting False in form.is_valid()

2019-04-20 Thread John Bagiliko
Drop the html codes here please. Let one try it actually. It's difficult to debug like this. On Sat, Apr 20, 2019, 5:35 PM Sipum Mishra wrote: > Hi Vineeth, > > when I am trying to add 'add testing' through html form for todo list app > getting this above form.is_valid() always False. > > On

Storing HTML in DB using DJANGO

2019-04-20 Thread Sipum Mishra
Hi friends, I want to store a html in database using python and need to retrieve that html and convert that in to PDF. can u plz suggest me how to store that HTML in DB ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django - always getting False in form.is_valid()

2019-04-20 Thread Sipum Mishra
Hi Vineeth, when I am trying to add 'add testing' through html form for todo list app getting this above form.is_valid() always False. On Sat, 20 Apr 2019 at 23:02, Sipum Mishra wrote: > Hi Vineeth, > > please find below is the output -> > >

Re: Django - always getting False in form.is_valid()

2019-04-20 Thread Sipum Mishra
Hi Vineeth, please find below is the output -> On Fri, 19 Apr 2019 at 19:04, vineeth sagar wrote: > can you please post, request.POST output? > > On Fri, 19 Apr 2019, 16:34 Sipum Mishra, wrote: > >> Hi All, >> >> I am always getting - form.is_valid returning False. kindly check where I >>

Re: ReportLab or Xhtml2pdf Please can any one guide me to convert the rendered in html to pdf

2019-04-20 Thread Iuli Hardt
Em sexta-feira, 19 de abril de 2019 15:10:31 UTC-3, Irfan Khan escreveu: > > hi, > i stucked in converting the pdf file from html > can an one suggest me even any other possibility instead of using python > library > > Try to use weasyprint, put css in the pdf html using ... "style page to

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Jani Tiainen
Hi, I also suggest that take a look at Django Girls tutorial. It does pretty good job at describing web basics and django same time. https://tutorial.djangogirls.org/en/ On Sat, Apr 20, 2019 at 10:17 AM Mayur Bagul wrote: > Hello Community, > > i'm facing one problem. Scenario is such that

Re: Why my email goes to spam?

2019-04-20 Thread Kasper Laudrup
Hi Gil and Mohammad, On 20/04/2019 08.55, Gil Obradors wrote: May be DKIM isn't correctly configured? Authentication-Results:mx.google.com ; dkim=fail header.i=@myaa.ir header.s=2019 header.b=Q8G8809R; That would be my best bet as well. I

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
Before continuing with this, read some about http methods like : https://www.tutorialspoint.com/http/http_methods.htm Yes, it's suported. one example function playing with post requests: def form(request): form = facturaForm if request.method == 'POST':

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Mayur Bagul
hello gil, thanks for tutorial link i will check it out that one. As you gave solution of calling a function via view i did so but it didnt worked and another thing i dint understand is about post i thought it didnt support in django. can you please provide me little code your talking about

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
Hi! If you want you can re-use django.contrib.auth package Here one tutorial: https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/ Otherwise, you can do a POST to a URL, and this url (url.py) call a function ( views.py) Good luck! Missatge de Mayur Bagul del dia ds.,

Re: I'm going to ask you an editor in django.

2019-04-20 Thread Derek
You are better off integrating with a third-party app e.g. https://wopi.readthedocs.io/en/latest/overview.html On Thursday, 18 April 2019 17:17:19 UTC+2, bang wrote: > > I would like to add editor function in django > and call up stored document( word, pdf, excel), edit and save. Is >

How to provide function calling event for button in django html templates ?

2019-04-20 Thread Mayur Bagul
Hello Community, i'm facing one problem. Scenario is such that i have one template login.html in Django Project, inside this file i have wrote html code for login purpose. what i want that once user click on Log-In Button it should call function ( onclick using Javascript cant use in Django)

Re: compute model field by related field

2019-04-20 Thread Derek
That should just require a basic if/then logic test; "get" the correct Club object, update the win/loss field and save the Club. Repeat for both Clubs. On Thursday, 18 April 2019 14:09:41 UTC+2, omar ahmed wrote: > > thank you for response , derek > but how can i increment 'win' 'lost' or 'draw'

Re: Why my email goes to spam?

2019-04-20 Thread Gil Obradors
May be DKIM isn't correctly configured? Authentication-Results: mx.google.com; dkim=fail header.i=@myaa.ir header.s=2019 header.b=Q8G8809R; Missatge de Mohammad Etemaddar del dia ds., 20 d’abr. 2019 a les 8:47: > Here it is: > > > > Delivered-To:

Re: Why my email goes to spam?

2019-04-20 Thread Mohammad Etemaddar
Here it is: Delivered-To: arash.etemad...@gmail.com Received: by 2002:ab3:7117:0:0:0:0:0 with SMTP id n23csp431925lte; Thu, 18 Apr 2019 01:23:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQO4QTZZjxmg7C1RyW1QDcfvbrcM3P4GBxxK0XOLen8RntVeF2on0PDZMImrmFOwPZDCnp

Re: Database setup

2019-04-20 Thread Okware Aldo
So if you launch xampp and you are sure all the services are running. services (Apache, MySQL, and PHP), xampp also ships with phpmyadmin a mysql webbased interface. which you can launch by typing `localhost/phpmyadmin` in any browser of choice. Once the PHPMyAdmin interface is launched. using