Re: flatpages issues

2007-07-16 Thread John-Scott Atlakson
Ah ha! I just looked through my settings.py file and noticed the setting:
SITE_ID = 1
I decided to double check the raw data for the django_sites table and my
site id is '2'. (I think id 1 used to be 'example.com' but I had deleted it
instead of renaming it, thus creating a mismatch with SITE_ID). Once I
changed the SITE_ID value everything started working. I deleted the item
from urlpatterns, and you're right, it's unnecessary. Thanks for attempting
to get me sorted out.

Cheers,
John-Scott.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: flatpages issues

2007-07-16 Thread Jacob Kaplan-Moss

On 7/16/07, John-Scott <[EMAIL PROTECTED]> wrote:
> Can someone in the know confirm or deny that adding the catch-all line
> to urls.py is in fact required to invoke flatpages?

No, it's not; the fallback middleware works fine for me. If it's not
working for you, chances are you've got something misconfigured; why
don't you post your settings.py and we'll take a look?

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: flatpages issues

2007-07-16 Thread John-Scott

Can someone in the know confirm or deny that adding the catch-all line
to urls.py is in fact required to invoke flatpages? I checked out the
source for djangoproject.com and it has this as the last item in
urlpatterns:

(r'', include('django.contrib.flatpages.urls')),

If this is required, should I file a ticket on the documentation to
get this included in the instructions?

Thanks.

j-s


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: flatpages issues

2007-07-13 Thread John-Scott Atlakson
Yes sir. I followed the examples in the official docs literally and in order
(http://www.djangoproject.com/documentation/flatpages/#installation steps
1-3). That worked fine and I was able to immediately start creating
flatpages via the admin interface. But I cannot view flatpages on the site.
I only added the line to urls.py because I saw some other example somewhere
with the catch-all-else pattern but this did seem to at least get me one
step closer. Without the urls.py addition, flatpages does not seem to be
invoked to handle the 404 at all.

Cheers,
j-s

On 7/13/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
>
> Hi John-Scott --
>
> Did you add '
> django.contrib.flatpages.middleware.FlatpageFallbackMiddleware'
> to your ``MIDDLEWARE_CLASSES`` setting?
>
> Jacob
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: flatpages issues

2007-07-13 Thread Jacob Kaplan-Moss

Hi John-Scott --

Did you add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware'
to your ``MIDDLEWARE_CLASSES`` setting?

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---