<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Evangelizer's blog - Python</title>
    <link>http://vangel.3ezy.com/</link>
    <description>tech stuff and scratch pad</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.3 - http://www.s9y.org/</generator>
    <pubDate>Sun, 17 Jul 2011 12:47:17 GMT</pubDate>

    <image>
        <url>http://vangel.3ezy.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Evangelizer's blog - Python - tech stuff and scratch pad</title>
        <link>http://vangel.3ezy.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>CherryPy 3.2 is broken. damn</title>
    <link>http://vangel.3ezy.com/archives/116-CherryPy-3.2-is-broken.-damn.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/116-CherryPy-3.2-is-broken.-damn.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=116</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=116</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    sooo dum dee dum I head over to cherrypy download page and download the latest version which happens to be 3.2.1 as of now.&lt;br /&gt;
&lt;br /&gt;
so like a kid opening his christmas gift I untar the archive and run&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
python setup.py install&lt;br /&gt;
  File &quot;setup.py&quot;, line 25&lt;br /&gt;
    &#039;wsgiserver2|ssl_pyopenssl&#039; if python3 else &#039;wsgiserver3&#039;&lt;br /&gt;
                                 ^&lt;br /&gt;
SyntaxError: invalid syntax&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I think cherrypy is dead. to pack a failure like this is pretty bad.&lt;br /&gt;
&lt;br /&gt;
I try to download 3.2.0rc2 ... oh empty directory&lt;br /&gt;
&lt;br /&gt;
ok lets try 3.2.0rc1 ... found something.... download&lt;br /&gt;
&lt;br /&gt;
untar&lt;br /&gt;
&lt;br /&gt;
python setup.py install&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
tada! it works...&lt;br /&gt;
but frankly this isnt getting cherrypy any points for uploading a broken package 9completely uninstallable) into their repo as so called stable fracking release. @the Devs of Cherrypy, when toasters show up at your doorstep you will remember this.&lt;br /&gt;
&lt;br /&gt;
end of rant T_T 
    </content:encoded>

    <pubDate>Sun, 17 Jul 2011 05:47:17 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/116-guid.html</guid>
    
</item>
<item>
    <title>a new contender appears... Pylons I choose you. Pylons vs Django</title>
    <link>http://vangel.3ezy.com/archives/108-a-new-contender-appears...-Pylons-I-choose-you.-Pylons-vs-Django.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/108-a-new-contender-appears...-Pylons-I-choose-you.-Pylons-vs-Django.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=108</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=108</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    Today I really want to fight.&lt;br /&gt;
&lt;br /&gt;
I love django. But love is like that... fleeting. The stability and reliability of django is undeniable. So anyway why I think of pylons.&lt;br /&gt;
&lt;br /&gt;
Pylons is developing very fast. That may be good or bad. The first Problem I encountered with django recently was lack of common interface to NoSQL. There is work under development but nothing concrete. There is talk of Alchemy but nothing concrete and usable. Pylons on the other hand simply loves to merge with anyone and create off springs. Damn iRobots.&lt;br /&gt;
&lt;br /&gt;
If you visit &lt;a href=&quot;http://pylonshq.com/&quot; title=&quot;Pylons&quot;&gt;http://pylonshq.com/&lt;/a&gt; you will see that it does claim support for NoSQL and SQLAlchemy. Catch.com is known to use pylons and MongoDB so there is production stuff..&lt;br /&gt;
&lt;br /&gt;
When using PHP I used to be scared of how to start a project like Advertising Marketplace. Yes its been done like Adbrite.com but looking at OpenX it just doesn&#039;t look like something I would wanna do. To me OpenX has fail written all over it.&lt;br /&gt;
&lt;br /&gt;
With django I just want to get started. I know it will be a breeze. Except I hate MySQL or SQL in general when it comes to interwebs. My experience with running the massive GoNZB.com usenet search engine reminds me how painful it was. Which is why Pylons comes into the scene and with &lt;a href=&quot;https://github.com/FormAlchemy&quot; title=&quot;Form Alchemy&quot;&gt;Form Alchemy&lt;/a&gt; it hard to not think of Pylons.&lt;br /&gt;
&lt;br /&gt;
There is a good starting point for everyone at Pylons just like Django. http://www.pylonscasts.com/ shows screencast. or it must. But sadly right now its always offline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We shall see if I make somehting in Pylons. Right now I am hard at work with a django based enterprise solution plus my very boring ITILv3 certification which promises a job of 33,000 US$ per annum. Singapore I choose you.... I fail.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 02 Apr 2011 19:47:06 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/108-guid.html</guid>
    
</item>
<item>
    <title>django iphone and python iphone related projects</title>
    <link>http://vangel.3ezy.com/archives/106-django-iphone-and-python-iphone-related-projects.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/106-django-iphone-and-python-iphone-related-projects.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=106</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=106</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    There are some good examples, snippets and projects now in development for mobile environments like iPhone and Android. I am not speaking of application development per se, which is limited to platform-only programming. In my one sided opinion, no phone is so great as to ask for its own development environment, language and platform. We based apps is the way to go. This is my compilation of django or python related iphone stuff. Ill post android stuff later.&lt;br /&gt;
&lt;br /&gt;
A nifty iphone push notification system with source code and some documentation&lt;br /&gt;
&lt;a href=&quot;http://leepa.github.com/django-iphone-push/&quot;&gt;http://leepa.github.com/django-iphone-push/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
A mobile admin interface for django (this is great I think my future/existing clients will love this. too bad my company works with Symfony blah blah)&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/django-mobileadmin/&quot;&gt;http://code.google.com/p/django-mobileadmin/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
comment: the docs are weirdly located at http://api.rst2a.com/1.0/rst2/html?uri=http%3A//django-mobileadmin.googlecode.com/svn/trunk/docs/overview.rst&amp;style=revver-dev someone should download and pdf this before its gone.&lt;br /&gt;
 Drawback is they use google code hosting (lol?) but realizing their mistake here&#039;s teh github mirror&lt;br /&gt;
&lt;a href=&quot;https://github.com/jezdez/django-mobileadmin&quot;&gt;https://github.com/jezdez/django-mobileadmin&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
How to switch template when iPhone is detected an example&lt;br /&gt;
&lt;a href=&quot;http://djangosnippets.org/snippets/2035/&quot;&gt;http://djangosnippets.org/snippets/2035/&lt;/a&gt;&lt;br /&gt;
Some more ideas on templating for iPhone using a mini_render_to_response&lt;br /&gt;
&lt;a href=&quot;http://menendez.com/blog/easily-code-iphone-templates-django/&quot;&gt;http://menendez.com/blog/easily-code-iphone-templates-django/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
comments: I would double check if the user agent string is correct and what about iPads? nvm them they are a nuisance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
then there are &lt;a href=&quot;http://www.agmweb.ca/blog/andy/2231&quot;&gt;idiots who just waste time, stealing docs&lt;/a&gt; and making it into iphone app. i am telling ya this iphone thing is getting crazier than it should. it might head the iDotComBust way&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[and then we found Kyle!...] iPhone Web service with Django&lt;br /&gt;
&lt;a href=&quot;http://justinvoss.wordpress.com/2010/09/03/creating-a-simple-iphone-web-service-in-django/&quot;&gt;http://justinvoss.wordpress.com/2010/09/03/creating-a-simple-iphone-web-service-in-django/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
haven&#039;t covered python as it requires filtering through lot of crap and ghost projects which have no code.&lt;br /&gt;
EDIT: oh there if ofcourse &lt;br /&gt;
&lt;a href=&quot;http://pyobjc.sourceforge.net/documentation/index.html&quot; title=&quot;PyObjC&quot;&gt;http://pyobjc.sourceforge.net/documentation/index.html pyObjectiveC. &lt;/a&gt;&lt;br /&gt;
This might come in handy for those&lt;br /&gt;
who prefer python. If you have used Pyrex then I suppose this should be easy for you to pick up. I have not even started on that stuff yet.&lt;br /&gt;
&lt;br /&gt;
if anyone happens to visit this page out of traggazillions of interwebs you are fated to be here. share what you know before you leave. xD. thanks, 
    </content:encoded>

    <pubDate>Tue, 15 Mar 2011 13:02:59 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/106-guid.html</guid>
    
</item>
<item>
    <title>Python 2.4 2.5 2.6 and 2.7 Windows MySQLdb python installation</title>
    <link>http://vangel.3ezy.com/archives/101-Python-2.4-2.5-2.6-and-2.7-Windows-MySQLdb-python-installation.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/101-Python-2.4-2.5-2.6-and-2.7-Windows-MySQLdb-python-installation.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=101</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=101</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    Let us save time on this very annoying mysqldb install for python. Its not working for me on Windows, Centos or anywhere. I need to get work done and googling around isn&#039;t helping much. I would rather just install it however and as long as it works we can get along..&lt;br /&gt;
&lt;br /&gt;
So reminder to me for next time:&lt;br /&gt;
You can&#039;t install eggs and sources for any library from Python packages GO HERE&lt;br /&gt;
&lt;a href=&quot;http://www.lfd.uci.edu/~gohlke/pythonlibs/&quot; title=&quot;Python Windows Libraries precompiled&quot;&gt;http://www.lfd.uci.edu/~gohlke/pythonlibs/&lt;/a&gt; Installer.&lt;br /&gt;
&lt;br /&gt;
Because googling will not help you find this link thanks to spam and &quot;SEO&quot; &lt; &lt; This is the place with other libraries as well so might come in handy if I get stuck again. There are some sites who copied from here and started to promote it etc. talk about a-holes.&lt;br /&gt;
&lt;br /&gt;
back to practicals: In the link above simply search the page for MySQL-Python which is the official package name. Then find the right file by looking for python version (only difference is for amd64 but since thats a dead thing we can ignore those). I have used the mysqldb-python win32 for python 2.6 and python 2.7 on Vista and Windows 7 respectively without issues. for example the package name &lt;strong&gt;MySQL-python-1.2.3.win32-py2.6.‌exe&lt;/strong&gt; means its MySQL-Python version 1.2.3 for ANY windows platform with python 2.6. Look for similar package. &lt;br /&gt;
&lt;br /&gt;
I thank the maintainer and I hope he/she continues the good work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
p.s. I hate those [specially american] blogs that talk so much story and cock-a-dooodle instead of getting to the point. As soon as I read &quot;I was eating my ... &quot; when searching for mysqldb compile errors I know its a f*gg*ts blog.  
    </content:encoded>

    <pubDate>Thu, 24 Feb 2011 10:21:11 -0800</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/101-guid.html</guid>
    
</item>
<item>
    <title>how to structure your django project</title>
    <link>http://vangel.3ezy.com/archives/97-how-to-structure-your-django-project.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/97-how-to-structure-your-django-project.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=97</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=97</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    This is something I think about everytime I make a new django project. Instinctively it appears I do the right thing or maybe its just how django makes you think.&lt;br /&gt;
&lt;br /&gt;
In essense you would want to create an app &quot;creatapp&quot; and think of it as module with the project.&lt;br /&gt;
For example I have category and subcategory for posts so I put them all in &quot;Posts&quot; app and in the same Model.py file.&lt;br /&gt;
&lt;br /&gt;
But I may have categories in another app. Theoretically this is not a problem for django because you using a different app and there should be no conflict.&lt;br /&gt;
the problem for me personally is representation when I am coding or looking at DB. django does make tables list posts_category which helps. However I still want to be clear and avoid any confusion when using both Post and XX Categories in a 3rd app. To disambiguate I do this&lt;br /&gt;
&lt;br /&gt;
MyProject/&lt;br /&gt;
- Posts/&lt;br /&gt;
--       models.py&lt;br /&gt;
- App2/&lt;br /&gt;
--       models.py&lt;br /&gt;
&lt;br /&gt;
In Posts/ models.py I will have my classes named as follows&lt;br /&gt;
&lt;br /&gt;
class PostCategory(...)&lt;br /&gt;
class PostSubcategory(...)&lt;br /&gt;
class Post(...)&lt;br /&gt;
&lt;br /&gt;
I have noticed that I sometimes confuse myself and try to make too many Apps in the project thinking of every model as an app. Well I solve this problem using a mindmap. If you are making a vertical into any portion of your project then &quot;its a App!&quot; (&lt;a href=&quot;http://cheezcomixed.files.wordpress.com/2010/04/129156868935063852.jpg&quot; title=&quot;Admiral ackbar  memes&quot;&gt;reference to memebase&lt;/a&gt;). End of the day there is no right or wrong way, its entirely up to the dev. there are suggested methods based on experience. How you pack your bag is entirely up to you as long as you got everything you need in the bag.&lt;br /&gt;
&lt;br /&gt;
In conclusion.&lt;br /&gt;
So each time you begin the quest, take note of the scrolls. its better not to carry too many scrolls but you don&#039;t want one scroll to be too fat. This will help you greatly if you have to face that french castle again. It will be easier to run if things go &quot;south&quot;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 06 Feb 2011 22:46:43 -0800</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/97-guid.html</guid>
    
</item>
<item>
    <title>django from decorator import decorator ImportError: No module named decorator</title>
    <link>http://vangel.3ezy.com/archives/95-django-from-decorator-import-decorator-ImportError-No-module-named-decorator.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/95-django-from-decorator-import-decorator-ImportError-No-module-named-decorator.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=95</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=95</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    I ran into this problem and luckily i found out why.&lt;br /&gt;
&lt;br /&gt;
the decorator needs to be installed to your site-packages using &quot;python setup.py&quot; install method.&lt;br /&gt;
&lt;br /&gt;
you can download the latest decorator package here http://pypi.python.org/simple/decorator/&lt;br /&gt;
&lt;br /&gt;
off-topic&lt;br /&gt;
I am making too many django posts haha.I am considering making a new category for it under python. But then again its only a matter of time things get our of hand with twisted, cherrypy etc etc. 
    </content:encoded>

    <pubDate>Sun, 23 Jan 2011 03:25:53 -0800</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/95-guid.html</guid>
    
</item>
<item>
    <title>Python Django South Eclipse Pydev PostgreSQL</title>
    <link>http://vangel.3ezy.com/archives/92-Python-Django-South-Eclipse-Pydev-PostgreSQL.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/92-Python-Django-South-Eclipse-Pydev-PostgreSQL.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=92</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=92</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    After having installed eclipse + python +pydev + django + postgres + django-south (migrations) on windows laptop ages ago I forgot to write it down. It required some serious googling for a whoel night but I did not get any problems, it was all one go. That windows laptop crashed on itself with disk failure (doh) . Now I couldn&#039;t recall how I did install the environment before  but I managed to do it again but not as well as last time. Its ofcourse usable but that really was the perfect install with Eclipse showing me django or python shell right inside the IDE, ability to runserver within eclipse etc. (dos prompt sucks) However I still got most of the things working again on my new laptop. Unfortunately I installed Aptana version of eclipse which I think is not right for Pydev + django.  that is the only difference from my previous Eclipse 3 vanilla install.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://vangel.3ezy.com/archives/92-Python-Django-South-Eclipse-Pydev-PostgreSQL.html#extended&quot;&gt;Continue reading &quot;Python Django South Eclipse Pydev PostgreSQL&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 25 Dec 2010 15:56:19 -0800</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/92-guid.html</guid>
    
</item>
<item>
    <title>setting up django development environment (python+django+pydev+svn) on windows XP/Vista</title>
    <link>http://vangel.3ezy.com/archives/75-setting-up-django-development-environment-python+django+pydev+svn-on-windows-XPVista.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/75-setting-up-django-development-environment-python+django+pydev+svn-on-windows-XPVista.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=75</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=75</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    Ok this is a note to myself, since I have to do this at least a few times. It may seem I am talking to myself because I am.&lt;br /&gt;
&lt;br /&gt;
Objective : To install a complete dev environment of Python + Django + IDE on Windows XP or Vista. I say Vista because I have done it on Vista and the steps are same. It might even work on Windows 7.&lt;br /&gt;
&lt;br /&gt;
foreword: While django tutorial and instructions are great. this is much concise and includes stuff like setting up pydev (eclipse IDE + python development).&lt;br /&gt;
&lt;br /&gt;
1. First and foremost install Python 2.x (note dont install 3.x as its not compatible with Django)&lt;br /&gt;
We dont need Active Python blah blah. Just the http://Python.org .msi file listed which is the installer.&lt;br /&gt;
then do the OS environment settings using my own tip at http://vangel.3ezy.com/archives/72-Python-on-Windows-XpVista-or-Windows-7-setting-python-path.html . in short we just need to add the path to the python executable under the system environment variables in %PATH%.&lt;br /&gt;
&lt;br /&gt;
2. Install Subversion for Windows most likely Tortoise SVN if I haven&#039;t already. Then check out the Django SVN copy from the svn url listed at http://docs.djangoproject.com/en/1.2/topics/install/#installing-development-version in directory of your choice. doesnt have to be relalted to wherever we installed python since we already setup the %PATH% variable.&lt;br /&gt;
&lt;br /&gt;
3. Install django with a simple command &lt;br /&gt;
CD into the django directory (this the only time we&#039;ll even need to be in this directory.)&lt;br /&gt;
&lt;blockquote&gt;&gt;setup.py install&lt;/blockquote&gt; &lt;br /&gt;
note: you should not need to enter &lt;strong&gt;python setup.py...&lt;/strong&gt; if you setup the %PATH% and installed the python correctly. now if &lt;a href=&quot;http://vangel.3ezy.com/archives/71-Django-error-if-uSVN-in-version-in-setup.py-line-70.html&quot; title=&quot;common django install errors&quot;&gt;no errors happened&lt;/a&gt; we see a bunch of files being listed as being copied and stuff. blah blah will finish. and back to command prompt. Note: on vista, we MAY need administrator privileges to do all these steps and in future. Easiest shortcut way is to get &lt;em&gt;Alleviated Command Prompt&lt;/em&gt;. To do that Click Run &gt; type &quot;cmd&quot; and press ctrl+shit+enter. then do everything.&lt;br /&gt;
&lt;br /&gt;
4. Database: Now django is installed and ready we need database. I skip database for now because in latest python 2.5+ and django we already have SQLite3 included. This is good enough for you to start development or learning. So proceeding&lt;br /&gt;
&lt;br /&gt;
5. Site-packages. Often you will see django refer to site-packages and most of the documentation is easier for linux/unix users to follow. so where is this site packages. its where we installed Python not django. in the sub directory for e.g. c:\python\Lib\site-packages\ there is another similar directory C:\python\libs , nothing to do with django or site-packages, which I click accidentally almost every time. arg! So if you see a Django folder in site-packages then django installed correctly. Do a quick test by doing this in command prompt.&lt;br /&gt;
In command prompt&lt;br /&gt;
&gt;python &lt;br /&gt;
&gt;&gt; import django # we are in python shell&lt;br /&gt;
If we see no messages that means our django is ready. Else we&#039;ll see errors. go jfgi.&lt;br /&gt;
&lt;br /&gt;
all ok?&lt;br /&gt;
Moving on. &lt;br /&gt;
&lt;br /&gt;
6. Time to test by starting the django server.&lt;br /&gt;
Goto the page at django tutorial http://docs.djangoproject.com/en/1.2/intro/tutorial01/#intro-tutorial01&lt;br /&gt;
to setup and empty project.  or you can follow below replacing the example with your own correct paths. The gist is this. &lt;br /&gt;
&lt;br /&gt;
we cd into any directory (not python or django) say I use C:\temp&lt;br /&gt;
Here I enter the full path to django-admin.py installation (remember the site packages?) so i can setup a test project something like this&lt;br /&gt;
C:\temp&gt;c:\python\Lib\site-packages\django\bin\&lt;strong&gt;django-admin.py startproject&lt;/strong&gt; mytestsite&lt;br /&gt;
&lt;br /&gt;
afer we run it we&#039;ll be back to prompt with no messages which &quot;should indicate success&quot;. The problem is if you use the wrong django-admin.py from say the django svn directory etc to somehow run it we wont get any error. It will still run and do the job but it will seriously difficult later to figure out what you did wrong. So make sure the path of django-admin.py is &lt;strong&gt;site-packages&lt;/strong&gt;. We can ofcourse create project files anywhere on the system. So now we see if we can start out django web server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. the web server: CD into the new project directory we just created. It has all the necessary files in it.&lt;br /&gt;
do the command &lt;br /&gt;
&gt;cd mytestsite&lt;br /&gt;
..\mytestsite&gt;python manage.py runserver&lt;br /&gt;
&lt;br /&gt;
the server will start and display something like &lt;br /&gt;
&lt;strong&gt;Development server is running at&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
there will be no command prompt but dont close the wondow or the web server will switch off. Leave the CMD window as is and in your favorite browser go the url as displayed in the line above at the end . e.g. http://127.0.0.1:8080/&lt;br /&gt;
&lt;br /&gt;
the webpage that opens will declare your success or failure in the quest. No webpage? go over the steps above again and read further into the details of every step at http://djangoproject.com&lt;br /&gt;
&lt;br /&gt;
We continue with the quest to setup our IDE with&lt;a href=&quot;http://pydev.org/&quot; title=&quot;pydev djang integrated developer eclipse extension&quot;&gt; pydev&lt;/a&gt; in next article. 
    </content:encoded>

    <pubDate>Sun, 23 May 2010 15:15:08 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/75-guid.html</guid>
    
</item>
<item>
    <title>Python on Windows Xp/Vista or Windows 7 setting python path</title>
    <link>http://vangel.3ezy.com/archives/72-Python-on-Windows-XpVista-or-Windows-7-setting-python-path.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/72-Python-on-Windows-XpVista-or-Windows-7-setting-python-path.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=72</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=72</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    Isnt it cool that on posix systems things are just ready for you &lt;img src=&quot;http://vangel.3ezy.com/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;. I mean typing python immeditaely brings up Python interpreter. Not so in windows.&lt;br /&gt;
&lt;br /&gt;
After installing Python and your favorite framework you will realize that typing Python in the command prompt does nothing. Because you need one more additional step in order to fulfill your destiny.&lt;br /&gt;
&lt;br /&gt;
Follow the instruction here &lt;a href=&quot;http://docs.python.org/using/windows.html&quot; title=&quot;windows python setting environment variable for path&quot;&gt;http://docs.python.org/using/windows.html&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Specifically the PATH Variable worked for me in Vista under System instead of the User account. well so be it.  
    </content:encoded>

    <pubDate>Tue, 18 May 2010 12:22:25 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/72-guid.html</guid>
    
</item>
<item>
    <title>Django error - if u'SVN' in version:  in setup.py line 70</title>
    <link>http://vangel.3ezy.com/archives/71-Django-error-if-uSVN-in-version-in-setup.py-line-70.html</link>
            <category>Python</category>
    
    <comments>http://vangel.3ezy.com/archives/71-Django-error-if-uSVN-in-version-in-setup.py-line-70.html#comments</comments>
    <wfw:comment>http://vangel.3ezy.com/wfwcomment.php?cid=71</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://vangel.3ezy.com/rss.php?version=2.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    

    <author>nospam@example.com (Vangel)</author>
    <content:encoded>
    If you encounter this error when using Django for the first time&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
Django error - if u&#039;SVN&#039; in version:  in setup.py line 70&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Django supports Python version 2.3 to 2.6, easily overlooked if you downloaded the default installer for your O.S. which comes with Python 3.1 +. &lt;br /&gt;
Installing the correct version i.e. Python 2.5 or 2.6 fixes the problem. In most cases you can leave 3.1 alone as well no need to uninstall. But if you arent gonna use it might as well remove it &lt;img src=&quot;http://vangel.3ezy.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Tue, 18 May 2010 12:04:50 -0700</pubDate>
    <guid isPermaLink="false">http://vangel.3ezy.com/archives/71-guid.html</guid>
    
</item>

</channel>
</rss>
