djangosnippets.org: Latest snippets tagged with 'crud'https://djangosnippets.org/tags/crud/2022-08-23T00:43:18.005339-05:00Python Django CRUD Example Tutorial
2022-08-23T00:43:18.005339-05:00tuts_stationhttps://djangosnippets.org/snippets/10942/<p>Hey Friends,</p>
<p>In this quick example, let's see django tutorial & crud example with mysql and bootstrap. step by step explain django crud operations with mysql backend. step by step explain django crud operations with mysql bootstrap. let’s discuss about django crud operations with mysql database.</p>
<p>Read more...</p>
<p><a href="https://tuts-station.com/python-django-crud-example-tutorial.html">https://tuts-station.com/python-django-crud-example-tutorial.html</a></p>
Freely redistributableReusable form template with generic view
2015-12-02T08:02:40.154798-06:00roldandvghttps://djangosnippets.org/snippets/10541/<p>If you require lots of forms in your project and do not want to be creating an extended template for each one I propose this solution.</p>
<p>Classes in the html correspond to bootstrap, you can work without them if you do not use bootstrap.</p>
Freely redistributableA action decorator for URLs
2008-03-28T08:22:10.950526-05:00Batistehttps://djangosnippets.org/snippets/672/<p>This decorator handle a extra "action" parameter from an url and call this desired action in the provided views module.</p>
<p>Example:</p>
<pre><code>from posts import views
urlpatterns = patterns('posts.views',
...
url(r'^(?P<id>\d+)/(?P<action>delete|publish|edit)/$', action(views), name="posts-action"),
...
)
</code></pre>
<p>In templates:</p>
<pre><code>{% url posts-action id=post.id,action="delete" %}
</code></pre>
Freely redistributable