Forums

Access py files between web apps?

I have 4 web apps (each with their own unique domain) I'm working on and was wondering if it was possible to have .py files universally accessible by all my web apps. For example, I have maps.py which contains a function map_gen in one web app that I'd like to access in another web app. I don't want to have 4 copies of this function in 4 different files for each web app, as I'm constantly building and improving it.

I'm still a pretty novice coder and really just playing around. But being able to access a single file universal to all my web apps would make my life a lot easier! Is this possible at all? And if not, is there a recommended workaround? TIA!

You can extract common code and make a private package of it.

Awesome, figured it out and got it working perfectly. Thanks!

Great, thanks for letting us know!