Sorry, that code from admin.py should read:
>> from app.models import Task
>> from django.contrib import admin
>> admin.site.register(Task)
~Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
Hello folks! I'm trying to get some of my apps/models to display in
mysite:8000/admin/ and am not having any luck.
I have my app's admin.py setup like so:
>> from app.models import Task
>> from django.contrib import admin
>>
>> admin.site.register(App)
django.contrib.admin is enabled in my INSTA
> When you define an abstract model, you have to define the ``abstract''
> property inside its
> Meta.http://docs.djangoproject.com/en/1.2/ref/models/options/#abstracthttp://docs.djangoproject.com/en/1.2/topics/db/models/#abstract-base-...
>
> That way your abstract class can inherit models.Model
Hello folks,
I'm a long time Python developer that is new to Django. I have a few
questions about the role of inheritance in the models for an app.
As I build my models, I'm finding at least somewhat of a need to start
doing some inheritance, and if not a need--at least a design-related
desire t
4 matches
Mail list logo