Hi,
I was experimenting locally using flatpages. I didnt add anything
extra into the urls.py file to handle these pages and they displayed
correctly in the browser (using the django runserver)
When i deploy my app to apache i get the error : The current URL, ,
didn't match any of these.
My urls.py looks like
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
(r'^contact/$', 'allergy.contact.views.contact'),
(r'^contact/thanks/$','allergy.contact.views.thanks'),
(r'^_resources/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)
The flat page i added has a url like : '/' (so it's available at the
root of the domain)
Is there something else i need to add for this to work properly on
apache (compared to runserver) ?
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
-~----------~----~----~----~------~----~------~--~---