(r'$',index2), matches anything i think you would need something like
(r'^/$',index2), On Thu, Dec 22, 2016 at 8:36 AM, NoviceSortOf <[email protected]> wrote: > Thanks for the response... Apache setting and URL's follow. > > Apache setting looks like this... > <Directory /var/www/devel/area1/bookstor> > <Files wsgi.py> > Require all granted > </Files> > </Directory> > ========= > > > URLS look like this > urlpatterns = patterns('', > (r'^search/$', search), > (r'^searchadv/$', searchadv), > (r'^searchcat/$', searchcat), > (r'^searchhlt/$', searchhlt), > (r'^searchquick/$', searchquick), > (r'^edition/(?P<copyid>\w+)/$',edition), > (r'^add_to_cart/(?P<copyid>\w+)/$',add_to_cart), > (r'^remove_from_cart/(?P<copyid>\w+)/$',remove_from_cart), > > (r'^view_cart/$',view_cart), > (r'^cart_mail/$',cart_mail), > (r'^cart_maileasy/$',cart_maileasy), > (r'^check_out/$',check_out), > (r'^check_outeasy/$',check_outeasy), > (r'^login/$',login), > (r'^testit/$',testit), > (r'^request_catalogs/$',request_catalogs), > (r'^request_catalogs/$',request_catalogs), > (r'^profileopt/$', TemplateView.as_view(template_name= > "profiles/profileopt.html")), > (r'^library.htm/$', TemplateView.as_view(template_name= > "library.html")), > (r'^collect.htm/$', TemplateView.as_view(template_name= > "collect.html")), > (r'^ecatalogsdnld.htm/$', TemplateView.as_view(template_name= > "ecatalogsdnld2.html")), > (r'^about.htm/$', TemplateView.as_view(template_name= > "about.html")), > (r'^contactus.htm/$', TemplateView.as_view(template_name= > "contactus.html")), > (r'^subjectslst/$', TemplateView.as_view(template_name= > "subjectslst.html")), > (r'$',index2), > (r'^index2/$',index2), > ) > > > > > > > > > > > > > > > > > On Thursday, December 22, 2016 at 2:56:57 AM UTC+1, Vijay Khemlani wrote: >> >> show your urls.py >> >> On Wed, Dec 21, 2016 at 10:43 PM, NoviceSortOf <[email protected]> >> wrote: >> >>> >>> URLs not defined in my urls.py all show my home page and not a 404 >>> missing page error. >>> >>> For instance >>> >>> www.mysite.com >>> Naturally shows my home page. >>> >>> www.mysite.com/catalogs >>> Shows the downloadable catalogs >>> >>> then anything goes. >>> >>> www.mysite.com/thisisanonsenselink >>> or >>> www.mysite.com/AnythingTypedHere >>> >>> >>> Shows my homepage >>> >>> Why isn't my project issuing 404 or other errors when page not found? >>> >>> Please advise >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/django-users/94dc7439-38f5-464c-b93e-001faf03491c%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/94dc7439-38f5-464c-b93e-001faf03491c%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/1bc667a6-86f2-404d-9cc8-7a5a53ce97a2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/1bc667a6-86f2-404d-9cc8-7a5a53ce97a2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei1nXgehgy39_8ZvY0BD3dTwu6G7UhjC7q50b%3DMF1-snpw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

