Tim,

>> adding polls/ to the end of this address on apache - it throws up a 404
error.

Try removing the '$' from the r'^mysite/$' pattern.  The '$' signifies
the end of the end of the string, so the pattern '^mysite/$' will only
match 'mysite/'; the pattern '^mysite/' will match any pattern
starting with 'mysite/'.

Sean

On 10/20/06, Tipan <[EMAIL PROTECTED]> wrote:
>
> Sean,
>
> That did the trick. Thanks. Admin section looks the part on Apache
> server now.
>
> I've still got a discrepancy between the way the project application
> works on Apache and on the lite development server.
>
> in my url.py if I have the line: (r'^mysite/$',
> 'mysite.polls.views.index') it runs on the lite server when I enter the
> URL: localhost/polls/ whether this line is commented out or not
>
> However, it only works on Apache, when I uncomment the line and have to
> enter the address: localhost/mysite/
>
> adding polls/ to the end of this address on apache - it throws up a 404
> error.
>
> The whole thing works just as you'd expect in the lite server - but not
> in apache. Clearly it's getting there, but is frustrating.
>
> My url.py looks like this:
> --------------
> from django.conf.urls.defaults import *
>
> urlpatterns = patterns('',
>     #(r'^mysite/$', 'mysite.polls.views.index'),
>     (r'^polls/', include('mysite.polls.urls')),
>
>     # Uncomment this for admin:
>  (r'^admin/', include('django.contrib.admin.urls')),
> )
> -----------------
>
> Regards, Tim
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to