djangosnippets.org: Latest snippets posted by EmilStenstromhttps://djangosnippets.org/users/EmilStenstrom/2010-10-04T09:44:54.322975-05:00EmilStenstromLink raw_id_fields (both ForeignKeys and ManyToManyFields) to their change pages
2010-10-04T09:44:54.322975-05:00EmilStenstromhttps://djangosnippets.org/snippets/2217/<p><strong>UPDATE: Now works in Django 1.4</strong></p>
<p>Based on luc_j:s snippet (http://djangosnippets.org/snippets/2108/) to show values in ManyToManyFields in the admin. This snippets does that, but also links each value to its corresponding admin change page.</p>
<p>To use, just set the raw_id_fields to the value you want, and let your form inherit …</p>
Freely redistributableAllow configurable subdirectory django deployment
2010-07-30T03:08:55.883925-05:00EmilStenstromhttps://djangosnippets.org/snippets/2129/<p>I wanted a way to deploy a Django site to both the root of a domain, and to a subdirectory. The solution was to loop over all urlpatterns and add a configurable string (URL_PREFIX) at the beginning of all patterns.
</p>
Freely redistributable