Easy way to add tables to existing database?

2005-09-22 Thread jocknerd
What's the easiest way to add a table to an existing database. I'm currently destroying the database and recreating it but this will be a problem once I've got real data. I was thinking about doing this: Make the change to the model and then run django-admin.py sql myproject. I'm using PostgreS

Ordering question

2005-09-09 Thread jocknerd
I've got two classes defined. Here's the first: class School(meta.Model): long_name = meta.CharField("Official Name", maxlength=100) nickname = meta.CharField("Mascot", maxlength=50) class META: ordering = ('long_name',) admin = meta.Admin( search_fields = ['long_na

Re: I'm having trouble creating models

2005-09-08 Thread jocknerd
Thanks. I saw that in the latest tutorial but I was using some old code. I'll make the adjustments.

I'm having trouble creating models

2005-09-08 Thread jocknerd
Just updated Django to revision 632. Hadn't done anything with django in a couple of weeks. I started a new project with 'django-admin.py startproject projectname'. Added my database settings to it and ran 'django-admin.py init'. Everything working so far. Then created my app with 'django-adm