A pysmvt supporting application
pysapp is a library designed as a “supporting application” for pysmvt applications.
Example applications will be avilable soon, for now, please follow the steps below to get your own default application up and running.
Steps for Installation
- Install Python
- install setuptools (includes easy_install)
- install virtualenv easy_install virtualenv
- make a staging area mkdir myproj-staging
- cd myproj-staging
- Create a new virtual environement virtualenv ENV –no-site-packages
- Activate the virtual environment (os dependent)
- install pysapp & dependencies easy_install pysapp
Steps for creating a working application
Note: the pysmvt command is installed when you install pysapp, which has pysmvt as a requirement.
- pysmvt project -t pysapp <myapp> replace <myapp> with your project name
- answer the questions that come up
- write down “Login Details”, referred to hereafter as <user> & <pass>
- cd <myapp>-dist
- python setup.py -q develop
- cd <myapp>
- pysmvt broadcast initdb setup the database tables
- pysmvt broadcast initapp setup the database tables
- pysmvt broadcast initmod <user> let modules set themselves up, use the settings profile for your user
- pysmvt serve <user> run a development http server with the user’s settings profile
- point your browser at http://localhost:5000/
Creating a New Application Module
This step creates a Application Module directory structure in <myapp>/modules/<mymod>:
pysmvt module <mymod>
where <mymod> is the name of the module you want to create
Questions & Comments
Please visit: http://groups.google.com/group/pyslibs
We are currently in an alpha phase which means lots of stuff can change, maybe rapidly, and we are not interested in backwards compatibility at this point.
I am currently using this library for some production websites, but I wouldn’t recommend you do that unless you really know what you are doing.
The unstable development version.