r/Python • • Oct 20 '26

Discussion Compiling django with Nuitka or Cython ?

Hey, I am working on django development
my client would prefer to slef host the app instead of hosting it on our servers, we dont mind however we would like to make sure we give them a build rather than plain code so we dont expose our code base

I came across compiling with Cython or Nuitka, I cant decide which to use?

Second ask, I heard that I should not compile my whole django apps and rather than that I better do that carefully not to mess up our different imports, how correct is that ?

Thanks in advance

10 Upvotes

19 comments sorted by

View all comments

Show parent comment

3

u/the_hoser Oct 20 '26

I say you stand to lose more money on the time and frustration involved in complicating your build pipeline than you stand to save or make "protecting" your code.

1

u/gdchinacat Oct 20 '26

Not to mention the difficulty with supporting it.

1

u/_khi4 Oct 20 '26

uhmm , not sure mate, but will consider your point for sure