Tag Archives: django

Short Django Tutorial Notes

Some condensed notes on the Django tutorial (Django 1.3) This is just a short self-reference (or maybe a 2-minute overview), not an actual tutorial. Database Create / update database python manage.py syncdb Models Models define how data is stored. Create a model by inheriting from django.db.models.Model from django.db import models   class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes … Continue reading

Posted in <code> | Tagged , , , | 1 Comment

Installing Mezzanine (Django based CMS) on Dreamhost via virtualenv

Here’s some notes for installing Mezzanine on Dreamhost using virtualenv. This can be useful for installing on any server where you don’t have permissions to install python packages normally. There’s also notes here for how to set up Passenger to serve your site via Apache. In Dreamhost panel, setup site for use with Passenger & ssh Ssh into your Dreamhost … Continue reading

Posted in <code> | Tagged , , , , , , , , , , , | 3 Comments
<RSS Feed>