Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

pychan general

Name: ­ 2011-07-14 22:15

pychan is a lightweight (~150 Python LOC and ~450 JavaScript LOC) Python imageboard that uses AJAX requests and JSON responses. Although it lacks some of the detailed features that 4chan has had worked in over the years, it has reached a state that it can run faster and more reliably than 4chan's imageboards.

Source: http://azabani.com/cgit.cgi/pychan
Instance: http://neckbeardchan.azabani.com/

ITT: /prog/'s suggestions, feature requests and such for pychan

Name: Anonymous 2011-07-15 1:59

* So, where you trying to cut down on LOCs by removing blank lines? That's horrible.
* Why are you printing HTML inside a code file? That's horrible.
* Why open and close a database connection for each request? Granted, it'll work for CGI, but as Anonymous-san further up pointed out, you do not want to have a website based on CGI, ever.
* Why hardcode MySQL as backend, when you could as well use something like sqlalchemy for transparent DB access?
* Speaking of external dependencies, flup is the standard for FastCGI. Combine it with something like colubrid for an extremely simple WSGI path-mapped application.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List