djangosnippets.org: Latest snippets tagged with 'register'https://djangosnippets.org/tags/register/2012-02-05T11:40:10.949906-06:00Register django views
2012-02-05T11:40:10.949906-06:00magik_cypresshttps://djangosnippets.org/snippets/2674/<p>Register django views</p>
Freely redistributableRegistration with confirmation email
2011-08-24T14:58:41.111657-05:00catellarhttps://djangosnippets.org/snippets/2526/<p>This registers a users taking data from a submitted form, sends a confirmation email, activates the account when the confirmation link is clicked and logs the user in</p>
Freely redistributableMemento
2011-01-08T05:43:53.760729-06:00manelvfhttps://djangosnippets.org/snippets/2315/<p>This class tracks changes in Django Admin. When a save action is performed, it stores the value of the old object using the Memento model.
</p>
<p>Example of code for a model in <strong>admin.py</strong> for a custom 'app':
</p>
<pre><code>from app.memento.models import Memento
def save_model(self, request, obj, form, change):
obj.save()
data = …</code></pre>
Freely redistributableeasy admin registration
2008-09-02T09:31:24.872936-05:00alia_khourihttps://djangosnippets.org/snippets/1015/<p>This essentially wraps <a href="http://www.djangosnippets.org/snippets/917/">snippet 917</a> (with full credit to author ncw) in a convenience function so that you can type:</p>
<pre><code>admin_register(admin, namespace=globals())
</code></pre>
<p>or more concisely:</p>
<pre><code>admin_register(admin, globals())
</code></pre>
<p>at the end of your admin.py file without having to register each model and admin class individually.</p>
Freely redistributableUsing dojo/json to check for username availability
2007-06-21T11:03:09.017487-05:00heckjhttps://djangosnippets.org/snippets/292/<p>An example of using Dojo to retrieve some information from a view (linked by the URL '/account/isavailable/') to show whether or not an account is available.</p>
Freely redistributable