Off topic slightly - Apache https redirect

2022-02-06 Thread Mike Dewhirst
There seems to be a multitude of ways to redirect from http to https.Letsencrypt rewrote my conf for port 80 traffic to https but when a customer used http://mysite.com it brought up the Apache "this is working" page.Any pointers to the absolutely correct way?ThanksMike--(Unsigned mail from my

Re: Media Files - local network share

2022-02-06 Thread Swelan Auguste
Good day, Thanks. I was more looking for a local solutions (within a closed network) Kindly, Swelan R. Auguste (Mr.) KingShip Technical Information Officer 758-489-3909 Webpage On Sun, Feb 6, 2022 at 9:19 PM Yeboah Dominic wrote: > You can

Re: Media Files - local network share

2022-02-06 Thread Yeboah Dominic
You can try dropbox that is what I used to serve my media files in django On Sun, 6 Feb 2022 at 20:07, Swelan Auguste wrote: > > Good day all, > > > I am trying to figure out how to attach a Django app to a local network > server/share. > > I do not want to host the media files on the same

Re: how to report an issue in the documentation

2022-02-06 Thread Enkh-Amar Ganbat
I think You can make a pull request on its documentation of GitHub. https://github.com/django/django/tree/main/docs On Monday, February 7, 2022 at 8:59:36 AM UTC+8 mail...@gmail.com wrote: > Hi fellow Djangoers, > > I spotted an error in the docs for the collectstatic command and spent >

Media Files - local network share

2022-02-06 Thread Swelan Auguste
Good day all, I am trying to figure out how to attach a Django app to a local network server/share. I do not want to host the media files on the same server so that the server doesn't run out of space and I can and I can grow my media file host share/server as it grows. Kindly, Swelan R.

how to report an issue in the documentation

2022-02-06 Thread Sirajudeen Samsudeen
Hi fellow Djangoers, I spotted an error in the docs for the collectstatic command and spent sometime figuring out how to make it work only to realize that there is a typo in the docs. I would like to report it so that it gets fixed. I am quite new to Django. So, how do I do it? Here is the

Re: Formsets

2022-02-06 Thread Steve Smith
HI Steve! Thanks for the reply. I have tried select related and prefetch relatedbut didn't know about deferwill look into...my current formset scenario is 440ish queries and it takes about 19 seconds to load. Some have suggested Celery and RabbitMQ and other alternatives which I'm

Re: Formsets

2022-02-06 Thread Steven Mapes
For me using select_related, prefetch_related and defer generally soft the issues. If that's still too slow then, if possible, you could look at using caching the queryset(s) you need the values. Have you run debug toolbar on the page to check what queries are running? On Saturday, 5 February

Re: UNIQUE constraint failed: matrixapp_bookplot.user_id

2022-02-06 Thread Sebastian Jung
Hello, Because your implementation is wrong. Please read this https://tech.serhatteker.com/post/2020-01/uuid-primary-key/ Jason schrieb am So., 6. Feb. 2022, 00:27: > A bit of a hint about your db schema, do you want a user ID to be one to > one with each book plot? also, why is your primary

Login page getting downloaded as pdf instead of the other page url.

2022-02-06 Thread Aadil Rashid
Hello Django Family, I hope you all are well and in good Health. I am trying to generating pdf from webpages, using popen subprocess , but when i call its view it generates only login page as pdf, Here is my view from projName.settings import BASE_DIR from subprocess import Popen, PIPE,