ComPerformance icon indicating copy to clipboard operation
ComPerformance copied to clipboard

霸主还在么?

Open dhgrz opened this issue 10 years ago • 5 comments

我很想知道怎么能跑得起来。。。

dhgrz avatar Dec 29 '15 12:12 dhgrz

Django==1.3.1 django-grappelli==2.2 MySQL-python==1.2.5 Pillow==3.0.0 South==1.0.2 xlrd==0.9.4 在python2.7.6上,添加以上包可以跑起来,验证码还是无法显示,但是这项目验证码通过手动输入一个字符如数字,当不再提示验证码错误时,就可以进入主页;建议在虚环境下安装这些包

kdszyubin avatar Jan 01 '16 09:01 kdszyubin

必须是python 2.7.6版本上? 提示连接不上数据库,settings我设置过了的,用户名和密码都改了,请问大大能看出有什么问题么?谢谢了

dhgrz avatar Jan 18 '16 13:01 dhgrz

是和python 2.7.10 版本有关?

dhgrz avatar Jan 18 '16 13:01 dhgrz

回复一次不易,还是多数点吧

(venv) C:\Users\QYT\venv\ComPerformance\webadmin>python manage.py runserver Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <dja ngo.contrib.staticfiles.management.commands.runserver.Command object at 0x02064F B0>> Traceback (most recent call last): File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\core\m anagement\commands\runserver.py", line 88, in inner_run self.validate(display_num_errors=True) File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\core\m anagement\base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\core\m anagement\validation.py", line 102, in get_validation_errors connection.validation.validate_field(e, opts, f) File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\db\bac kends\mysql\validation.py", line 14, in validate_field db_version = self.connection.get_server_version() File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\db\bac kends\mysql\base.py", line 338, in get_server_version self.cursor() File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\db\bac kends__init__.py", line 250, in cursor cursor = self.make_debug_cursor(self._cursor()) File "C:\Users\QYT\venv\lib\site-packages\django-1.3.1-py2.7.egg\django\db\bac kends\mysql\base.py", line 322, in cursor self.connection = Database.connect(**kwargs) File "c:\users\qyt\appdata\local\temp\easy_install-cz4h9\MySQL_python-1.2.5-p y2.7-win32.egg.tmp\MySQLdb__init.py", line 81, in Connect

File "c:\users\qyt\appdata\local\temp\easy_install-_cz4h9\MySQL_python-1.2.5-p y2.7-win32.egg.tmp\MySQLdb\connections.py", line 193, in init _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'lo calhost' (10061)")

dhgrz avatar Jan 18 '16 13:01 dhgrz