Notices


Reply
Thread Tools
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#1
An exclusive* release for Maemo 4 users : Django, a high-level Python web development framework, is now available.

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Developed by a fast-moving online-news operation, Django was designed to handle two challenges: the intensive deadlines of a newsroom and the stringent requirements of the experienced Web developers who wrote it. It lets you build high-performing, elegant Web applications quickly.
Django focuses on automating as much as possible and adhering to the DRY (Don't Repeat Yourself) principle.

Screenshot of the 1st part tutorial of Django running on a Nokia N810, using "meusite" (mysite in portuguese) project :


Install & use on Maemo 4 :
Enable the extras-devel repository on Maemo 4. Then, in X Terminal, as root :
# apt-get update
# apt-get install python-django
Beware that it takes 35 MB after installation.
If you want to use SQLite database backend, then also install :
# apt-get install python-sqlite

The 1st part tutorial of Django works, here in X Terminal (in some user folder) :
$ python /usr/lib/python2.5/site-packages/django/bin/django-admin.py startproject mysite
$ cd mysite
$ python manage.py runserver
Now open the local address "http://127.0.0.1:8000/ " in your Nokia N8x0 web navigator to see your 1st Django project working !

I have made this package for a friend of mine. It is very experimental for Maemo 4 because I don't know if all features work on Maemo 4.

Django on Maemo 4 is meant to help test Django development. But I am also curious if Django can work with a web server (Apache, for example) running on Nokia N8x0

(*) : exclusive because I have not found "python-sqlite" or other python database backend for Maemo 5 or MeeGo 1.2 Harmattan.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-02-23 at 04:36. Reason: Added python-sqlite install & screenshot
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 112 | Thanked: 34 times | Joined on Dec 2010
#2
Does it work for Maemo 5 (Nokia N900)?
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#3
No. Because there is no python-sqlite dependency on Maemo 5.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:05.