I'm interested in using PyOxidizer [1] to create single-file executable 
Django projects. This currently isn't possible because of all the places 
Django assumes it is operating on a proper filesystem. I haven't done a 
full audit, but templates, migrations, and static files come to mind. 
Python has full support this scenario (aka resource loading), but it would 
require some changes to Django internals to use it. One of the biggest 
hurdles I see on the surface is that you can only load a resource from a 
Python module (not from a sub-directory). That being said, I have a feeling 
resource loading could be added such that users could opt-in or backwards 
compatibility is maintained with the current implementation.

Some additional reading/watching on the subject:

* Topic overview: 
https://pyoxidizer.readthedocs.io/en/latest/packaging_pitfalls.html#reliance-on-file
* Barry Warsaw talk on resource loading: 
https://www.youtube.com/watch?v=ZsGFU2qh73E

I'm posting here to see if there is general support for this and to discuss 
what sort of changes would be required. Thanks!

[1] https://pyoxidizer.readthedocs.io/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/b6229b20-0647-4e0a-b9e6-31136a774e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to