Re: Help : Embedding pdf in Django detailview

2022-03-17 Thread RANGA BHARATH JINKA
Hi, Please try this. https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay wrote: > Hello guys, I'm developing a job board, and I want to display uploaded > files in job detailview without downloading the file. > When

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

2022-03-17 Thread Antonis Christofides
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. Your requirement to know whether you are using "landscape or portrait" is unusual. Normally we are only interested in knowing the widt

What methods are available to determining display type & screen dimensions for dynamic formatting of Django templates.

2022-03-17 Thread Django2021
Increasingly we are finding the need to have reactive Django templates, in order to present cross platform Django forms and pages to not only desktop users buy also tablet, and mobile phone users. We realize Bootstrap offers breakpoints as a means to control columns, still we are looking for mo

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

2022-03-17 Thread Prashanth Patelc
Check your settings.py once Add auth_user='app.UserModel' Or 1) delete database and migrations 2) create new db 3) python manage.py makemigration 4) python manage.py migrate On Thu, Mar 17, 2022, 9:35 AM Avinash Alanjakar wrote: > > Their are lots of pre-bulit apps in django so you need to mig

Re: What methods are available to determining display type & screen dimensions for dynamic formatting of Django templates.

2022-03-17 Thread Jason
It does seem like you're looking for something related to analytics, ie Google Analytics or one of the alternatives. On Thursday, March 17, 2022 at 5:52:14 AM UTC-4 Django2021 wrote: > Increasingly we are finding the need to have reactive Django templates, in > order to present cross platform Dj

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

2022-03-17 Thread DJANGO DEVELOPER
what version of Django are you using? and how did you make migrations? Should be like this: 1 - python manage.py makemigrations 2 - python manage.py migrate are you using custom user model? or django's built in User model? On Thu, Mar 17, 2022 at 3:42 PM Prashanth Patelc wrote: > Check your sett

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

2022-03-17 Thread Salima Begum
Hi, I am using django version 3.2.9 and Yes above you mentioned like that only i am running migrations. 1. python manage.py makemigrations 2. python manage.py migrate No, I am not using django build in user model. I am using my custom one. a On Thu, Mar 17, 2022 at 7:37 PM DJANGO DEVELOPER wrot

mysql 8 file creation issue

2022-03-17 Thread Aadil Rashid
When I run this query on mysql 5.7: SELECT CURDATE() INTO OUTFILE '/var/lib/mysql-files/test.csv'; It creates test.csv with the following permissions: -rw-rw-rw- 1 mysql mysql 11 Mar 18 04:27 test.csv But when I create the same file in mysql 8.0 it creates file with the following permissions