Mpdf html design break fixing in php

2018-09-27 Thread sankar ardhas
Hi everyone, In Mpdf pdf generation , html design breaks . how to fix this? I have attached pdf file and check it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Sql Server

2018-09-27 Thread Elton Oliveira
I managed to solve as follows: from django.db import models class Teste001(models.Model): name = models.CharField(max_length=100) tagline = models.TextField() def __str__(self): return self.name class Meta: db_table = 'scheme].[table' Em quinta-feira, 27 de set

how to filter foreign key in django form without passing foreign key value?

2018-09-27 Thread BBG
I have created two models in my django project AddStudent and Fee Entry as shown below. *models.py* class AddStudent(models.Model): enrollment_no = models.BigIntegerField(primary_key=True) student_name = models.CharField(max_length=500,null=True) gender = models.CharField(max_lengt

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-27 Thread BBG
I have tried this but not working def upload_csv(request): data = {} if "GET" == request.method: return render(request, "add_student/bulk.html", data) # if not GET, then proceed try: csv_file = request.FILES["csv_file"] if not csv_file.name.endswith('.csv'):

store CSV content to database in django

2018-09-27 Thread BBG
Can anyone share code for uploading CSV file content to database. -- 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 p

Re: Sql Server

2018-09-27 Thread Pardhu Saradhi
Can you please msg me what you have done On Thu 27 Sep, 2018, 5:05 AM Elton Oliveira, wrote: > Hello guys, how do I create my tables in other SQL server schemas? OBS: I > tried everything and I could not > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Change settings value during run-time in migrations

2018-09-27 Thread Ajay Tripathi
Hi Jason, You can't do it this way, unfortunately. I would suggest you use > https://github.com/jazzband/django-constance instead > Thanks, It helped me. Cordially, Ajay Tripathi (atb00ker) -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Sql server

2018-09-27 Thread Jason
django convention for db tables is lower case. what reason do you have to desire upper case? On Thursday, September 27, 2018 at 8:08:27 AM UTC-4, Elton Oliveira wrote: > > leave the capital letters > > Em quinta-feira, 27 de setembro de 2018 07:00:47 UTC-4, Andréas Kühne > escreveu: >> >> What

Re: Sql server

2018-09-27 Thread Elton Oliveira
leave the capital letters Em quinta-feira, 27 de setembro de 2018 07:00:47 UTC-4, Andréas Kühne escreveu: > > What exactly do you need to change in the auth tables? The user table is > easily changed, but the others I'm not so sure about - why would you need > this? > > Regards, > > Andréas > >

Re: hi friends i want admin page like this. it is a application form in university

2018-09-27 Thread Joel Mathew
This is a standard django admin page. You can just enable admin and add the relevant models. I suggest you follow the django standard tutorials. On Thu, 27 Sep 2018 at 16:42, Sudha Mohan wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Sql server

2018-09-27 Thread Andréas Kühne
What exactly do you need to change in the auth tables? The user table is easily changed, but the others I'm not so sure about - why would you need this? Regards, Andréas Den tors 27 sep. 2018 kl 01:35 skrev Elton Oliveira < eltonoliveir...@gmail.com>: > Hello guys, I'm having two difficulties

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-27 Thread PASCUAL Eric
Hi, Have you studied the documentation of the CSV module included in Python standard library ? You'll find there all the needed information for reading and interpreting CSV files without having to implement the raw parsing, and have there rows in a form ready to use for inserting objects in