<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: import</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/import.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2009-12-02T09:31:45+00:00</updated><author><name>Simon Willison</name></author><entry><title>Namespaces</title><link href="https://simonwillison.net/2009/Dec/2/namespaces/#atom-tag" rel="alternate"/><published>2009-12-02T09:31:45+00:00</published><updated>2009-12-02T09:31:45+00:00</updated><id>https://simonwillison.net/2009/Dec/2/namespaces/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.cmlenz.net/archives/2009/12/namespaces"&gt;Namespaces&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Python’s approach to imports is possibly my favourite feature of the language. I love being able to scan up to the top of a file in my text editor and see exactly where every symbol comes from, no IDE required.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/christopher-lenz"&gt;christopher-lenz&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ide"&gt;ide&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/import"&gt;import&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/namespaces"&gt;namespaces&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="christopher-lenz"/><category term="ide"/><category term="import"/><category term="namespaces"/><category term="python"/></entry><entry><title>Django snippets: Command to dump data as a python script</title><link href="https://simonwillison.net/2008/Jun/24/django/#atom-tag" rel="alternate"/><published>2008-06-24T12:07:47+00:00</published><updated>2008-06-24T12:07:47+00:00</updated><id>https://simonwillison.net/2008/Jun/24/django/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.djangosnippets.org/snippets/818/"&gt;Django snippets: Command to dump data as a python script&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Extremely useful—dumps the data for an application as an executable Python script which will re-import it in to another database without any risk of colliding with existing IDs, sorting out foreign keys along the way.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/django"&gt;django&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/django-snippets"&gt;django-snippets&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/import"&gt;import&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="django"/><category term="django-snippets"/><category term="import"/><category term="python"/></entry></feed>