Найти - Пользователи
Полная версия: Проблема при запуске django-cms
Начало » Django » Проблема при запуске django-cms
1 2
Vladislav
Nik
Vladislav
1045, “Access denied for user ‘vlad’@'localhost' (using password: YES)”
Vladislav, проверяйте пароль пользователя vlad, он у вас не верный. Подключиться к базе не удалось.
Да, действительно пароль несовпадал. Спасибо, но теперь другая ошибка :( Сервер запускается, но вот когда перехожу по 127.0.0.1, то выдаёт такое:
ProgrammingError at /
(1146, "Table 'vlad.cms_title' doesn't exist")
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: ProgrammingError
Exception Value:
(1146, "Table 'vlad.cms_title' doesn't exist")
Exception Location: C:\Program Files\Python\Lib\site-packages\MySQLdb\connections.py in defaulterrorhandler, line 36
Python Executable: C:\Program Files\Python\python.exe
Python Version: 2.6.1
Python Path: ['C:\\DJCMS\\digi604-django-cms-2.0-c0288a1', 'C:\\DJCMS\\digi604-django-cms-2.0-c0288a1\\example', 'C:\\Program Files\\Python\\lib\\site-packages\\django_cms-2.0.2-py2.6.egg', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Program Files\\Python\\DLLs', 'C:\\Program Files\\Python\\lib', 'C:\\Program Files\\Python\\lib\\plat-win', 'C:\\Program Files\\Python\\lib\\lib-tk', 'C:\\Program Files\\Python', 'C:\\Program Files\\Python\\lib\\site-packages', 'C:\\Program Files\\Python\\lib\\site-packages\\PIL']
Server time: Fri, 26 Feb 2010 19:26:11 +0600
Ferroman
syncdb нормально прошёл?
Vladislav
Ferroman
syncdb нормально прошёл?
Syncdb вроде бы прошёл нормально. Хотя я не знаю что значит нормально :)
Вывел вот такое:
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.admin
> django contrib.sites
> publisher
> mptt
> reversion
> example.categories
> south
> example.sampleapp

Not synced (use migrations):
- cms.plugins.text
- cms.plugins.picture
- cms.plugins.file
- cms.plugins.flash
- cms.plugins.link
- cms.plugins.snippet
- cms.plugins.googlemap
- cms.plugins.teaser
- cms.plugins.video
- cms.plugins.twitter
- cms
Vladislav
lorien
Запустите команду ./manage.py migrate
Теперь выдаёт такое при переходе на 127.0.0.1:
OperationalError at /
(1054, "Unknown column 'cms_title.publisher_is_draft' in 'field list'")Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: OperationalError
Exception Value: (1054, "Unknown column 'cms_title.publisher_is_draft' in 'field list'")
Exception Location: C:\Program Files\Python\Lib\site-packages\MySQLdb\connections.py in defaulterrorhandler, line 36
Python Executable: C:\Program Files\Python\python.exe
Python Version: 2.6.1
Python Path: ['C:\\DJCMS\\digi604-django-cms-2.0-c0288a1', 'C:\\DJCMS\\digi604-django-cms-2.0-c0288a1\\example', 'C:\\Program Files\\Python\\lib\\site-packages\\django_cms-2.0.2-py2.6.egg', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Program Files\\Python\\DLLs', 'C:\\Program Files\\Python\\lib', 'C:\\Program Files\\Python\\lib\\plat-win', 'C:\\Program Files\\Python\\lib\\lib-tk', 'C:\\Program Files\\Python', 'C:\\Program Files\\Python\\lib\\site-packages', 'C:\\Program Files\\Python\\lib\\site-packages\\PIL']
Server time: Sun, 28 Feb 2010 23:17:52 +0600
Genadich
$ git clone git://github.com/digi604/django-cms-2.0.git
$ cd django-cms-2.0
Если для sqlite:
 DATABASE_ENGINE = 'sqlite3' 
DATABASE_NAME = 'example.db'
Закомментируй south в INSTALLED_APPS
$ touch example.db
$ python manage.py syncdb
...
Раскомментируй south
$ python manage.py syncdb
...
Миграция:
$ python manage.py migrate --fake
Запускай:
$ python manage.py runserver
Теперь на http://localhost:8000 и добавь страницы.
У меня работало нормально. (Ubuntu 9.10, python 2.6, Django 1.1.1, Django-cms 2.0, помогли решить на стаке.)
Vladislav
Genadich
$ git clone git://github.com/digi604/django-cms-2.0.git
$ cd django-cms-2.0
Если для sqlite:
 DATABASE_ENGINE = 'sqlite3' 
DATABASE_NAME = 'example.db'
Закомментируй south в INSTALLED_APPS
$ touch example.db
$ python manage.py syncdb
...
Раскомментируй south
$ python manage.py syncdb
...
Миграция:
$ python manage.py migrate --fake
Запускай:
$ python manage.py runserver
Теперь на http://localhost:8000 и добавь страницы.
У меня работало нормально. (Ubuntu 9.10, python 2.6, Django 1.1.1, Django-cms 2.0, помогли решить на стаке.)
Эх.. Всё равно выдаёт ошибку такую же…
OperationalError at /
(1054, "Unknown column 'cms_title.publisher_is_draft' in 'field list'")Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: OperationalError
Exception Value: (1054, "Unknown column 'cms_title.publisher_is_draft' in 'field list'")
Exception Location: C:\Program Files\Python\Lib\site-packages\MySQLdb\connections.py in defaulterrorhandler, line 36
Python Executable: C:\Program Files\Python\python.exe
Python Version: 2.6.1
Python Path: ['C:\\DJCMS\\digi604-django-cms-2.0-c0288a1', 'C:\\DJCMS\\digi604-django-cms-2.0-c0288a1\\example', 'C:\\Program Files\\Python\\lib\\site-packages\\django_cms-2.0.2-py2.6.egg', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Program Files\\Python\\DLLs', 'C:\\Program Files\\Python\\lib', 'C:\\Program Files\\Python\\lib\\plat-win', 'C:\\Program Files\\Python\\lib\\lib-tk', 'C:\\Program Files\\Python', 'C:\\Program Files\\Python\\lib\\site-packages', 'C:\\Program Files\\Python\\lib\\site-packages\\PIL']
Server time: Mon, 8 Mar 2010 15:15:21 +0600
Genadich
А этот самый столбец присутствует в базе?
Vladislav
Genadich
А этот самый столбец присутствует в базе?
Эм.. А как добавляется столбец к базе? :)
Ferroman
Он должен был добавится при синхронизации. Посмотрите есть ли он реально.
А вообще, я рекомендую начать всё с самого начала.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB