Django based forum engine

  • You are not logged in.

#1 Aug. 10, 2012 11:53:48

From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

code test

# Same as origin render_bbcode, but turn on pygments_line_numbers
_postmarkup = create(use_pygments=pygments_available, annotate_links=False, pygments_line_numbers=True)
render_bbcode = _postmarkup.render_to_html
def convert_text_to_html(text, markup):
    if markup == 'bbcode':
        text = render_bbcode(text)
    elif markup == 'markdown':
        text = markdown.markdown(text, safe_mode='escape')
        raise Exception('Invalid markup property: %s' % markup)
    return urlize(text)

Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django:


Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version