configuration in WinXp : Apache 2.2.22 , Django 1.3.1, mod_wsgi 3.3,
python 2.7.2.
Paths:
D:\WEBWORK - this folder is the main for apache, mysql,python and my
folder called sites. In "sites" i create project spacelab and and in
spacelab i create application blog.
spacelab.wsgi in spacelab folder. Also i uncommented in settings.py
some strings for admin package.
when i try to get the admin page in spacelab-kfu.ru/admin i see:
DoesNotExist at /admin/
Site matching query does not exist.Request Method: GET
Request URL: http://spacelab-kfu.ru/admin/
Django Version: 1.3.1
Exception Type: DoesNotExist
Exception Value: Site matching query does not exist.
Exception Location: D:\WEBWORK\Python\lib\site-packages\django\db
\models\query.py in get, line 349
Python Executable: D:\WEBWORK\Apache\bin\httpd.exe
Python Version: 2.7.2
Python Path: ['D:/WEBWORK/sites',
'C:\\WINDOWS\\system32\\python27.zip',
'D:\\WEBWORK\\Python\\Lib',
'D:\\WEBWORK\\Python\\DLLs',
'D:\\WEBWORK\\Python\\Lib\\lib-tk',
'D:\\WEBWORK\\Apache',
'D:\\WEBWORK\\Apache\\bin',
'D:\\WEBWORK\\Python',
'D:\\WEBWORK\\Python\\lib\\site-packages']
Server time: Sat, 4 Feb 2012 19:32:13 +0300
my urls.py:
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from blog.views import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^hello/$', hello),
(r'^$', mainpage),
url(r'^admin/', include(admin.site.urls)),
)
What should i do?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment