Re: Creating an app that generates static files

2019-10-18 Thread Jack Sundberg
Thank you both! This helps a ton. On Friday, October 18, 2019 at 5:02:40 AM UTC-4, vineet daniel wrote: > > and use ssd for maximum I/O as youd creating and deleting files a lot, > move session from db to something like redis and python has concurrency > libraries make use of them as well. > >

Re: Creating an app that generates static files

2019-10-18 Thread vineet daniel
and use ssd for maximum I/O as youd creating and deleting files a lot, move session from db to something like redis and python has concurrency libraries make use of them as well. On Fri, 18 Oct 2019, 14:29 vineet daniel, wrote: > Dont forget inode and files limit if you are creating too many fil

Re: Creating an app that generates static files

2019-10-18 Thread vineet daniel
Dont forget inode and files limit if you are creating too many files real quickly. On Fri, 18 Oct 2019, 13:15 James Gutu, wrote: > Jack, > That sounds about right. > > On Thu, Oct 17, 2019 at 11:22 PM Jack Sundberg > wrote: > >> Thank you, James! This seems like a good fix. From reading through

Re: Creating an app that generates static files

2019-10-18 Thread James Gutu
Jack, That sounds about right. On Thu, Oct 17, 2019 at 11:22 PM Jack Sundberg wrote: > Thank you, James! This seems like a good fix. From reading through the > documentation (here > ), this is > how I understand the workflow -- so corr

Re: Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
Thank you, James! This seems like a good fix. From reading through the documentation (here ), this is how I understand the workflow -- so correct me if I'm wrong please! > First, I can activate Django sessions by adding 'django.cont

Re: Creating an app that generates static files

2019-10-17 Thread James Gutu
Jack, >From what I understand it looks like a conflict of uniquely named files when they are generated simultaneously. Could you resolve this by creating a folder named from the session_id, with the file inside of that. So that if two users request the same file, there will never be a conflict, as

Re: Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
Yes, I tried getting the idea across in layman terms, as I hope this helps discussion of the issue -- and then I can later translate the solution into django implementation. I avoided the full process in my original post for clarity. I used the *.jpeg file as an illustrative example, when I'm

Re: Creating an app that generates static files

2019-10-17 Thread vineet daniel
This problem can happen with any stack and shouldn't be considered as django specific. What you are looking for is a solution in a layman terms.which then can be translated to django implementation. Before that i would like to know image size and kind of image that you create. Is it some qr code o

Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
Hi all, I am currently writing an app that generates static files before serving them, and I could use some input! Here's a step-by-step example of how the app is setup: - the url mapping pulls a database entry - using the data entry, static files are created from the data (for example, a *.