₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,147 members, 8,420,548 topics. Date: Friday, 05 June 2026 at 12:49 AM

Toggle theme

Python Django Android... - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPython Django Android... (3601 Views)

1 Reply (Go Down)

Python Django Android... by emilykel(op): 3:17pm On Mar 17, 2016
if you're interested in django and are comfortable using it on your android, then you can run it on Qpython using the pip console..
pip install django
once the installation is done you'd need a terminal to run the django commands like django-admin.py runserver ...
using the terminal emulator on android is very frustrating and requires a lot of work arounds so I came up with this solution...
you can use your Qpython console as a terminal ,I.e run commands like CD,L's,pwd, etc..but to get the console to change from interpreter to actual console is a bit tricky or not possible (I don't know of a direct way,the OS module doesn't do The job) so this is how to do it...

open Qpython (Qpython 2.7)
open the editor
create a new file and name it nil.py
in the file, type "run server" without quotes and save
then run the file ...
the above will trow an exception and turn your interpreter into a terminal...
you can then run all python commands...
Note: you can start a new console window to bring up another interpreter..

Everything works fine but that's if you're comfortable doing it on your android like I said...

below is the tutorial on how to create your first django app av been following and its quite fun...

Re: Python Django Android... by timex4u(m): 8:59am On Mar 18, 2016
Wow, thats really cool.
I'v tot of dis, I used QPython also buh neva tried it.. Would love a more detailed approach.. Wot Text Editor do you den use to edit your Py files>??
Re: Python Django Android... by emilykel(op): 2:17pm On Mar 18, 2016
timex4u:
Wow, thats really cool.
I'v tot of dis, I used QPython also buh neva tried it.. Would love a more detailed approach.. Wot Text Editor do you den use to edit your Py files>??
I use droidedit for editing
Re: Python Django Android... by HAIBEEY:
.
Re: Python Django Android... by emilykel(op): 8:54am On Mar 20, 2016
HAIBEEY:
I am trying to install django on Android but is saying "couldn't find any download, no distribution bla bla"
How can I fix it.
as at now, django only works for python 2 on android..
if you have python 2 then use the pip console...it'll work
Re: Python Django Android... by HAIBEEY:
.
Re: Python Django Android... by emilykel(op): 8:54am On Mar 22, 2016
HAIBEEY:
it keeps saying no distribution found for django and couldn't find any download
that's strange. Are you sure you're not using qpython3 instead of qpython ?
Re: Python Django Android... by Irelokeh(m): 9:08pm On Mar 23, 2016
Thanks for this info bro I'm really greatful!
Re: Python Django Android... by emilykel(op): 10:15pm On Mar 23, 2016
Irelokeh:
Thanks for this info bro I'm really greatful!
you're welcome bro
1 Reply

Let's Build A Simple Blog With Python(django)Please Review My Price comparison enginePython-django Can Now Be Ran On Your Android Through Qpython...234

Pos Terminal Connectivity To Web ServerSachng.com, Better Don Land.PHP With Fingerprint Scanner