Найти - Пользователи
Полная версия: запуск django аплікації
Начало » Django » запуск django аплікації
1
crchemist
пробував запустити http://byteflow.su/wiki . І видає помилку
[crchemist@test byteflow-blog]$ python manage.py runserver 8080
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/management/__init__.py", line 301, in execute_manager
utility.execute()
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/management/__init__.py", line 248, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/management/base.py", line 77, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/management/base.py", line 86, in execute
translation.activate('en-us')
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/utils/translation/__init__.py", line 73, in activate
return real_activate(language)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/utils/translation/__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 220, in activate
_active[currentThread()] = translation(language)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 209, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 194, in _fetch
app = __import__(appname, {}, {}, [])
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/pingback/__init__.py", line 8, in <module>
from django.contrib.sites.models import Site
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sites/models.py", line 1, in <module>
from django.db import models
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/__init__.py", line 22, in <module>
backend = __import__('%s.base' % settings.DATABASE_ENGINE, {}, {}, [''])
ImportError: No module named base
DATABASE_ENGINE = 'sqlite3'
Вибачаюсь за тупе питання - з django ніколи справи не мав. Бачу що хоче імпортнути sqlite3.base але sqlite3 і справді такого модуля немає
j2a
Какая версия django
crchemist
>>> django.get_version()
u'0.97-pre-SVN-unknown'
crchemist
зробив svn up і запрацювало
[crchemist@test byteflow-blog]$ python
Python 2.5.2 (r252:60911, Jul 5 2008, 03:54:54)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()
u'1.0-final-SVN-unknown'
>>>
[crchemist@test byteflow-blog]$ python manage.py runserver
Validating models...
0 errors found

Django version 1.0-final-SVN-unknown, using settings 'byteflow-blog.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
але на http://127.0.0.1:8000/ видає
Traceback (most recent call last):

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 277, in run
self.result = application(self.environ, self.start_response)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 634, in __call__
return self.application(environ, start_response)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 243, in __call__
response = middleware_method(request, response)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sessions/middleware.py", line 33, in process_response
request.session.save()

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sessions/backends/db.py", line 52, in save
session_key = self.session_key,

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sessions/backends/base.py", line 152, in _get_session_key
self._session_key = self._get_new_session_key()

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sessions/backends/base.py", line 144, in _get_new_session_key
if not self.exists(session_key):

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/contrib/sessions/backends/db.py", line 25, in exists
Session.objects.get(session_key=session_key)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 93, in get
return self.get_query_set().get(*args, **kwargs)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 298, in get
num = len(clone)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 154, in __len__
self._result_cache = list(self.iterator())

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 269, in iterator
for row in self.query.results_iter():

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/sql/query.py", line 206, in results_iter
for rows in self.execute_sql(MULTI):

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/sql/query.py", line 1700, in execute_sql
cursor.execute(sql, params)

File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py", line 167, in execute
return Database.Cursor.execute(self, query, params)

OperationalError: no such table: django_session
і ще таке видає
[crchemist@test byteflow-blog]$ ./runtests.py
======================================================================
ERROR: testEmailChange (accounts.tests.EmailChangeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 44, in testEmailChange
response = self.client.post(reverse('profile_edit'), {'email': self.new_email})
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/lib/helpers.py", line 14, in reverse
return _reverse(view_name, args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 226, in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(), ()])
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 160, in _get_reverse_dict
for name, (matches, pat) in pattern.reverse_dict.iteritems():
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 153, in _get_reverse_dict
if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 197, in _get_urlconf_module
self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/openidserver/urls.py", line 3, in <module>
from openidserver import views
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/openidserver/views.py", line 12, in <module>
from openid.server import server
ImportError: No module named openid.server

======================================================================
ERROR: testActivation (accounts.tests.RegistrationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 13, in setUp
self.user = ActionRecord.registrations.create_inactive_user(name=self.name, email=self.email, password=self.name)
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/managers.py", line 87, in create_inactive_user
message = message_template.render(message_context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/test/utils.py", line 15, in instrumented_test_render
return self.nodelist.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'byteflow-blog.account_activate' with arguments '('a668fd1056dd599de3fd60c1f665d96ff8a8f61a',)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 241, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'byteflow-blog.account_activate' with arguments '('a668fd1056dd599de3fd60c1f665d96ff8a8f61a',)' and keyword arguments '{}' not found.


======================================================================
ERROR: testContentValid (accounts.tests.RegistrationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 13, in setUp
self.user = ActionRecord.registrations.create_inactive_user(name=self.name, email=self.email, password=self.name)
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/managers.py", line 87, in create_inactive_user
message = message_template.render(message_context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/test/utils.py", line 15, in instrumented_test_render
return self.nodelist.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'byteflow-blog.account_activate' with arguments '('c2498da639bb976ece7f3f64c79769d1b0c12f1b',)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 241, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'byteflow-blog.account_activate' with arguments '('c2498da639bb976ece7f3f64c79769d1b0c12f1b',)' and keyword arguments '{}' not found.


======================================================================
ERROR: testMailExist (accounts.tests.RegistrationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 13, in setUp
self.user = ActionRecord.registrations.create_inactive_user(name=self.name, email=self.email, password=self.name)
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/managers.py", line 87, in create_inactive_user
message = message_template.render(message_context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/test/utils.py", line 15, in instrumented_test_render
return self.nodelist.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'byteflow-blog.account_activate' with arguments '('d7bf312135b03fec8065766fd06710acdc83b589',)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 241, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'byteflow-blog.account_activate' with arguments '('d7bf312135b03fec8065766fd06710acdc83b589',)' and keyword arguments '{}' not found.


======================================================================
ERROR: testSubjectValid (accounts.tests.RegistrationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 13, in setUp
self.user = ActionRecord.registrations.create_inactive_user(name=self.name, email=self.email, password=self.name)
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/managers.py", line 87, in create_inactive_user
message = message_template.render(message_context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/test/utils.py", line 15, in instrumented_test_render
return self.nodelist.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'byteflow-blog.account_activate' with arguments '('6ffe4e778507e8e3094de91bb8ee806ed6aae05b',)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 241, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'byteflow-blog.account_activate' with arguments '('6ffe4e778507e8e3094de91bb8ee806ed6aae05b',)' and keyword arguments '{}' not found.


======================================================================
ERROR: testUserCreate (accounts.tests.RegistrationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/tests.py", line 13, in setUp
self.user = ActionRecord.registrations.create_inactive_user(name=self.name, email=self.email, password=self.name)
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/accounts/managers.py", line 87, in create_inactive_user
message = message_template.render(message_context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/test/utils.py", line 15, in instrumented_test_render
return self.nodelist.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'byteflow-blog.account_activate' with arguments '('0a399e447b05954cd760acda2e1a7b4e4a3a73fd',)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/core/urlresolvers.py", line 241, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'byteflow-blog.account_activate' with arguments '('0a399e447b05954cd760acda2e1a7b4e4a3a73fd',)' and keyword arguments '{}' not found.


======================================================================
ERROR: testAnonymousComment (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testComment (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testContent (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testDeleteComments (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testLoggedOutComment (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testName (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

======================================================================
ERROR: testSlug (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/crchemist/byteflow-blog/../byteflow-blog/apps/blog/tests.py", line 17, in setUp
self.p1 = Post.objects.create(author=self.user, name="Some name", text="some text, slighty longer than name")
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/manager.py", line 99, in create
return self.get_query_set().create(**kwargs)
File "/home/crchemist/python-2.5.2/lib/python2.5/site-packages/django/db/models/query.py", line 313, in create
obj.save(force_insert=True)
TypeError: save() got an unexpected keyword argument 'force_insert'

----------------------------------------------------------------------
Ran 33 tests in 5.951s

FAILED (errors=13)
j2a
С django чтоли впервые? - python manage.py syncdb

И еще, нужно python-openid поставить.
crchemist
j2a
С django чтоли впервые?
та ) zope/plone only Дякую
j2a
crchemist
j2a
С django чтоли впервые?
та ) zope/plone only Дякую
http://docs.djangoproject.com/en/dev/intro/tutorial01/#database-setup
crchemist
ага. спасибі. працює
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