Re: Got an error creating the test database: database "" already exists

2022-03-16 Thread Avinash Alanjakar
Their are lots of pre-bulit apps in django so you need to migrate them first. In your case you are using the authentication with migrating their tables with database. Try to run command in this sequence. This might be solve your problem. python manage.py migrate python manage.py makemigrations

Re: Got an error creating the test database: database "" already exists

2022-03-16 Thread Salima Begum
Yes I run migrations still I am seeing the new issue below ``` django.db.utils.ProgrammingError: relation "auth_user" does not exist ``` Thank you ~Salima On Wed, Mar 16, 2022 at 9:23 PM DJANGO DEVELOPER wrote: > you need to run migrations first and then run the tests. if the issue > still

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
If only https://www.w3.org/TR/css3-mediaqueries/ had some practical examples in Python or Django, it could be useful. On Wednesday, March 16, 2022 at 9:34:19 PM UTC+1 Kasper Laudrup wrote: > On 16/03/2022 21.28, Django2021 wrote: > > > > With Django how is it possible to detect > > * if

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
> There are many ways to approach this problem, so it would be best to explain what you are trying to achieve. Inside of a Django function or template we need to know if to display a landscape or portrait of a form - based on knowing if the viewer is using a mobile or not. On Wednesday, March

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Kasper Laudrup
On 16/03/2022 21.28, Django2021 wrote: With Django how is it possible to detect * if template is being viewed on mobile device? and/or * if template is being viewed in portrait or landscape mode? Any suggestions appreciated. https://www.w3.org/TR/css3-mediaqueries/ Kind regards, Kasper

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Antonis Christofides
Hello, there are many ways to approach this problem, so it would be best to explain what you are trying to achieve. Regards, Antonis Antonis Christofides +30-6979924665 (mobile) On 16/03/2022 22.28, Django2021 wrote: With Django how is it possible to detect * if template is being viewed

How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
With Django how is it possible to detect * if template is being viewed on mobile device? and/or * if template is being viewed in portrait or landscape mode? Any suggestions appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: export to csv

2022-03-16 Thread Kasper Laudrup
On 16/03/2022 17.20, divya murugulla wrote: Can anyone help table data to be exported to excel code examples https://labpys.com/export-data-from-database-into-excel-using-django/ Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups

export to csv

2022-03-16 Thread divya murugulla
Hi All, Can anyone help table data to be exported to excel code examples -- 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: Got an error creating the test database: database "" already exists

2022-03-16 Thread DJANGO DEVELOPER
you need to run migrations first and then run the tests. if the issue still persists. let me know On Wed, Mar 16, 2022 at 2:15 PM Sebastian Jung wrote: > Hey salima, > > This error is strange. Django try to use a Relation in postgresql which > doesn't exist. > > I have only tip that you cam

Re: Got an error creating the test database: database "" already exists

2022-03-16 Thread Sebastian Jung
Hey salima, This error is strange. Django try to use a Relation in postgresql which doesn't exist. I have only tip that you cam reset database. I would delete database in postgresql and create it new with psql tool. After this you must reset all migrations: