Re: Why Django admin panel permissions table doesn't show any permissions to add to group?

1,065 views
Skip to first unread message

Russell Keith-Magee

unread,
Jan 19, 2013, 11:43:42 PM1/19/13
to django...@googlegroups.com

You've told us that you've "rebuilt" your Django server, but you haven't told us what you mean by that. 

*What* has happened is that your groups and permissions tables are empty. Django groups and permissions are standard Django models; Permissions are populated automatically when a model is synchronised, and groups are added manually.

However, it's impossible to say *how* this happened without knowing what your "rebuild" process was. If you've lost Groups, it means you've created a new database, but not copied over data from your old database. If you've lost Permissions, it means that syncdb hasn't been run (or run successfully) on the new database.

I hope that helps you sort out some of the mess; if you can give more details about your rebuild process, we might be able to provide more advice.

Yours,
RUss Magee %-)

On Sat, Jan 19, 2013 at 9:39 PM, John Roach <johnro...@gmail.com> wrote:

I rebuilt my Django server and now I don't have any permissions to add to groups or users. Why Django admin panel permissions table doesn't show any permissions to add to group?

The only thing that comes up is an "Enter Group Name" here textbox. And that is about it. What might be the problem?

Attached is what I get when click on create new group.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/zYiCOZimHhEJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

John Roach

unread,
Jan 20, 2013, 2:12:51 PM1/20/13
to django...@googlegroups.com
You are correct. More information is needed. For this you will need to see more of the code. Please check out https://bitbucket.org/johnroach/django-stock-project/ for this.

By saying rebuilt django server I meant deleting all tables in specified database. And re-syncdb'ed the project.

I really can't understand what the problem is. I think the problem is somehow correlated with the verbose names however I can not pin it.
The error I am getting when viewing the Groups table is :

/usr/lib/python2.7/dist-packages/django/contrib/contenttypes/models.py:142: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if not model or self.name != model._meta.verbose_name_raw:

Any help would be most appreciated.

You can find my model view from below :

 

Reply all
Reply to author
Forward
0 new messages