Python on Rails is a web framework with an idea to simplify web development. It's not a clone of Ruby on Rails. This project created for lazy developers who like to write less code. Code that should be good structured in small and big projects.
Do you use Django? Look to my new project Django(mini) - simplified infrastrusture to create Django projects. It speed-up development process in few times. Try it.
- create new virtual env for test project:
mkvirtualenv test_project
- install Rails with pip:
pip install Rails
- clone our test project:
git clone [email protected]:PythonRails/examples.git
- open a test project and install dependencies:
cd examples/blog
andpip install -r requirements.txt
- run project
python app.py
- check how it works, open: 127.0.0.1:8800
Continue to read documentation to get started.
- Flat project structure. When you need to create new controller or model - just do it. No worry about "In which file do I need to place this code?". All models place in
models
folder and all controllers create incontrollers
folder. - No routers. With routers we can overlap some urls and have problems with accessing desired url. In our case we have simple mapping between url address and controller name and action. Access to
/users/details/15
calls a controllerUsers
and an actiondetails()
with argument15
. The main project controller isIndex
and can be used to render homepage with actionindex()
. - Less coupling. You can choose any Model backend (like SQL Alchemy, SQLObject, PonyORM) and any View backend (Jinja2, Mako, Chameleon). It configurable in the project settings file.
- Middlewares. When we need to do something before and after a call to a desired controller - we use middleware.
- Auth out of the box. Focus on coding a new logic. You have out-of-the-box ability to login via external websites (facebook, twitter) in one click as well as via email + password.
- and something else
Have an idea? Create Pull Request or Create New Issue.
Like us on facebook.