<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>Django users Google Group</title>
  <link>http://groups.google.com.kh/group/django-users</link>
  <description>Discussion group for Django users. Django is a high-level Python Web framework (djangoproject.com).</description>
  <language>en</language>
  <item>
  <title>Re: create_update generic view post_save_redirect problem.</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/a0e6692667bd2ca0/e0c6d4b557e934cd?show_docid=e0c6d4b557e934cd</link>
  <description>
  Sounds like #12445: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://code.djangoproject.com/ticket/12445&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Karen
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/a0e6692667bd2ca0/e0c6d4b557e934cd?show_docid=e0c6d4b557e934cd</guid>
  <author>
  kmtra...@gmail.com
  (Karen Tracey)
  </author>
  <pubDate>Sun, 14 Mar 2010 14:18:26 UT
</pubDate>
  </item>
  <item>
  <title>Re: How do I rename a FileField() that&#39;s attached to a model?</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/9ec364a23a123c22?show_docid=9ec364a23a123c22</link>
  <description>
  Contributing to the docs is handled just like contributing to the code. They &lt;br&gt; are all in SVN, under a docs directory in the trunk. See &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://docs.djangoproject.com/en/dev/internals/contributing/&quot;&gt;[link]&lt;/a&gt; for general &lt;br&gt; info on contributing. &lt;br&gt; Karen
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/9ec364a23a123c22?show_docid=9ec364a23a123c22</guid>
  <author>
  kmtra...@gmail.com
  (Karen Tracey)
  </author>
  <pubDate>Sun, 14 Mar 2010 14:15:24 UT
</pubDate>
  </item>
  <item>
  <title>Shared views</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/bed7f11ca254424e/3d5799068c176bb2?show_docid=3d5799068c176bb2</link>
  <description>
  Hi, &lt;br&gt; I have a site with a blog area and 5 pages powered by a simple cms. &lt;br&gt; On every page i show event information in the right column and social &lt;br&gt; media info in the left column. &lt;br&gt; I am wondering what view should contain the info for the left and &lt;br&gt; right column ? I would like to keep it separate from the blog and cms
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/bed7f11ca254424e/3d5799068c176bb2?show_docid=3d5799068c176bb2</guid>
  <author>
  graham.col...@gmail.com
  (grimmus)
  </author>
  <pubDate>Sun, 14 Mar 2010 14:03:25 UT
</pubDate>
  </item>
  <item>
  <title>create_update generic view post_save_redirect problem.</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/a0e6692667bd2ca0/c34d6cbb3879903f?show_docid=c34d6cbb3879903f</link>
  <description>
  If post_save_redirect set to reverse(&#39;some_view&#39;) and reversed url &lt;br&gt; contains tilde (~), then &lt;br&gt; return HttpResponseRedirect(post_save _redirect % obj.__dict__) breaks &lt;br&gt; as post_save_redirect contains %7E.
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/a0e6692667bd2ca0/c34d6cbb3879903f?show_docid=c34d6cbb3879903f</guid>
  <author>
  der.s...@gmail.com
  (sarg)
  </author>
  <pubDate>Sun, 14 Mar 2010 13:46:31 UT
</pubDate>
  </item>
  <item>
  <title>Re: limit_choices_to a value on a field in the same model</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/b3d6b427a7ca816b/26ff3365522a82fe?show_docid=26ff3365522a82fe</link>
  <description>
  Here is an idea of what your forms.py should contain: &lt;br&gt; class AgencyForm(ModelForm): &lt;br&gt; class Meta: &lt;br&gt; model = Agency &lt;br&gt; def __init__(self, *args, **kwargs): &lt;br&gt; super(AgencyForm, self).__init__(*args, **kwargs) &lt;br&gt; if self.instance.id: &lt;br&gt; if self.instance.state_id: &lt;br&gt; counties =
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/b3d6b427a7ca816b/26ff3365522a82fe?show_docid=26ff3365522a82fe</guid>
  <author>
  tufelkin...@gmail.com
  (Walt)
  </author>
  <pubDate>Sun, 14 Mar 2010 13:23:56 UT
</pubDate>
  </item>
  <item>
  <title>Re: django and buildout</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/cfe8eada6cf74b5f/7bc533cd8f6ba484?show_docid=7bc533cd8f6ba484</link>
  <description>
  it seems to work with mr.developer &lt;br&gt; [buildout] &lt;br&gt; extensions = mr.developer &lt;br&gt; sources = sources &lt;br&gt; auto-checkout = django-mptt &lt;br&gt; parts = &lt;br&gt; django &lt;br&gt; eggs = &lt;br&gt; mock &lt;br&gt; django-notification &lt;br&gt; django-page-cms &lt;br&gt; django-haystack &lt;br&gt; [sources] &lt;br&gt; django-mptt = svn &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://django-mptt.googlecode.com/svn/trunk/&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/cfe8eada6cf74b5f/7bc533cd8f6ba484?show_docid=7bc533cd8f6ba484</guid>
  <author>
  a.schmi...@gmail.com
  (andreas schmid)
  </author>
  <pubDate>Sun, 14 Mar 2010 12:52:32 UT
</pubDate>
  </item>
  <item>
  <title>RE: Re: site management - maintanance mode</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/855def212f555d04?show_docid=855def212f555d04</link>
  <description>
  Thanx all, &lt;br&gt; it seems still to be the best, doing it in the load-balancer or web-server it self. &lt;br&gt; Just was curious, if there is a python/django way... &lt;br&gt; Thanks again
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/855def212f555d04?show_docid=855def212f555d04</guid>
  <author>
  henrik.gens...@miadi.net
  (Henrik Genssen)
  </author>
  <pubDate>Sun, 14 Mar 2010 11:46:08 UT
</pubDate>
  </item>
  <item>
  <title>Re: How do I rename a FileField() that&#39;s attached to a model?</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/562c930f3dc2931e?show_docid=562c930f3dc2931e</link>
  <description>
  Yes, it was that easy. I don&#39;t know why, but I&#39;ve been banging my &lt;br&gt; head against the wall on this for a while and never thought of this &lt;br&gt; solution. &lt;br&gt; One thing that would really help a ton is more/better examples about &lt;br&gt; file-handling in django. I&#39;ve spent more hours on this single feature &lt;br&gt; reading &amp;amp; rereading the docs trying to figure out how things work. A
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/562c930f3dc2931e?show_docid=562c930f3dc2931e</guid>
  <author>
  rocketmonk...@gmail.com
  (Jumpfroggy)
  </author>
  <pubDate>Sun, 14 Mar 2010 07:19:44 UT
</pubDate>
  </item>
  <item>
  <title>Re: site management - maintanance mode</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/1dd42eb878e755ee?show_docid=1dd42eb878e755ee</link>
  <description>
  That could be done with Django using middleware, like with &lt;br&gt; django-maintenancemode. Only instead of using settings file, the setting &lt;br&gt; could be saved into database, and turned on and off in admin. The middleware &lt;br&gt; reads the setting (preferably cached), and if maintenance mode is on, &lt;br&gt; returns 503 error page with maintenance message. If setting is not on, the
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/1dd42eb878e755ee?show_docid=1dd42eb878e755ee</guid>
  <author>
  valimaa.ju...@gmail.com
  (Jukka Välimaa)
  </author>
  <pubDate>Sun, 14 Mar 2010 07:12:13 UT
</pubDate>
  </item>
  <item>
  <title>Re: How do I rename a FileField() that&#39;s attached to a model?</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/24993ef082e8a0dd?show_docid=24993ef082e8a0dd</link>
  <description>
  I think this is what I&#39;m missing. What&#39;s the code for this? Can I &lt;br&gt; just do: &lt;br&gt; os.rename(model.file1.name, new_filename) &lt;br&gt; model.file1.name = new_filename &lt;br&gt; model.save() &lt;br&gt; Is that enough? I&#39;ll go try that now. The problem is that the &lt;br&gt; documentation leaves it unclear whether simply changing the name and &lt;br&gt; saving the model is kosher. I guess I&#39;d expect a more complicated
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/24993ef082e8a0dd?show_docid=24993ef082e8a0dd</guid>
  <author>
  rocketmonk...@gmail.com
  (Jumpfroggy)
  </author>
  <pubDate>Sun, 14 Mar 2010 07:10:30 UT
</pubDate>
  </item>
  <item>
  <title>limit_choices_to a value on a field in the same model</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/b3d6b427a7ca816b/822142419306f683?show_docid=822142419306f683</link>
  <description>
  Evening Everyone, &lt;br&gt; I have a model &amp;quot;Agency&amp;quot; with &amp;quot;state&amp;quot; as a foreign key and &amp;quot;counties&amp;quot; &lt;br&gt; as a many-to-many. &lt;br&gt; County has a foreign key to &amp;quot;state&amp;quot; &lt;br&gt; I would like to limit the County choices in Django admin to the state &lt;br&gt; of the Agency being edited, but, I can&#39;t seem to find the right place &lt;br&gt; to get an instance of the Agency being edited so I can override the
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/b3d6b427a7ca816b/822142419306f683?show_docid=822142419306f683</guid>
  <author>
  btaylordes...@gmail.com
  (Brandon Taylor)
  </author>
  <pubDate>Sun, 14 Mar 2010 06:09:37 UT
</pubDate>
  </item>
  <item>
  <title>Re: site management - maintanance mode</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/cdb470911e422194?show_docid=cdb470911e422194</link>
  <description>
  On Mar 13, 11:21 pm, &amp;quot;Henrik Genssen&amp;quot; &amp;lt;henrik.gens...@miadi.net&amp;gt; &lt;br&gt; wrote: &lt;br&gt; You don&#39;t say what hosting mechanism you are using. &lt;br&gt; Shouldn&#39;t be too hard with Apache/mod_wsgi. Anything behind Apache &lt;br&gt; shouldn&#39;t be too hard actually as it could be likely be done quite &lt;br&gt; easily using some mod_rewrite magic without the Python application or
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/ac96f39201f0a283/cdb470911e422194?show_docid=cdb470911e422194</guid>
  <author>
  graham.dumple...@gmail.com
  (Graham Dumpleton)
  </author>
  <pubDate>Sun, 14 Mar 2010 03:43:34 UT
</pubDate>
  </item>
  <item>
  <title>Re: How do I rename a FileField() that&#39;s attached to a model?</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/2b40278c2d95668f?show_docid=2b40278c2d95668f</link>
  <description>
  you could do it manually. first use os.rename to rename the file on the disk, &lt;br&gt; and then update your model instance with the new name and save it.
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/2b40278c2d95668f?show_docid=2b40278c2d95668f</guid>
  <author>
  law...@au-kbc.org
  (Kenneth Gonsalves)
  </author>
  <pubDate>Sun, 14 Mar 2010 02:08:10 UT
</pubDate>
  </item>
  <item>
  <title>How do I rename a FileField() that&#39;s attached to a model?</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/a092701a0f3c324b?show_docid=a092701a0f3c324b</link>
  <description>
  I&#39;ve gone through the documentation a ton, been trying different &lt;br&gt; techniques, and I know I&#39;m just missing something obvious. &lt;br&gt; I have a model like this: &lt;br&gt; class MyModel(Model): &lt;br&gt; file1 = FileField(...) &lt;br&gt; So I can do this: &lt;br&gt; model = MyModel.objects.get(id=1) &lt;br&gt; print mode.file1.name &lt;br&gt; But I want to rename the file on the filesystem. I want something
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/8d33849646e8b8d9/a092701a0f3c324b?show_docid=a092701a0f3c324b</guid>
  <author>
  rocketmonk...@gmail.com
  (Jumpfroggy)
  </author>
  <pubDate>Sun, 14 Mar 2010 01:55:08 UT
</pubDate>
  </item>
  <item>
  <title>django and buildout</title>
  <link>http://groups.google.com.kh/group/django-users/browse_thread/thread/cfe8eada6cf74b5f/bd1bb5c064a4d40b?show_docid=bd1bb5c064a4d40b</link>
  <description>
  I kludged together a buildout config to use django-page-cms which depends on django-mptt &lt;br&gt; and it still isn&#39;t referencing my locally downloaded svn trunk version of django-mptt. &lt;br&gt; Installing django. &lt;br&gt; Page at &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://pypi.python.org/simple/mock/&quot;&gt;[link]&lt;/a&gt; links to .py file(s) without version info; an index scan is required.
  </description>
  <guid isPermaLink="true">http://groups.google.com.kh/group/django-users/browse_thread/thread/cfe8eada6cf74b5f/bd1bb5c064a4d40b?show_docid=bd1bb5c064a4d40b</guid>
  <author>
  j...@industromatic.com
  (John Griessen)
  </author>
  <pubDate>Sun, 14 Mar 2010 01:47:33 UT
</pubDate>
  </item>
  </channel>
</rss>
