你好,世界 👋
- 🔭 Fullstack product designer
- 🌱 Learning more...
- ⚡️ Create something new...
A forum based on Django
I run this app in pycharm and block by error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 59: invalid start byte
then i try to add:
reload(sys)
sys.setdefaultencoding('utf8')
on the head of manage.py ,but it dosen't work ?
help?
---Detail error----
Traceback (most recent call last):
File "C:/Users/xaiolos/Desktop/pythonѧϰ/NSLoger-master/manage.py", line 24, in
execute_from_command_line(sys.argv)
File "D:\Python27\lib\site-packages\django\core\management_init_.py", line 363, in execute_from_command_line
utility.execute()
File "D:\Python27\lib\site-packages\django\core\management_init_.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\Python27\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "D:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 62, in execute
super(Command, self).execute(*args, **options)
File "D:\Python27\lib\site-packages\django\core\management\base.py", line 330, in execute
output = self.handle(*args, **options)
File "D:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 101, in handle
self.run(**options)
File "D:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 110, in run
autoreload.main(self.inner_run, None, options)
File "D:\Python27\lib\site-packages\django\utils\autoreload.py", line 341, in main
reloader(wrapped_main_func, args, kwargs)
File "D:\Python27\lib\site-packages\django\utils\autoreload.py", line 312, in python_reloader
exit_code = restart_with_reloader()
File "D:\Python27\lib\site-packages\django\utils\autoreload.py", line 294, in restart_with_reloader
str_value = force_bytes(new_environ[key], encoding=encoding)
File "D:\Python27\lib\site-packages\django\utils\encoding.py", line 124, in force_bytes
return s.decode('utf-8', errors).encode(encoding, errors)
File "D:\Python27\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 59: invalid start byte
Process finished with exit code 1
因为这个项目之前可能是为NSLoger特殊定制的,很多字符串都是写死在里面,比如注册时的邮箱,网站的名字等等,都可以见到nsloger等等字符串,如果作者本身(或者其他用户)想要自己搭另一个论坛可能就要改很多东西了。
建议给个重名名的脚本,或者是把这些公共变量提出来。
wsgiref只能用于python2,python3无法安装
大神 本地运行的代码能发一份吗 [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.