While setting up a new remote server for a new Django Application I am currently working on, I encountered following error as entered yes to create superuser after I entered syncdb command for the first time.
ValueError: unknown locale: UTF-8Here is the full trace:
(django1.5)[root@DXDS2102 testdjango]# python manage.py syncdb Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django_content_type Creating table django_session Creating table django_site You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes ValueError: unknown locale: UTF-8As I had centOS server for my Django Application, I entered following commands which actually solved this problem:
export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8After running the above command I again did syncdb but Django didn't asked me about creating superuser. So for manually creating a superuser, I entered following command:
python manage.py createsuperuserThe django superuser was created without the error of "ValueError: unknown locale: UTF-8".
This ui ux online course develops practical UI designing abilities through modern user experience methodologies.
ReplyDeleteAn android online course provides flexible learning for individuals who want to build mobile applications from anywhere. It explains programming concepts, development tools, and application architecture clearly. This android online course helps learners gain practical experience through assignments and projects. Students build applications to strengthen their coding and development skills. The course prepares learners for professional Android developer roles.
ReplyDelete