Hello guys. I am quite a beginner in using django and python. I have
read through tutorial on the official website, and also separate
topics on models, views, templates, urls, forms. So I have basic idea
on how django works.
I have choosen the official djangoproject website from here
https://github.com/django/djangoproject.com as the subject for my
experiments. But I can't get it running.
I have installed all packages it needed. And, as I didn't want to
bother myself with PostgreSQL I changed engine to sqlite3.

Now I have error:
--------------------------------------------------------------------------------------------------
DoesNotExist at /

DocumentRelease matching query does not exist.


Environment:

Request Method: GET
Request URL: http://localhost:8000/

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.sites',
 'django.contrib.auth',
 'django.contrib.admin',
 'django.contrib.comments',
 'django.contrib.contenttypes',
 'django.contrib.flatpages',
 'django.contrib.humanize',
 'django.contrib.redirects',
 'django.contrib.sessions',
 'django.contrib.sitemaps',
 'django_website.blog',
 'django_website.aggregator',
 'django_website.docs',
 'registration',
 'south']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
 'django.contrib.redirects.middleware.RedirectFallbackMiddleware']


Traceback:
File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
get_response
  111.                         response = callback(request,
*callback_args, **callback_kwargs)
File "C:\Python27\lib\site-packages\django\views\generic\simple.py" in
direct_to_template
  26.     c = RequestContext(request, dictionary)
File "C:\Python27\lib\site-packages\django\template\context.py" in
__init__
  177.             self.update(processor(request))
File "C:\Documents and Settings\user2\Desktop\!system\djangosite
\django_website\context_processors.py" in recent_release
  9.         recent_release =
DocumentRelease.objects.default().version
File "C:\Documents and Settings\user2\Desktop\!system\djangosite
\django_website\docs\models.py" in default
  7.         return DocumentRelease.objects.get(is_default=True)
File "C:\Python27\lib\site-packages\django\db\models\manager.py" in
get
  132.         return self.get_query_set().get(*args, **kwargs)
File "C:\Python27\lib\site-packages\django\db\models\query.py" in get
  349.                     % self.model._meta.object_name)

Exception Type: DoesNotExist at /
Exception Value: DocumentRelease matching query does not exist.
----------------------------------------------------------------------------------------------------------------


Any help would be good, please.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to