I just checked out the newest revision and it works!
I am certain this will be a very handy asset.
To debug the issue you can use the {% debug %} template tag.
Thank you,
Richard
On Sun, Aug 24, 2008 at 6:11 AM, Richard Ward <[EMAIL PROTECTED]> wrote:
> I too am unable to display the
I think flatpages definitely still have their uses. Morsels don't
create new pages, they only get shown on existing ones.
With the flatpage fallback middleware, flatpage xml sitemaps and a bit
of custom navigation code you can let users add pages anywhere they
want in a site and have it
It makes me wonder now though. If I can just include a bunch of
morsels on a page, why even bother using flatpages anymore?? That
just makes things more difficult to maintain. Thoughts?
On Aug 21, 5:19 am, Itai Tavor <[EMAIL PROTECTED]> wrote:
> At first glance (and, quite possibly, second
Hi Richard,
Can you provide more information? What URL did you enter in the
morsel, and at what URL are you viewing the template that tries to
include the morsel? Also, does your SITE_ID setting match the site you
selected in the morsel?
Itai
On 24/08/2008, at 9:11 PM, Richard Ward
I too am unable to display the morsels.
I believe it is install correctly.
I can add morsels.
The morsel tag generates no error when the template is generated.
This is my context setting:
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
Apologies to everyone who got bit by this. I updated the INSTALL
instructions with the requirement of adding 'request' to the context.
Itai
On 23/08/2008, at 6:26 AM, lingrlongr wrote:
>
> Recommended fix @ http://code.google.com/p/django-morsels/issues/detail?id=1
>
> On Aug 22, 2:51 pm,
Recommended fix @ http://code.google.com/p/django-morsels/issues/detail?id=1
On Aug 22, 2:51 pm, lingrlongr <[EMAIL PROTECTED]> wrote:
> If I change my view to this, it works:
>
> # views.py
> def myview(request):
> return object_list(
> request,
>
If I change my view to this, it works:
# views.py
def myview(request):
return object_list(
request,
queryset=Stuff.objects.all(),
extra_context = {
'request': request,
}
)
Is this supposed to be the right way to use morsels?
Keith
On Aug 22,
I can't get this to work at all. Seems to bomb here:
class MorselManager(models.Manager):
def get_for_current(self, context, name, inherit=False):
if not context.has_key('request'): <-- key never
seems to exist
return None
I have a morsel defined with a URL of
thanks seems interesting.
On Thu, Aug 21, 2008 at 3:19 AM, Itai Tavor <[EMAIL PROTECTED]> wrote:
>
> At first glance (and, quite possibly, second and third) django-morsels
> might look like a clone of django-chunks
> (http://code.google.com/p/django-chunks/
> ). Both apps attempt to solve the
At first glance (and, quite possibly, second and third) django-morsels
might look like a clone of django-chunks
(http://code.google.com/p/django-chunks/
). Both apps attempt to solve the same problem, and in fact, I wrote
this app after seeing and trying out django-chunks (so thanks, Clint
11 matches
Mail list logo