Page 1 of 1

Simple Web/MySQL Language

Posted: Tue Aug 12, 2014 3:46 pm
by alfista2600
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?

Re: Simple Web/MySQL Language

Posted: Tue Aug 12, 2014 5:14 pm
by riklaunim
Most common for Python is Django, although full blown DB+Python+Django application may run slow on RPi (if they will be non-trivial).

Re: Simple Web/MySQL Language

Posted: Wed Aug 13, 2014 1:43 am
by alfista2600
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.

Re: Simple Web/MySQL Language

Posted: Wed Aug 20, 2014 6:36 pm
by geev03
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