Quantcast
Channel: SaltyCrane: django
Browsing all 42 articles
Browse latest View live

My software tools list

td { vertical-align: top; }Inspired by Mark Pilgrim's 2006 Essentials list, below is a list of my current software tools. If you notice a lot of "I switched from ..." statements, keep in mind that I...

View Article



Django project #1: Install

I plan to do a side project in Django just to get some web programming experience. I'm not sure exactly what the site will be yet. Maybe my very own blog software with extensive tagging capabilities...

View Article

Django project #2: SQLite setup

In the first installment of the Sample Django Project, I installed Django and created a project. In this installment, I will set up the SQLite database. At first, I thought I had to figure out what...

View Article

Django project #3: Creating models

This section in the tutorial was actually very straightforward. Here is a record of what I did. I first created a polls app.sofeng@tortoise:~/Web/mysite$ python manage.py startapp polls...

View Article

Recommended books

I love having a subscription to Safari Books Online. Currently my company provides a free subscription, but if I get a new job, I might consider subscribing myself. Since I get to browse a number of...

View Article


Image may be NSFW.
Clik here to view.

Django Blog Project #1: Creating a basic blog

It's been a while since my last post on Django. I became very busy but also found theDjango tutorial to be somewhat dryand also somewhat lazy*. Luckily, the officialDjango Book was published during...

View Article

Django Blog Project #2: Django Webfaction deployment

I mentioned in my previous Django post that I'd write about hosting my new Django blog site on Webfaction. As promised, here it is.I had some problems deploying my first site at Webfaction. First I got...

View Article

Image may be NSFW.
Clik here to view.

Django Blog project #3: Using CSS and Template Inheritance

Version 0.0.1 of my new blog had no style. For 0.0.2, I added a little CSS to my Django template to make it look a little better.Create new Django templatesI created two new Django templates, base.html...

View Article


Image may be NSFW.
Clik here to view.

Django Blog Project #4: Adding post metadata

I've created a basic blog using SQLite as a backend, deployed it at a shared hosting provider, Webfaction, and added a little CSS for style. Now what? Well, while I say I've created a basic blog, I...

View Article


Image may be NSFW.
Clik here to view.

Django Blog Project #5: YUI CSS and serving static media

I wrote about adding some CSS to my new blog in my post #3. However, I got the CSS layout code from a book that was a couple of years old (CSS Cookbook, 2006). I created a 2 column fixed width layout,...

View Article

Image may be NSFW.
Clik here to view.

Django Blog Project #6: Creating standard blog views

My last django post actually got a little bit of publicity-- a mention onPython reddit, and a mention in theYahoo User Interface blogIn the Wild for June 20 article. So I feel a little pressure to...

View Article

Image may be NSFW.
Clik here to view.

Django Blog Project #7: Adding a simple Atom feed

Setting up a basic Atom feed for my new blog was not too difficult. I followed the instructions in the Django documentation and created a basic Atom feed for my 10 latest posts. There were a couple of...

View Article

Image may be NSFW.
Clik here to view.

Django Blog Project #8: Adding basic comment functionality with Django Free...

Update 2009-05-08: The notes here apply to Django 0.96 and not Django 1.0 or later. In particular, FreeComment has been changed to Comment in Django 1.0. For current documentation, please go here...

View Article


Image may be NSFW.
Clik here to view.

Django Blog Project #9: Migrating Blogger posts with Beautiful Soup

Last post, I talked about adding comments to my new sample blog application. This was about the last basic feature I needed to add before I started actually using it for real. Of course there are still...

View Article

How to set up Django with MySql on Ubuntu Hardy

Here are my notes on installing Django with MySql. Almost all of this was taken from Zeth's article: Baby Steps with Django - part 2 database setup.Install Django and MySqlNote: during the installation...

View Article


Image may be NSFW.
Clik here to view.

Django Blog Project #10: Adding support for multiple authors

Here is a quick post on how I added support for multiple users on my blog.Modfiy the model Excerpt from ~/src/django/myblogsite/myblogapp/models.py:import re from django.db import modelsfrom...

View Article

Django Blog Project #11: Migrating from Django 0.96 to SVN Trunk

I've been using the Django 0.96 release for this blog, but I've been thinking about switching to the SVN trunk version since it is recommended by the Django community. Django 1.0 alpha was released a...

View Article


Django Blog Project #12: Adding Pygments syntax highlighting

I've finally added automatic code highlighting to my blog. It uses Pygments to do the syntax highlighting and Beautiful Soup to find all the <pre> blocks to highlight. I still write my blog posts...

View Article

Notes on Django and MySql on Amazon's EC2

Install ElasticfoxInstall the Elasticfox Firefox Extension for Amazon EC2: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609Set up Amazon EC2 accounts and ElasticfoxFollow...

View Article

Django Blog Project #13: Updating Django 1.0 Beta 2 New Comments and Adding...

I've updated to Django 1.0 Beta 2. One of the big items for this release was the new commenting framework. I had been waiting for this, so I was excited to see it was finally done.I also added support...

View Article
Browsing all 42 articles
Browse latest View live


Latest Images