Error message:

Using the URLconf defined in mysite.urls, Django tried these URL
patterns, in this order:

   1. ^admin/

The current URL, my-site.com/admin, didn't match any of these.

On Feb 16, 3:23 pm, Shadow <[EMAIL PROTECTED]> wrote:
> Yea I have,
>
> from django.conf.urls.defaults import *
> urlpatterns = patterns('',
>     (r'^admin/', include('django.contrib.admin.urls')),
> )
>
> When the admin line is commented, django displays the "It worked!"
> page.... but when it's not it displays 404 for any directory I go to.
>
> Do I need to tell django somewhere in the settings that my site's in a
> subdirectory of localhost?
>
> On Feb 16, 3:08 pm, Julien <[EMAIL PROTECTED]> wrote:
>
> > Well, that looks like your URLConf is not set up properly. Have you
> > included the admin urls?
>
> > (r'^admin/', include('django.contrib.admin.urls')),
>
> > On Feb 16, 3:01 pm, Shadow <[EMAIL PROTECTED]> wrote:
>
> > > I should note that it's a django 404 error and not apache.... so
> > > django is running
>
> > > On Feb 16, 5:11 am, Shadow <[EMAIL PROTECTED]> wrote:
>
> > > > Hi I'm new to django/python
>
> > > > I managed to set everything up going through everything in the
> > > > documentation, up to the part where I install the admin interface.
>
> > > > When I test the admin section through django's server it works fine.
>
> > > > But when I test it on my apache/mod_python server, it gives a 404
> > > > error.
>
> > > > I have separate folders for each website I'm working on so my django
> > > > site is inhttp://localhost/mysite.com/
>
> > > > And admin:http://localhost/mysite.com/admin/
>
> > > > Any ideas?
>
> > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to