Re: Database setup

2019-04-19 Thread Soumen Khatua
Yes I already install xampp server but what will be my password? Actually for development purpose xampp server not accept any password, I guess!! Thank you for your valuable time. On Sat, 20 Apr 2019, 10:48 Okware Aldo, wrote: > Hey, If you have xampp installed, just create a database using

Re: Database setup

2019-04-19 Thread Okware Aldo
Hey, If you have xampp installed, just create a database using phpmyadmin, attach a user to that database. then ensure you have a driver package installed and setup for django. eg. pymsql has worked well for. then make the necessary changes in django settings file. On Fri, Apr 19, 2019 at 9:21

Database setup

2019-04-19 Thread Soumen Khatua
Hi Folks, How can I configure xampp server provided mysql database in django. 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 from it, send an email to

Re: ManyToManyField how to get the fields in a ListView?

2019-04-19 Thread bob
I feel something like this is what I need select obj,name,png from items_monolithic, items_facepng where object==obj; But I do not know how to do that in Django. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

ManyToManyField how to get the fields in a ListView?

2019-04-19 Thread bob
I do not understand how to get my queryset from the ManyToManyField in my ListView *Models* class Monolithic(models.Model): obj = models.CharField( max_length=128, blank=False, null=False, unique= True) face2 = models.ManyToManyField(FacePng) class FacePng(models.Model): obj =

Re: Slug not working

2019-04-19 Thread Gabo LaTo
Hi Aakash, it' a bit difficult to read it in the email, could you paste it in a pastebin/github or any code snippet share app? As far as I can see here, you are not adding the slug to the url in your website, so django cannot map your url to your code. It's better if you share a github repository

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

2019-04-19 Thread Jani Tiainen
Hi. I've had pretty good success with wkthtmltopdf. pe 19. huhtik. 2019 klo 21.11 Irfan Khan kirjoitti: > hi, > i stucked in converting the pdf file from html > can an one suggest me even any other possibility instead of using python > library > > -- > You received this message because you

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

2019-04-19 Thread Sam W
Use java then use py4j or Jython to call java method... https://www.baeldung.com/pdf-conversions-java On Fri, Apr 19, 2019, 1:11 PM Irfan Khan wrote: > hi, > i stucked in converting the pdf file from html > can an one suggest me even any other possibility instead of using python >

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

2019-04-19 Thread acheraime
ReportLab is better then Xhtml2pdf but the former has a considerable learning curve the latter is easy to use but css get messy. Specifically css3. Did you try weasyprint? — Adolphe Sent from my iPhone > On Apr 19, 2019, at 2:10 PM, Irfan Khan wrote: > > hi, > i stucked in converting the pdf

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

2019-04-19 Thread Irfan Khan
hi, i stucked in converting the pdf file from html can an one suggest me even any other possibility instead of using python library -- 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

Django How to write Customized Query ( Display Information Departmentwise)

2019-04-19 Thread Balaji Shetty
HI My models.py class T1(models.Model): CaseNumber = models.TextField(blank=True,null=True) UserCurrent = models.TextField(blank=True,null=True,default='user1') UserCurrentDepartment = models.TextField(blank=True,null=True) def __str__(self): return '%s %s' %

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

2019-04-19 Thread vineeth sagar
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 > am doing wrong. > please find below code. > > > views.py > --- > def home(request): > > if request.method

Django - always getting False in form.is_valid()

2019-04-19 Thread Sipum Mishra
Hi All, I am always getting - form.is_valid returning False. kindly check where I am doing wrong. please find below code. views.py --- def home(request): if request.method == 'POST': form = ListForm(request.POST or None) print(form.is_valid(), "-->",request.POST['Item'])