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
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
Thanks. I saw that in the latest tutorial but I was using some old
code. I'll make the adjustments.
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
4 matches
Mail list logo