hi, i ll just describe a basic installation of django on apache and point the strang behavior.
django version : 0.91 Apache 2.0.54 Mod_python 3.1 + create a django project "cefinban" in /home/greg/django/ (django-admin.py startproject cefinban) + initialise everythng add a fake app model, and activate the admin part (tutorial 1,2) + edit httpd.conf from /etc/apache2, in my case under ubuntu i go for /etc/apache2/sites-enable/*** #already there NameVirtualHost * <VirtualHost *> ServerAdmin [EMAIL PROTECTED] [...] # i add django conf <Location "/mywebsite/"> SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath sys.path+[r'/home/greg/django'] SetEnv DJANGO_SETTINGS_MODULE cefinban.settings PythonDebug On </Location> </VirtualHost> python path is correct it point to the parent folder " django "of my project cefinban. url.py : # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls.admin')), Now let's try access, http://192.168.1.13/mywebsite/admin/ Request Method: GET Request URL: http://192.168.1.13/mywebsite/admin/ Using the URLconf defined in cefinban.urls, Django tried these URL patterns, in this order: 1. ^admin/ The current URL, /mywebsite/admin/, didn't match any of these. http://192.168.1.13/mywebsite/ Request Method: GET Request URL: http://192.168.1.13/mywebsite/ Using the URLconf defined in cefinban.urls, Django tried these URL patterns, in this order: 1. ^admin/ The current URL, /mywebsite/, didn't match any of these. WHY ! does he try to match the url with /mywebsite/*** instead of just ***, so far i have been using (r'^mywebsite/admin/', include('django.contrib.admin.urls.admin')), to overcome it but i have to add mywebsite to all urls .. i am repeating myself :/ A clean solution will be greatly apreciated :), --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---