djangosnippets.org: Latest snippets posted by jonasvphttps://djangosnippets.org/users/jonasvp/2008-11-18T03:41:52.231997-06:00jonasvpIntegrate Wymeditor with filebrowser plugin
2008-11-18T03:41:52.231997-06:00jonasvphttps://djangosnippets.org/snippets/1201/<p>In order to integrate Wymeditor with the Django filebrowser, put the code in a file, set the fb_url variable to point to your filebrowser instance and add the file to your Javascript headers:</p>
<p><script type="text/javascript" src="/media/wymeditor/plugins/jquery.wymeditor.filebrowser.js"></script></p>
<p>or in your admin.py:</p>
<p>class Media:
js = ('/media/wymeditor/plugins/jquery.wymeditor.filebrowser.js',)</p>
<p>Add the postInitDialog parameter to …</p>
Freely redistributableNewforms field for decimals with a comma
2008-03-12T05:50:20.027111-05:00jonasvphttps://djangosnippets.org/snippets/643/<p>This might be handy in countries where decimals are entered with a comma separating the decimal places from the integer part (for instance in Germany). It lets user enter and displays all decimals with a comma separator.</p>
<p>I ran into this problem and couldn't find a clean internationalized way of …</p>
Freely redistributable