<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Howto Reset The Admin Password in Django</title>
	<atom:link href="http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html</link>
	<description>Programming is passion made real</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:27:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Bruce Kroeze</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1480</link>
		<dc:creator>Bruce Kroeze</dc:creator>
		<pubDate>Fri, 09 Dec 2011 00:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1480</guid>
		<description>Posters who are pointing out that you can now do that from a simple &quot;changepassword&quot; command are right!  When I wrote this, there was no such command.  Now it is much easier.</description>
		<content:encoded><![CDATA[<p>Posters who are pointing out that you can now do that from a simple &#8220;changepassword&#8221; command are right!  When I wrote this, there was no such command.  Now it is much easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1479</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 09 Dec 2011 00:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1479</guid>
		<description>Why not just do it from the manager?

./manage.py changepassword admin</description>
		<content:encoded><![CDATA[<p>Why not just do it from the manager?</p>
<p>./manage.py changepassword admin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Val</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1477</link>
		<dc:creator>Val</dc:creator>
		<pubDate>Sat, 12 Nov 2011 23:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1477</guid>
		<description>It make sense to change the password via a configuration setting prior to a syncdb specially if you are on the production server. You don&#039;t want to jump into typing python code directly. 

Check django-bootup for more details.

https://github.com/un33k/django-bootup/blob/master/README</description>
		<content:encoded><![CDATA[<p>It make sense to change the password via a configuration setting prior to a syncdb specially if you are on the production server. You don&#8217;t want to jump into typing python code directly. </p>
<p>Check django-bootup for more details.</p>
<p><a href="https://github.com/un33k/django-bootup/blob/master/README" rel="nofollow">https://github.com/un33k/django-bootup/blob/master/README</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marconius</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1466</link>
		<dc:creator>Marconius</dc:creator>
		<pubDate>Fri, 23 Sep 2011 19:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1466</guid>
		<description>~/my/app$ ./manage.py changepassword admin

from: https://docs.djangoproject.com/en/dev/ref/django-admin/#changepassword

Me thinks this is the best way to do it now.</description>
		<content:encoded><![CDATA[<p>~/my/app$ ./manage.py changepassword admin</p>
<p>from: <a href="https://docs.djangoproject.com/en/dev/ref/django-admin/#changepassword" rel="nofollow">https://docs.djangoproject.com/en/dev/ref/django-admin/#changepassword</a></p>
<p>Me thinks this is the best way to do it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: japa</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1459</link>
		<dc:creator>japa</dc:creator>
		<pubDate>Tue, 31 May 2011 06:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1459</guid>
		<description>I confirm this worked for me with Pinax (using Django 1.3) while the original did not work. Thanks</description>
		<content:encoded><![CDATA[<p>I confirm this worked for me with Pinax (using Django 1.3) while the original did not work. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1456</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Sat, 30 Apr 2011 03:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1456</guid>
		<description>I think understand why:
users[0].set_password(‘whatever’)
doesn&#039;t work, rory&#039;s solution does.

It is because &#039;users&#039; is a queryset, which essentially means that &quot;users[0]&quot; is better thought of as the execution of a function instead of an &quot;object&quot; that is storing information about the user.  When users[0] is called, it executes a database query and returns the result.  In other words, &quot;users[0].set_password(&#039;whatever&#039;)&quot; returns the information of the user with the modified password, but this information is *not* saved in users[0], since a queryset can&#039;t actually hold the result of the database query.</description>
		<content:encoded><![CDATA[<p>I think understand why:<br />
users[0].set_password(‘whatever’)<br />
doesn&#8217;t work, rory&#8217;s solution does.</p>
<p>It is because &#8216;users&#8217; is a queryset, which essentially means that &#8220;users[0]&#8221; is better thought of as the execution of a function instead of an &#8220;object&#8221; that is storing information about the user.  When users[0] is called, it executes a database query and returns the result.  In other words, &#8220;users[0].set_password(&#8216;whatever&#8217;)&#8221; returns the information of the user with the modified password, but this information is *not* saved in users[0], since a queryset can&#8217;t actually hold the result of the database query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diomedes Alakazam</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1452</link>
		<dc:creator>Diomedes Alakazam</dc:creator>
		<pubDate>Sun, 27 Feb 2011 19:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-1452</guid>
		<description>(4+ years later -  still this post is found at google and helps the occasional person that forgets the obvious...)

Anyway,   was curious why Amit&#039;s reply worked (while the orignal didn&#039;t).
So it seems that he important difference is that Amit does

user = ...
user.set_password
user.save

instead of the original post which was working on the full path
users[0].set_password(&#039;whatever&#039;)
users.save()

After failing to change the password in that way I just rewrote it as

user = users[0]
user.set_password(&#039;whatever&#039;)
user.save()

and that worked perfectly.

diomedes</description>
		<content:encoded><![CDATA[<p>(4+ years later &#8211;  still this post is found at google and helps the occasional person that forgets the obvious&#8230;)</p>
<p>Anyway,   was curious why Amit&#8217;s reply worked (while the orignal didn&#8217;t).<br />
So it seems that he important difference is that Amit does</p>
<p>user = &#8230;<br />
user.set_password<br />
user.save</p>
<p>instead of the original post which was working on the full path<br />
users[0].set_password(&#8216;whatever&#8217;)<br />
users.save()</p>
<p>After failing to change the password in that way I just rewrote it as</p>
<p>user = users[0]<br />
user.set_password(&#8216;whatever&#8217;)<br />
user.save()</p>
<p>and that worked perfectly.</p>
<p>diomedes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rcmichelle</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-693</link>
		<dc:creator>rcmichelle</dc:creator>
		<pubDate>Fri, 27 Aug 2010 07:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-693</guid>
		<description>you can try to google Password Genius</description>
		<content:encoded><![CDATA[<p>you can try to google Password Genius</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hobs</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-630</link>
		<dc:creator>Hobs</dc:creator>
		<pubDate>Thu, 12 Aug 2010 01:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-630</guid>
		<description>Rorys,
Likewise for me (and apparently Amit). I&#039;m using the latest development Django (as of 2010-08-10), fully updated Ubuntu distribution of Python 2.6 (r265:79063, Apr 16 2010, 13:09:56), and development version of Pinax (0.9...?). Perhaps something to do with Python 2.6 object array dereferencing with brackets?</description>
		<content:encoded><![CDATA[<p>Rorys,<br />
Likewise for me (and apparently Amit). I&#8217;m using the latest development Django (as of 2010-08-10), fully updated Ubuntu distribution of Python 2.6 (r265:79063, Apr 16 2010, 13:09:56), and development version of Pinax (0.9&#8230;?). Perhaps something to do with Python 2.6 object array dereferencing with brackets?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen Byrne</title>
		<link>http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-328</link>
		<dc:creator>Owen Byrne</dc:creator>
		<pubDate>Fri, 11 Jun 2010 20:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html#comment-328</guid>
		<description>The method from the comments worked for me. You might want to remove that semi-colon, since it betrays a background with some less cool language.
.-= Owen Byrne&#180;s last blog ..&lt;a href=&quot;http://www.owenbyrne.com/2009/12/19/top-digg-unpromoted-stories-2009-12-05-to-2009-12-12/&quot; rel=&quot;nofollow&quot;&gt;Top Digg Unpromoted Stories 2009-12-05 to 2009-12-12&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>The method from the comments worked for me. You might want to remove that semi-colon, since it betrays a background with some less cool language.<br />
.-= Owen Byrne&#180;s last blog ..<a href="http://www.owenbyrne.com/2009/12/19/top-digg-unpromoted-stories-2009-12-05-to-2009-12-12/" rel="nofollow">Top Digg Unpromoted Stories 2009-12-05 to 2009-12-12</a> =-.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

