Django Application on Piratebox

Posted by nes 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
nes
Django Application on Piratebox
December 18, 2016 10:29AM
Hi everyone,

I wonder if it is possible to run a Python/Django application on piratebox. In theory, it should be. But I couldn't achieve it so far. Do you know a guide or tutorial that may work for this topic? I found several modifications but couldn't find one that fits what I try.

Thanks.
Re: Django Application on Piratebox
January 03, 2017 08:20PM
Python is already installed but the filesystem memory is too low to install other packages (my guess, never tried).

For a PirateBox running on OpenWrt the process should be:

1. install pip
2. install django through pip
3. install sqlite (a real database would be too heavy on the PirateBox)
4. start your django project

I can't remember right now but I would guess that there are other microframework in the OpenWrt repository you can install, they won't be as useful and complete as django but for a simple app they should suffice.


As always I should research more before posting, there is a django package from OpenWrt for the ar71xx models. It's outdated and maybe there aren't important security updates so keep this in mind.

Happy hacking



Edited 1 time(s). Last edit at 01/03/2017 08:23PM by edoput.