djangosnippets.org: Latest snippets posted by nosrednakramhttps://djangosnippets.org/users/nosrednakram/2009-09-22T08:44:55.254976-05:00nosrednakramContentType Form
2009-09-22T08:44:55.254976-05:00nosrednakramhttps://djangosnippets.org/snippets/1737/<p>When working with the ContentType model there are generally two issues.</p>
<ol>
<li>Models are listed in the table but not imported.</li>
<li>Unicode only returns model not application so being able to select a a app/model is sometimes difficult when to applications have a model with the same name.</li>
</ol>
<p>This snippet gets …</p>
Freely redistributableOracleAuthBackend
2009-08-10T14:14:18.892775-05:00nosrednakramhttps://djangosnippets.org/snippets/1678/<p>This code uses oracle as an authentication back end. It creates a new connection to the db and attempts to login. If successful it will then create an upper case User account with _ORACLE appended to the username.</p>
<p>My urls.py call:</p>
<pre><code>from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^accounts/login/$', 'django.contrib.auth.views.login', …</code></pre>
Freely redistributableMedia Wiki With mwlib
2009-01-05T09:33:06.654958-06:00nosrednakramhttps://djangosnippets.org/snippets/1277/<h3>Simple wiki with MediaWiki and Markdown Support</h3>
<p>Once you install the mwlib you can use mwit to convert Mediawiki markup to HTML. I am include the model that uses it to hopefully provide a good example. I maintain a version and only one copy of each wiki entry in the …</p>
Freely redistributable