Entries Tagged as 'Python'
I use and prefer Lighttpd for serving my Django applications. Tonight I worked out a nearly perfect configuration which allows me to serve the app through fastcgi in both http, and SSL-enabled https. The media files are directly served by Lighty, without hitting the django backend at all, for maximum speed.
Better yet, this […]
[Read more →]
Tags: Hosting · Tips · Django
I’ve been enjoying being a core developer on the Satchmo e-commerce engine built on the Django framework. Finally, we’re pushing toward our first major release, tentatively numbered 0.5.
My major contribution to this release is the payment module system. The idea is to allow for flexible development of payment modules for most any style of […]
[Read more →]
Tags: Satchmo · OS · Django
I searched all over the place last night and I couldn’t find anything that could import passwords into Yojimbo for me. I did see a lot of complaining about the lack of ability to do so, however.
Since I really like the app in most ways except for its lame import capabilities, I whipped one […]
[Read more →]
Tags: Tips · Open Source · Macintosh · Python
I have this wonderful client who hired me to build a world-class e-commerce site for him. He gave me carte blanche to use whatever framework I wished, so I chose Satchmo, an ecommerce app for Django.
This was a bit gutsy, as I don’t think there are any live Satchmo stores in the wild just […]
[Read more →]
Tags: Satchmo · Django
The latest Django revisions have removed the shortcut handlers "auto_now" and "auto_now_add". This didn’t look like a very big deal to replace.
[Read more →]
Tags: Tips · Django · Python
Whew. I spent quite a bit more time debugging this problem than it really should have taken. Django just wasn’t playing nice with the latest Lighttpd pre-release.
Long story short
Don’t use the prerelease, use the most recent 1.4.x stable. Save yourself hours of cursing and trace-debugging.
Analysis
Lighttpd had the following problems:
No request PATH_INFO. […]
[Read more →]
Tags: Django · Open Source · Python
February 16th, 2007 · 8 Comments
I keep needing to do this, darn it! I leave a project for a few months, possibly push it live, and then I go back to fire up the dev server but I simply cannot remember the password I used for admin during development.Why don’t I use my stupid-development-password? I don’t know, but this seems to happen with some regularity.Luckily, it is trivial to fix with a few lines at the python commandline.Deep:/opt/webapps/invisible bruce$ ./manage.py shell 20:49:14 DEBUG root: loaded from /Volumes/Shoebox/Users/bruce/.logging.invisible.conf20:49:14 DEBUG settings: DEVELOPMENT MODE20:49:14 DEBUG settings: DEVELOPMENT MODE2007-02-16 20:49:15,610 - root - DEBUG - loaded basic config20:49:15 DEBUG root: loaded basic configPython 2.5 (r25:51918, Sep 19 2006, 08:49:13) Type “copyright”, “credits” or “license” for more information.IPython 0.7.2 — An enhanced Interactive Python.? -> Introduction to IPython’s features.%magic -> Information about IPython’s ‘magic’ % functions.help -> Python’s own help system.object? -> Details about ‘object’. ?object also works, ??
[Read more →]
Tags: Tips · Django · Python
January 10th, 2007 · 3 Comments
I’m going to be using Satchmo to power the backend of a highly customized store that I’m building for a new client.
[Read more →]
Tags: Best Practices · Django · Open Source · Python
I really like Django’s newest module for forms, “newforms”. Despite its currently lacking documentation, it is well worth learning.It feels much more “Pythonic” than the old manipulator-based method. Less magic is going on, and less constant reference to the manual is needed.
[Read more →]
Tags: Django · Python
I’ve always disliked having to write __repr__ methods for my classes. In Django, it is especially important, since the admin pages use that method to give you Python is moderately unusual in that it allows classes to have multiple inheritance.
[Read more →]
Tags: Tips · Django · Open Source · Python