Monday, 15 March 2010

python - django framework can't see new model online -



python - django framework can't see new model online -

i have create modification website built django framework (version 1.6).

the problem having can not transfer modification made offline online server. can see new page, database has been modified, in administration website new category created not appear, can not fill fields new information.

the steps went through are:

create new model in models.py, import model in admin.py, execute command: touch wsgi.py

in order reload file.

in offline version working fine. not know do!

code added in admin.py file (i added "article" section):

from active.models import x, z, y, j, article class articleadmin(admin.modeladmin): ordering = ["title"] list_display = ('title',) search_fields = ['title'] admin.site.register(article, articleadmin)

solved.

there no problem @ all, user access administration site did not have right access see new section!

python django

No comments:

Post a Comment