Code Monkey home page Code Monkey logo

drapache's Issues

Can't repeat installation

So I went to try drapache and I've chose random domain just to give it a try. Everything worked great and after that I've try to register another domain - didn't work. I've tried to manually delete all files, apps inside "my apps", everything that has something to do with Drapache and every time was the same. When I've tried to register new domain, it pointed out that I already have another domain registered (and my Apps/Drapache folder was recreated - but just with one dropbox file inside).

Any solution for that? Thanks.

Support some sort of URL rewriting in Drapache

A simple URL rewriting mechanism would be very very welcomed. The good news is it's perfectly safe to add URL rewriting to Drapache and I will surely enable certain kinds of apps and scripts to be much more easily written this way.

Something with all of the power of mod_rewrite in Apache would be cool but I guess we don't need it since we got Python, right?

How about redirecting all 404s to a top level _rewrite.dbpy script if it's present?

Once you have that you would only need to provide us with a way to read the original requested path and we can put together our own pattern matching and URL rewriting mechanism.

Here's some code sample to help illustrate the idea:

import re

request = dbpy.http.get_request()

m = re.compile('^/posts/(?P<post_id>\d+)$')

if m.matches(request.redirect_uri):
post_id = m.groupdict()['post_id']
dbpy.http.redirect('/read_post.dbpy?post_id=%d' % post_id)

Domain issue?

Hi. Looks like your domain name, http://drapache.com/ is down.
Today we can read this message: NOTICE: This domain name expired on 03/11/2013 and is pending renewal or deletion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.