Hello,
So I don't really understand fab files.
Is the fabric.api.env.locale really something on the local machine that
I can set by hand? How do I set it to be correct? How do I find what is
correct? Should I say where I am or where the host is? Or does it just
need to match with the timezone? I asked my host about supporting utf-8
and they say they do, but I am still getting this error.
Is there something I need to modify in my settings.py file to match with
the system?
thank you,
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
On 6/20/2015 4:33 PM, Ken Bolton wrote:
Hi Brandon,
This is probably the most frequently asked question of all FAQ to this
list.
The short answer is that your locale is set up improperly. You can see
example code of how to establish your locale correctly at
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L461-L465
and
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L496-L498.
Note that the default value for env.locale at that point in the code
is "en_US.UTF-8".
hth.
-ken
On Sat, Jun 20, 2015 at 4:22 AM, Brandon Keith Biggs
<brandonkeithbi...@gmail.com <mailto:brandonkeithbi...@gmail.com>> wrote:
Hello,
Does anyone know how I would fix this error? I got it after
hitting yes on install optional pages from the python manage.py
createdb. I don't have Root access:
1: UserWarning: A file was saved that contains unicode characters
in its path, but somehow the current locale does not support
utf-8. You may need to set 'LC_ALL' to a correct value, eg:
'en_US.UTF-8'.
warn("A file was saved that contains unicode "
Traceback (most recent call last):
File "manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
__init__.py", line 399, in execute_from_command_line
utility.execute()
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
base.py", line 285, in execute
output = self.handle(*args, **options)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
base.py", line 415, in handle
return self.handle_noargs(**options)
File
"/home/brandon3/site1/lib/python2.7/site-packages/mezzanine/core/manageme
nt/commands/createdb.py", line 33, in handle_noargs
syncdb.Command().execute(**options)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
base.py", line 285, in execute
output = self.handle(*args, **options)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
base.py", line 415, in handle
return self.handle_noargs(**options)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
commands/syncdb.py", line 112, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive, db)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/core/management/
sql.py", line 216, in emit_post_sync_signal
interactive=interactive, db=db)
File
"/home/brandon3/site1/lib/python2.7/site-packages/django/dispatch/dispatc
her.py", line 185, in send
response = receiver(signal=self, sender=sender, **named)
File
"/home/brandon3/site1/lib/python2.7/site-packages/mezzanine/core/manageme
nt/__init__.py", line 68, in create_pages
install_optional_data(verbosity)
File
"/home/brandon3/site1/lib/python2.7/site-packages/mezzanine/core/manageme
nt/__init__.py", line 109, in install_optional_data
gallery.save()
File
"/home/brandon3/site1/lib/python2.7/site-packages/mezzanine/galleries/mod
els.py", line 101, in save
native(str(name, errors="ignore")))
File
"/home/brandon3/site1/lib/python2.7/site-packages/future/builtins/backpor
ts/newstr.py", line 100, in __new__
return super(newstr, cls).__new__(cls, value)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in
position 1: ordinal
not in range(128)
I'm using python 2.7. Would this get fixed with python 3? I've
tried fixing the .bashrc file, but I was not able to reload it. Is
there any way to just reinstall the sample pages?
Thanks,
--
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mezzanine-users+unsubscr...@googlegroups.com
<mailto:mezzanine-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to mezzanine-users+unsubscr...@googlegroups.com
<mailto:mezzanine-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Mezzanine
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.