- - - - -

Django setup fixes

django mysql mysqldb fcgi

  • Please log in to reply
No replies to this topic

#1 Salain

Salain

    Tiny Orange

  • Members
  • Pip
  • 1 posts

Posted 07 August 2012 - 10:02 AM

I've been running across a few weird errors while setting up a few Django sites on shared hosting, and I wanted to start making a list of solutions to problems that I come across that aren't documented on the forum or wiki.

1) Problem: When you run
manage.py syncdb
this first time creating a superuser fails with
TypeError: decode() argument 1 must be string, not None
.
Solution: run
export LC_ALL="en_US.UTF-8"
then create the superuser using
python manage.py createsuperuser --username=YourUsername --email=youremail@yourdomain
more details can be found here https://code.djangop...om/ticket/16017

Edited by Salain, 07 August 2012 - 10:18 AM.






Also tagged with one or more of these keywords: django, mysql, mysqldb, fcgi

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users