Django + Raspberry PI

1,563 views
Skip to first unread message

Nicolas Emiliani

unread,
Mar 1, 2013, 10:58:28 AM3/1/13
to django...@googlegroups.com
Hey guys!

Has anyone tried to run django + sqlite on a raspberry pi ? Any performance issues ?

I'm about to start an app that provides a restful api and has to run on RPI, it's going
to manage an automation service, so load is going to be pretty low.

Cheers.

--
Nicolas Emiliani

Lo unico instantaneo en la vida es el cafe, y es bien feo.

Shawn Milochik

unread,
Mar 1, 2013, 11:04:47 AM3/1/13
to django...@googlegroups.com
Yep, I got my full development environment for one of my company's
applications running on it with almost no problem. The one exception
was MongoDB, which is for x86 only, so I had to compile a fork, which
took about 10 hours on the Pi.

It was definitely pretty slow, but it works.

Our stack includes nginx, gunicorn, Redis, MongoDB, PostgreSQL,
supervisor, virtualenv, and probably other stuff I'm forgetting.

It is a computer, after all. Just slow, not too much RAM, and with an
ARM processor.

Nicolas Emiliani

unread,
Mar 1, 2013, 1:13:49 PM3/1/13
to django...@googlegroups.com
Shawn,

It was definitely pretty slow, but it works.

Our stack includes nginx, gunicorn, Redis, MongoDB, PostgreSQL,
supervisor, virtualenv, and probably other stuff I'm forgetting.


Well you are running a pretty interesting and (heavy?) stack, I've read about DB engines being slow. Thanks for the data.
 
It is a computer, after all. Just slow, not too much RAM, and with an
ARM processor.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Tim Chase

unread,
Mar 6, 2013, 10:59:31 PM3/6/13
to django...@googlegroups.com, dgreg...@gmail.com
On 2013-03-06 18:43, dgreg...@gmail.com wrote:
> I am developing a pinewood derby race manager to run on Django on
> the RPi. I am using sqlite.

With an intro sentence like that and the lilliputian dimensions of the
RPI, I half expected you to say that you ran it *on the pinewood
derby race car itself*. :-)

-tkc



Amirouche

unread,
Mar 7, 2013, 2:05:50 PM3/7/13
to django...@googlegroups.com

Slow ARM processor.

Did you try to cross compile mongodb or use qemu chroot/proot ?

Here is an explaination on how to cross build a gentoo from another gentoo and and an environnement setup to do be able to qemu proot and compile anything (as if it was compiled on the raspberry)... I divides by 6 the time needed to compile raspberry pi kernel with modules (less than 1hour) and you get all the benefit of a source distribution :)

If you don't use a gentoo you can setup portage prefix or chroot.

OR

you can use distcc with a cross compiler.

HTH,

Amirouche
 

Amirouche

unread,
Mar 7, 2013, 2:08:45 PM3/7/13
to django...@googlegroups.com

Amirouche

unread,
Mar 7, 2013, 2:11:24 PM3/7/13
to django...@googlegroups.com


On Thursday, March 7, 2013 8:08:45 PM UTC+1, Amirouche wrote:
http://amirouche.github.com/blog/cross-compiling-a-gentoo.html

This will be a long way home for you I recommend you setup a cross compiler and use distcc

dgreg...@gmail.com

unread,
Mar 7, 2013, 6:48:31 PM3/7/13
to django...@googlegroups.com, dgreg...@gmail.com, django...@tim.thechases.com
The RPi board would fit on a car, but you would have to remove the hdmi and power connectors to keep from being too wide. However I am considering mounting an arduino with flashing leds for my granddaughter's car next year. (Off topic apology)

albrnick

unread,
Dec 13, 2014, 12:49:06 PM12/13/14
to django...@googlegroups.com
A bit dated, but since this page came up when I ran into the same issue, thought I'd post my fix.

Pretty much I turned off DEBUG in the settings.py file, and the performance is fine now = )

Best Wishes,
 -Nick
Reply all
Reply to author
Forward
0 new messages