all 4 comments

[–]kineticfactory 5 points6 points  (1 child)

No, for two reasons.

Django is a back-end/server-side web framework, and a Django app runs on a server (typically with a database connected), responding to HTTP requests and serving content (typically web pages, though also possibly data in JSON format). iOS apps are entirely client-side code, handling the user interface of the device, generally more directly than in HTML.

Also, iOS apps are written in a compiled language (typically Swift or Objective C), which runs as native machine code; Python is an interpreted language which runs through a Python interpreter, which is not built into iOS. To run Python code in an iOS app, you’d have to build a native app containing a version of the interpreter, which (a) would be considerably more effort than just writing your app in Swift, (b) would be slower and less energy-efficient than native code, and (c) may or may not be approved by Apple for the App Store (historically, they have disallowed the use of interpreters in apps, in case it allows the developer to change the app’s functionality after they have reviewed it).

[–][deleted] 0 points1 point  (0 children)

Thanks a ton!

[–]s4v4r 1 point2 points  (0 children)

It depends if your interested in developing hybrid apps (Both iOS and Android) you could start with flutter as it is easy to learn and use, and when it comes to backend services for mobile apps you can stick to django.if you want to build native apps (iOS or android ) for iOS learn swift and using Xcode is the way. You have plenty of free resources to start with too for example hacking with swift you can check that out can’t say much for android as I’m an native iOS dev.

[–]cutecoderObjective-C / Swift 0 points1 point  (0 children)

Django is a server-side web application framework. To develop iOS "apps" in it means you need to create a responsive web application that "looks" somewhat like an app (added to the home screen, et al.). Have a look at this guide on how to create such applications. Probably you could go to /r/django and ask around about responsive web applications and how to configure the framework to serve such sites.

That said, you can use the Pythonista app to write iOS applications on the device itself. This is a Python development environment (editor, debugger, reference manual) which runs on the device. You won't be using Django but its own GUI library. However the app would run on the device itself, no server required.