Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A django port to node.js
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
docs
example
lib
tests Adding an exception to loadAndRender when the file is not found.
LICENSE
Makefile
README.md
package.json

README.md

drty -- A django port for node.js

DESCRIPTION

drty is a port of the most excellent Django web framework to node.js.

drty currently includes the following:

  • Urls/Routing
  • Middleware
  • Views
  • Basic forms
  • Basic models using MySQL backend
  • Sessions and Auth contrib
  • Django templating support (thanks to Anders Hellerup Madsen and Simon Willisons of djangode!)

It's a work in progress, so there is much yet to be done!

INSTALLATION

Installation is easy

$ npm install drty

EXAMPLE

Included in the source tree is an example/ folder that contains a simple blogging platform written using drty. To run the example, open up mysql as administrator (root), and type the following:

create database demo;
grant all on demo.* to 'demo'@'localhost' identified by 'demo';

Then, go to the examples/ directory and run.

$ node manage.js syncdb
$ node manage.js runserver

Now open a browser to http://localhost:8080/login/.

Something went wrong with that request. Please try again.