<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dana Woodman &#187; Django</title>
	<atom:link href="http://www.danawoodman.com/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danawoodman.com</link>
	<description>The online home of Dana Woodman.</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:05:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Testing e-mail sending locally in Django</title>
		<link>http://www.danawoodman.com/2009/11/testing-e-mail-sending-locally-in-django/</link>
		<comments>http://www.danawoodman.com/2009/11/testing-e-mail-sending-locally-in-django/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 12:21:59 +0000</pubDate>
		<dc:creator>Dana Woodman</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.danawoodman.com/?p=114</guid>
		<description><![CDATA[If you&#8217;ve been wanting to test email in your Django application locally, then read this short tutorial.



If you need to test you Django app&#8217;s email sending functionality locally, you&#8217;re in luck. Python has a built in &#8220;dumb&#8221; SMTP email server for doing just that.

All you need to do to run it is open up your [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been wanting to test email in your Django application locally, then read this short tutorial.</p>

<p><span id="more-114"></span></p>

<p>If you need to test you Django app&#8217;s email sending functionality locally, you&#8217;re in luck. Python has a built in &#8220;dumb&#8221; SMTP email server for doing just that.</p>

<p>All you need to do to run it is open up your console and type:
<pre>python -m smtpd -n -c DebuggingServer localhost:1025</pre>
Then just change your settings.py file to have these settings:
<pre>EMAIL_HOST = "localhost"
EMAIL_PORT = 1025</pre>
&#8230; and any email sent from your local Django app will show up in the console for you to view.</p>

<p>See this page for more info:
<a title="View Django's docs on email sending." href="http://docs.djangoproject.com/en/dev/topics/email/#testing-e-mail-sending" target="_blank">http://docs.djangoproject.com/en/dev/topics/email/#testing-e-mail-sending</a></p>

<p>Hope that helps, cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danawoodman.com/2009/11/testing-e-mail-sending-locally-in-django/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
