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


I have to make some changes to the website created with the Django Framework (version 1.6).

The problem I have is that I can not move the amendment to make offline on the online server. I can see the new page, the database has been modified, but the new category created in the administration website is not showing, thus I can not fill the fields with new information.

Create a new model in models.py,

  • Import the model into admin.py,

    / Li>

  • Execute the command: to reload the file
  • .

    Everything is working fine in the offline version. I know that to do this!

    I added the code in the admin.py file (I've added the "paragraph" section):

      active.models import from x, z, y, j, paragraph Category ArticleAdmin (admin.ModelAdmin): Order = ["title"] list_display = ('title',) search_fields = ['title'] admin.site.register (Article, article)> 
    < P>

    Resolve

    There was no problem with it, just to see the new section of the user in which I use the administrative site There is no right access!


    Comments

    Popular posts from this blog

    apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

    c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

    c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -