Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.26 KB

README.markdown

File metadata and controls

41 lines (27 loc) · 1.26 KB

About

Django project for Android

Installation

Scripting Layer for Android

  • Install SL4A on Android

Django

  • Get Django here: tarball
  • Copy django directory from the tarball into the /mnt/sdcard/com.googlecode.pythonforandroid/extras/python/ directory on Android

Jadro

  • Get Jadro

    git clone git://github.com/b3b/jadro.git

  • Create the /mnt/sdcard/sl4a/scripts/jadro/ directory on Android

  • Copy all the Jadro files into the /mnt/sdcard/sl4a/scripts/jadro/ directory on Android

Root

  • Root the Android to have access to Android SQLite databases

Usage

run.py (from the Jadro directory) is a Django manage.py wrapper. To run manage.py command, launch run.py and follow the dialogs

  • Create default database with syncdb command
  • Start Web server with runserver command
  • Open http://127.0.0.1:8000/ from Android browser

Additional manage.py commands

  • find_databases

    Find and output a paths to SQLite databases

  • inspectdb --database_path=DATABASE_PATH

    Introspects DATABASE_PATH SQLite database

  • startapp --database_path=DATABASE_PATH

    Create app for DATABASE_PATH SQLite database