Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A django port to node.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 docs
Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 tests
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 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.