Is it only occurring on the flatpages test page or all your pages (or is 
that the only page)? Remember you need ALLOWED_HOSTS set in production[1]

[1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts

On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote:
>
> I added flatpages to a project and got it working fine locally, using dev 
> server, but I get a 404 accessing my test page when I push to production.
>
> Googling the issue,  most common complaints fixed by making sure SITE_ID 
> was set, and that's in place in my site.
>
> I'm not using middleware, I'm using the url:
>
> urlpatterns += patterns('django.contrib.flatpages.views',
>
>     (r'^(?P<url>.*/)$', 'flatpage'),
>
> )
>
> I'm not sure how to debug this...
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/740d40ea-f53a-4937-a73d-fad474fff626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to