alfista2600
Posts: 34
Joined: Wed Jan 22, 2014 1:19 am

Simple Web/MySQL Language

Tue Aug 12, 2014 3:46 pm

Hi All,

I'm looking for recommendations on a language/development environment for building some simple web applications on the pi. I thought Web2Py would be good, but I found it frustrating and not a lot of support documentation.

I basically want to write some simple personal-use, data-driven applications, control pins, servos, etc. Many years ago I'd write basic asp/SQL apps and it was easy to see what the code was doing. I've looked at Web2py, Ruby (seems more complicated than I need so far) and I have a basic handle on Python at the moment.

My main box is a mac so a simple development environment on that platform would be great.

Any thoughts on the 'path of least resistance' for me?

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: Simple Web/MySQL Language

Tue Aug 12, 2014 5:14 pm

Most common for Python is Django, although full blown DB+Python+Django application may run slow on RPi (if they will be non-trivial).

alfista2600
Posts: 34
Joined: Wed Jan 22, 2014 1:19 am

Re: Simple Web/MySQL Language

Wed Aug 13, 2014 1:43 am

riklaunim wrote:Most common for Python is Django, although full blown DB+Python+Django application may run slow on RPi (if they will be non-trivial).
Perfect! Thanks! Going through the tutorial I already have made much more progress than in 10x with Web2py or Ruby! Just what I needed.

geev03
Posts: 139
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK

Re: Simple Web/MySQL Language

Wed Aug 20, 2014 6:36 pm

Yes, getting Django on RasPi took only a few minutes..http://goo.gl/gGyHvo,

Code: Select all

apt-get install git
git clone git://github.com/django/django.git django-trunk  
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install Django==1.6.5
python -c "import django; print(django.get_version())"
cd /home/pi/
django-admin.py startproject mysite
cd mysite/
python manage.py runserver 192.168.1.65:8080

Return to “General programming discussion”