On 28/01/2014 4:51pm, Mark Phillips wrote:
I have a django project running on my laptop. I have (finally) managed
to get it to work with apache on a production server. However, I still
have a problem. When I access the admin site and login as the superuser,
I get "you don't have permission to do anything" message.

I don't think this is a Django problem because the superuser doesn't need any permissions. Presumably this is after a successful login - you don't quite specify this.


To migrate the database, I did a mysqldump to a file on the development
machine, then added it to the mysql server running on the production
machine. The only change was in the database name, none of the tables
changed. Is this the problem? Or, am I missing something else.

Did you also change the database name in your production settings.py?

Otherwise, I'd suspect a mismatch somewhere. For my own setups I always have the same user as the the database owner in Postgres and the superuser in Django. Dunno whether that has shielded me from this sort of problem or not.

hth

Mike


Thanks!

Mark

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAEqej2NgioCC8csFPhJonZtnHL7bzbdLMYaQtzPwCVcY_0fumQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52E7535D.7030400%40dewhirst.com.au.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to