﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13601	Django Admin Page not found	morfeokmg	nobody	"Hi, i configure my django install with Oracle and Apache 2.2, activate admin option but fail, error: 



{{{
Page not found (404)
Request Method: 	GET
Request URL: 	http://srvlnx01.servehttp.com/linuxFriend/

Using the URLconf defined in linuxFriend.urls, Django tried these URL patterns, in this order:

   1. ^admin/

The current URL, linuxFriend/, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

}}}

My settings : 


{{{
...
ROOT_URLCONF = 'linuxFriend.urls'

TEMPLATE_DIRS = (
    # Put strings here, like ""/home/html/django_templates"" or ""C:/www/django/templates"".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
...
}}}

and my file urls.py 


{{{
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^linuxFriend/', include('linuxFriend.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),

}}}

I have modified files: 
   /etc/apache2/httpd.conf.local
           Content: 

{{{
<Location ""/linuxFriend/"">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE linuxFriend.settings
#PythonOption django.root /linuxFriend
PythonPath ""['/srv/www/htdocs']+ sys.path""
PythonDebug On
</Location>
}}}

and file /etc/sysconfig/apache2 add next lines:

{{{
#APACHE_CONF_INCLUDE_FILES=""""
APACHE_CONF_INCLUDE_FILES=""/etc/apache2/httpd.conf.local""
}}}

help me, pls. 
Tanks!.
"		closed	contrib.admin	1.1		invalid	^admin/		Unreviewed	0	0	0	0	0	0
