Re: django-grappelli setup problem

2009-04-17 Thread Lars Stavholm

patrickk wrote:
> # stable release:
> an "official release" won´t be there until reordering of edit-inlines
> is possible.
> we are using grappelli for most of our clients - so I´m considering
> the trunk "stable". with stable I mean that for all _our_ usecases it
> works fine. bookmarks & navigation is pretty new, so there could be
> issues here.

Sounds good to me.

> # django-1.1
> yes. pretty soon ...

Right so.

> # mailing-list
> kind of. I´m not reading this list on a regular basis. I´m thinking of
> having an own grappelli google-group in the near future. until that,
> use either this list or the google-code issue tracker.

Good enough for me.

I'm happy you were reading this list when helping me out.

Thanks!
/Lars

> On Apr 17, 8:18 am, Lars Stavholm  wrote:
>> patrickk wrote:
>>> I´m working with the request-context-processor. I´ll change that for
>>> the user (because the auth-processor is required for the admin
>>> anyway). nevertheless, without the request-processor, bookmarks
>>> probably doesn´t work.
>>> simple fix:
>>> just add "django.core.context_processors.request", to your template
>>> context processors.
>> Ah, thanks Patrick, I have it up and running and this is more
>> or less exactly what I've been looking for for my intranet
>> application. I have a feeling that grappelli will save me a
>> bundle of time and the look and feel is brilliant as well.
>> I still have a lot to try, but the first impression is great.
>>
>> However, as I'm looking ahead at deadlines, I need to ask:
>>
>> o do you know if there's going to be a stable release at some
>>   point, or am I looking at a moving target?
>>
>> o will django-1.1 be supported at some point in time?
>>
>> o is this mailing list the proper place for this conversation?
>>
>> Thanks!
>> /L
>>
>>> however, I´ll take another look at that in order to simplify.
>>> thanks,
>>> patrick
>>> On 16 Apr., 21:44, Lars Stavholm  wrote:
 patrickk wrote:
> it´s really easy to debug here:
> line 60 of index.html is {% get_navigation request.user %}.
> check the templatetag (navigation.py) and see if the user is there and
> if the navigation is loaded (e.g. using "print object_list" when the
> dev-server is started). if there are problems, use the shell (python
> manage.py shell) to do some testing.
> shouldn´t be hard to find the "error" ...
 Well, error or not, I've managed to get the Bookmarks and
 Navigation to show nicely. However, this happened only after
 replacing request.user with user in {% get_navigation request.user %}
 on line 60 in index.html (and then the same kind of hoopla in
 base.html with didn't work out for request.path). Then I remembered
 that django forced me to add the django.core.context_processors.auth
 to the TEMPLATE_CONTEXT_PROCESSORS in my settings.py. This apparently
 makes "request.user" useless, but allows you to use "user" instead.
 However, I get the feeling that there's something fishy going on here,
 since you don't seem to use the django context processor for auth.
 How do you get away with that? Or maybe there's a mismatch of versions
 here. I use django-1.0.2 and I was led to believe that django-grappelli
 was developed towards the latest release of django, i.e. 1.0.2.
 /L
> On 16 Apr., 18:44, Lars Stavholm  wrote:
>> So that all went well. Now all I need now is the bookmarks
>> and the sidebar navigation box. They're not visible as of
>> right now and I'm not sure what to do about it. The recommended
>> fixtures are loaded.
>> Any ideas anyone?
>> /L
>> Lars Stavholm wrote:
>>> patrickk wrote:
 line 53 of base.html is {% get_help request.path %}.
 I´m not exactly sure what´s happening here and I´m not able to
 reproduce this error.
 you might wanna try to debug ... request.user seems to work (because
 that´s a couple of lines before), so request.path should also work.
 but I´ve never tested this locally, so I´m not sure if that can cause
 the error (we´re having test/development-servers to do this).
 if you dig a little depper and you think you´ve found a bug - then
 please report it using the google-code issue tracker.
>>> No bug (as far as I can see), just newbie-ness. Turns out that
>>> there's some sort of conflict with other apps, namely the batchadmin
>>> app, possibly more (I removed them all). In addition, being a newbie,
>>> I neglected to tell you that I'm running the development server. I
>>> followed the instructions by Chris Scott, and after a bit of fiddling,
>>> presto, I can see the light:)
>>> It looks brilliant!
>>> /L
 On 15 Apr., 20:14, Lars Stavholm  wrote:
> patrickk wrote:
>> in order to use the admin, just use /admin/ (grappelli doesn´t change
>> the 

Re: django-grappelli setup problem

2009-04-17 Thread patrickk

# stable release:
an "official release" won´t be there until reordering of edit-inlines
is possible.
we are using grappelli for most of our clients - so I´m considering
the trunk "stable". with stable I mean that for all _our_ usecases it
works fine. bookmarks & navigation is pretty new, so there could be
issues here.

# django-1.1
yes. pretty soon ...

# mailing-list
kind of. I´m not reading this list on a regular basis. I´m thinking of
having an own grappelli google-group in the near future. until that,
use either this list or the google-code issue tracker.

patrick


On Apr 17, 8:18 am, Lars Stavholm  wrote:
> patrickk wrote:
> > I´m working with the request-context-processor. I´ll change that for
> > the user (because the auth-processor is required for the admin
> > anyway). nevertheless, without the request-processor, bookmarks
> > probably doesn´t work.
>
> > simple fix:
> > just add "django.core.context_processors.request", to your template
> > context processors.
>
> Ah, thanks Patrick, I have it up and running and this is more
> or less exactly what I've been looking for for my intranet
> application. I have a feeling that grappelli will save me a
> bundle of time and the look and feel is brilliant as well.
> I still have a lot to try, but the first impression is great.
>
> However, as I'm looking ahead at deadlines, I need to ask:
>
> o do you know if there's going to be a stable release at some
>   point, or am I looking at a moving target?
>
> o will django-1.1 be supported at some point in time?
>
> o is this mailing list the proper place for this conversation?
>
> Thanks!
> /L
>
> > however, I´ll take another look at that in order to simplify.
>
> > thanks,
> > patrick
>
> > On 16 Apr., 21:44, Lars Stavholm  wrote:
> >> patrickk wrote:
> >>> it´s really easy to debug here:
> >>> line 60 of index.html is {% get_navigation request.user %}.
> >>> check the templatetag (navigation.py) and see if the user is there and
> >>> if the navigation is loaded (e.g. using "print object_list" when the
> >>> dev-server is started). if there are problems, use the shell (python
> >>> manage.py shell) to do some testing.
> >>> shouldn´t be hard to find the "error" ...
> >> Well, error or not, I've managed to get the Bookmarks and
> >> Navigation to show nicely. However, this happened only after
> >> replacing request.user with user in {% get_navigation request.user %}
> >> on line 60 in index.html (and then the same kind of hoopla in
> >> base.html with didn't work out for request.path). Then I remembered
> >> that django forced me to add the django.core.context_processors.auth
> >> to the TEMPLATE_CONTEXT_PROCESSORS in my settings.py. This apparently
> >> makes "request.user" useless, but allows you to use "user" instead.
>
> >> However, I get the feeling that there's something fishy going on here,
> >> since you don't seem to use the django context processor for auth.
> >> How do you get away with that? Or maybe there's a mismatch of versions
> >> here. I use django-1.0.2 and I was led to believe that django-grappelli
> >> was developed towards the latest release of django, i.e. 1.0.2.
> >> /L
>
> >>> On 16 Apr., 18:44, Lars Stavholm  wrote:
>  So that all went well. Now all I need now is the bookmarks
>  and the sidebar navigation box. They're not visible as of
>  right now and I'm not sure what to do about it. The recommended
>  fixtures are loaded.
>  Any ideas anyone?
>  /L
>  Lars Stavholm wrote:
> > patrickk wrote:
> >> line 53 of base.html is {% get_help request.path %}.
> >> I´m not exactly sure what´s happening here and I´m not able to
> >> reproduce this error.
> >> you might wanna try to debug ... request.user seems to work (because
> >> that´s a couple of lines before), so request.path should also work.
> >> but I´ve never tested this locally, so I´m not sure if that can cause
> >> the error (we´re having test/development-servers to do this).
> >> if you dig a little depper and you think you´ve found a bug - then
> >> please report it using the google-code issue tracker.
> > No bug (as far as I can see), just newbie-ness. Turns out that
> > there's some sort of conflict with other apps, namely the batchadmin
> > app, possibly more (I removed them all). In addition, being a newbie,
> > I neglected to tell you that I'm running the development server. I
> > followed the instructions by Chris Scott, and after a bit of fiddling,
> > presto, I can see the light:)
> > It looks brilliant!
> > /L
> >> On 15 Apr., 20:14, Lars Stavholm  wrote:
> >>> patrickk wrote:
>  in order to use the admin, just use /admin/ (grappelli doesn´t change
>  the admin-urls).
> >>> Thanks, but that got me in to some other problem:
> >>> TemplateSyntaxError at /admin/
> >>> Caught an exception while rendering: Failed 

Re: django-grappelli setup problem

2009-04-17 Thread Lars Stavholm

patrickk wrote:
> I´m working with the request-context-processor. I´ll change that for
> the user (because the auth-processor is required for the admin
> anyway). nevertheless, without the request-processor, bookmarks
> probably doesn´t work.
> 
> simple fix:
> just add "django.core.context_processors.request", to your template
> context processors.

Ah, thanks Patrick, I have it up and running and this is more
or less exactly what I've been looking for for my intranet
application. I have a feeling that grappelli will save me a
bundle of time and the look and feel is brilliant as well.
I still have a lot to try, but the first impression is great.

However, as I'm looking ahead at deadlines, I need to ask:

o do you know if there's going to be a stable release at some
  point, or am I looking at a moving target?

o will django-1.1 be supported at some point in time?

o is this mailing list the proper place for this conversation?

Thanks!
/L

> however, I´ll take another look at that in order to simplify.
> 
> thanks,
> patrick
> 
> 
> On 16 Apr., 21:44, Lars Stavholm  wrote:
>> patrickk wrote:
>>> it´s really easy to debug here:
>>> line 60 of index.html is {% get_navigation request.user %}.
>>> check the templatetag (navigation.py) and see if the user is there and
>>> if the navigation is loaded (e.g. using "print object_list" when the
>>> dev-server is started). if there are problems, use the shell (python
>>> manage.py shell) to do some testing.
>>> shouldn´t be hard to find the "error" ...
>> Well, error or not, I've managed to get the Bookmarks and
>> Navigation to show nicely. However, this happened only after
>> replacing request.user with user in {% get_navigation request.user %}
>> on line 60 in index.html (and then the same kind of hoopla in
>> base.html with didn't work out for request.path). Then I remembered
>> that django forced me to add the django.core.context_processors.auth
>> to the TEMPLATE_CONTEXT_PROCESSORS in my settings.py. This apparently
>> makes "request.user" useless, but allows you to use "user" instead.
>>
>> However, I get the feeling that there's something fishy going on here,
>> since you don't seem to use the django context processor for auth.
>> How do you get away with that? Or maybe there's a mismatch of versions
>> here. I use django-1.0.2 and I was led to believe that django-grappelli
>> was developed towards the latest release of django, i.e. 1.0.2.
>> /L
>>
>>> On 16 Apr., 18:44, Lars Stavholm  wrote:
 So that all went well. Now all I need now is the bookmarks
 and the sidebar navigation box. They're not visible as of
 right now and I'm not sure what to do about it. The recommended
 fixtures are loaded.
 Any ideas anyone?
 /L
 Lars Stavholm wrote:
> patrickk wrote:
>> line 53 of base.html is {% get_help request.path %}.
>> I´m not exactly sure what´s happening here and I´m not able to
>> reproduce this error.
>> you might wanna try to debug ... request.user seems to work (because
>> that´s a couple of lines before), so request.path should also work.
>> but I´ve never tested this locally, so I´m not sure if that can cause
>> the error (we´re having test/development-servers to do this).
>> if you dig a little depper and you think you´ve found a bug - then
>> please report it using the google-code issue tracker.
> No bug (as far as I can see), just newbie-ness. Turns out that
> there's some sort of conflict with other apps, namely the batchadmin
> app, possibly more (I removed them all). In addition, being a newbie,
> I neglected to tell you that I'm running the development server. I
> followed the instructions by Chris Scott, and after a bit of fiddling,
> presto, I can see the light:)
> It looks brilliant!
> /L
>> On 15 Apr., 20:14, Lars Stavholm  wrote:
>>> patrickk wrote:
 in order to use the admin, just use /admin/ (grappelli doesn´t change
 the admin-urls).
>>> Thanks, but that got me in to some other problem:
>>> TemplateSyntaxError at /admin/
>>> Caught an exception while rendering: Failed lookup for key [request] in
>>> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
>>> [snip]
>>> Request Method: GET
>>> Request URL:http://localhost:8000/admin/
>>> Exception Type: TemplateSyntaxError
>>> Exception Value:
>>> Caught an exception while rendering: Failed lookup for key [request] in
>>> [snip]
>>> Exception Location:
>>> /usr/lib/python2.6/site-packages/django/template/debug.py in
>>> render_node, line 81
>>> Python Executable:  /usr/bin/python
>>> Python Version: 2.6.0
>>> Python Path:['/home/stava/proj/bfact',
>>> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
>>> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',

Re: django-grappelli setup problem

2009-04-16 Thread patrickk

I´m working with the request-context-processor. I´ll change that for
the user (because the auth-processor is required for the admin
anyway). nevertheless, without the request-processor, bookmarks
probably doesn´t work.

simple fix:
just add "django.core.context_processors.request", to your template
context processors.

however, I´ll take another look at that in order to simplify.

thanks,
patrick


On 16 Apr., 21:44, Lars Stavholm  wrote:
> patrickk wrote:
> > it´s really easy to debug here:
> > line 60 of index.html is {% get_navigation request.user %}.
> > check the templatetag (navigation.py) and see if the user is there and
> > if the navigation is loaded (e.g. using "print object_list" when the
> > dev-server is started). if there are problems, use the shell (python
> > manage.py shell) to do some testing.
>
> > shouldn´t be hard to find the "error" ...
>
> Well, error or not, I've managed to get the Bookmarks and
> Navigation to show nicely. However, this happened only after
> replacing request.user with user in {% get_navigation request.user %}
> on line 60 in index.html (and then the same kind of hoopla in
> base.html with didn't work out for request.path). Then I remembered
> that django forced me to add the django.core.context_processors.auth
> to the TEMPLATE_CONTEXT_PROCESSORS in my settings.py. This apparently
> makes "request.user" useless, but allows you to use "user" instead.
>
> However, I get the feeling that there's something fishy going on here,
> since you don't seem to use the django context processor for auth.
> How do you get away with that? Or maybe there's a mismatch of versions
> here. I use django-1.0.2 and I was led to believe that django-grappelli
> was developed towards the latest release of django, i.e. 1.0.2.
> /L
>
> > On 16 Apr., 18:44, Lars Stavholm  wrote:
> >> So that all went well. Now all I need now is the bookmarks
> >> and the sidebar navigation box. They're not visible as of
> >> right now and I'm not sure what to do about it. The recommended
> >> fixtures are loaded.
>
> >> Any ideas anyone?
> >> /L
>
> >> Lars Stavholm wrote:
> >>> patrickk wrote:
>  line 53 of base.html is {% get_help request.path %}.
>  I´m not exactly sure what´s happening here and I´m not able to
>  reproduce this error.
>  you might wanna try to debug ... request.user seems to work (because
>  that´s a couple of lines before), so request.path should also work.
>  but I´ve never tested this locally, so I´m not sure if that can cause
>  the error (we´re having test/development-servers to do this).
>  if you dig a little depper and you think you´ve found a bug - then
>  please report it using the google-code issue tracker.
> >>> No bug (as far as I can see), just newbie-ness. Turns out that
> >>> there's some sort of conflict with other apps, namely the batchadmin
> >>> app, possibly more (I removed them all). In addition, being a newbie,
> >>> I neglected to tell you that I'm running the development server. I
> >>> followed the instructions by Chris Scott, and after a bit of fiddling,
> >>> presto, I can see the light:)
> >>> It looks brilliant!
> >>> /L
>  On 15 Apr., 20:14, Lars Stavholm  wrote:
> > patrickk wrote:
> >> in order to use the admin, just use /admin/ (grappelli doesn´t change
> >> the admin-urls).
> > Thanks, but that got me in to some other problem:
> > TemplateSyntaxError at /admin/
> > Caught an exception while rendering: Failed lookup for key [request] in
> > u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
> > [snip]
> > Request Method:         GET
> > Request URL:    http://localhost:8000/admin/
> > Exception Type:         TemplateSyntaxError
> > Exception Value:        
> > Caught an exception while rendering: Failed lookup for key [request] in
> > [snip]
> > Exception Location:
> > /usr/lib/python2.6/site-packages/django/template/debug.py in
> > render_node, line 81
> > Python Executable:      /usr/bin/python
> > Python Version:         2.6.0
> > Python Path:    ['/home/stava/proj/bfact',
> > '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
> > '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
> > '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
> > '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
> > '/usr/lib/python2.6/site-packages',
> > '/usr/lib/python2.6/site-packages/Numeric',
> > '/usr/lib/python2.6/site-packages/PIL',
> > '/usr/local/lib/python2.6/site-packages',
> > '/usr/lib/python2.6/site-packages/gtk-2.0',
> > '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
> > Server time:    Wed, 15 Apr 2009 20:07:53 +0200
> > Template error
> > In template /home/stava/proj/bfact/templates/admin/base.html, error at
> > line 53
> > My ursl.py looks like this:

Re: django-grappelli setup problem

2009-04-16 Thread Lars Stavholm

patrickk wrote:
> it´s really easy to debug here:
> line 60 of index.html is {% get_navigation request.user %}.
> check the templatetag (navigation.py) and see if the user is there and
> if the navigation is loaded (e.g. using "print object_list" when the
> dev-server is started). if there are problems, use the shell (python
> manage.py shell) to do some testing.
> 
> shouldn´t be hard to find the "error" ...


Well, error or not, I've managed to get the Bookmarks and
Navigation to show nicely. However, this happened only after
replacing request.user with user in {% get_navigation request.user %}
on line 60 in index.html (and then the same kind of hoopla in
base.html with didn't work out for request.path). Then I remembered
that django forced me to add the django.core.context_processors.auth
to the TEMPLATE_CONTEXT_PROCESSORS in my settings.py. This apparently
makes "request.user" useless, but allows you to use "user" instead.

However, I get the feeling that there's something fishy going on here,
since you don't seem to use the django context processor for auth.
How do you get away with that? Or maybe there's a mismatch of versions
here. I use django-1.0.2 and I was led to believe that django-grappelli
was developed towards the latest release of django, i.e. 1.0.2.
/L

> On 16 Apr., 18:44, Lars Stavholm  wrote:
>> So that all went well. Now all I need now is the bookmarks
>> and the sidebar navigation box. They're not visible as of
>> right now and I'm not sure what to do about it. The recommended
>> fixtures are loaded.
>>
>> Any ideas anyone?
>> /L
>>
>> Lars Stavholm wrote:
>>> patrickk wrote:
 line 53 of base.html is {% get_help request.path %}.
 I´m not exactly sure what´s happening here and I´m not able to
 reproduce this error.
 you might wanna try to debug ... request.user seems to work (because
 that´s a couple of lines before), so request.path should also work.
 but I´ve never tested this locally, so I´m not sure if that can cause
 the error (we´re having test/development-servers to do this).
 if you dig a little depper and you think you´ve found a bug - then
 please report it using the google-code issue tracker.
>>> No bug (as far as I can see), just newbie-ness. Turns out that
>>> there's some sort of conflict with other apps, namely the batchadmin
>>> app, possibly more (I removed them all). In addition, being a newbie,
>>> I neglected to tell you that I'm running the development server. I
>>> followed the instructions by Chris Scott, and after a bit of fiddling,
>>> presto, I can see the light:)
>>> It looks brilliant!
>>> /L
 On 15 Apr., 20:14, Lars Stavholm  wrote:
> patrickk wrote:
>> in order to use the admin, just use /admin/ (grappelli doesn´t change
>> the admin-urls).
> Thanks, but that got me in to some other problem:
> TemplateSyntaxError at /admin/
> Caught an exception while rendering: Failed lookup for key [request] in
> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
> [snip]
> Request Method: GET
> Request URL:http://localhost:8000/admin/
> Exception Type: TemplateSyntaxError
> Exception Value:
> Caught an exception while rendering: Failed lookup for key [request] in
> [snip]
> Exception Location:
> /usr/lib/python2.6/site-packages/django/template/debug.py in
> render_node, line 81
> Python Executable:  /usr/bin/python
> Python Version: 2.6.0
> Python Path:['/home/stava/proj/bfact',
> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
> '/usr/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/Numeric',
> '/usr/lib/python2.6/site-packages/PIL',
> '/usr/local/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/gtk-2.0',
> '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
> Server time:Wed, 15 Apr 2009 20:07:53 +0200
> Template error
> In template /home/stava/proj/bfact/templates/admin/base.html, error at
> line 53
> My ursl.py looks like this:
> from django.conf.urls.defaults import *
> from django.contrib import admin
> admin.autodiscover()
> urlpatterns = patterns('',
>   (r'^grappelli/', include('grappelli.urls')),
>   (r'^admin/(.*)', admin.site.root),
> )
> /L
>> On 15 Apr., 10:06, Lars Stavholm  wrote:
>>> patrickk wrote:
 which URL causes that error?
>>> http://localhost:8000/grappelli/admin/
 please note that in order to use grappelli you have to setup the admin-
 site before, 
 seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a

Re: django-grappelli setup problem

2009-04-16 Thread patrickk

it´s really easy to debug here:
line 60 of index.html is {% get_navigation request.user %}.
check the templatetag (navigation.py) and see if the user is there and
if the navigation is loaded (e.g. using "print object_list" when the
dev-server is started). if there are problems, use the shell (python
manage.py shell) to do some testing.

shouldn´t be hard to find the "error" ...

patrick.


On 16 Apr., 18:44, Lars Stavholm  wrote:
> So that all went well. Now all I need now is the bookmarks
> and the sidebar navigation box. They're not visible as of
> right now and I'm not sure what to do about it. The recommended
> fixtures are loaded.
>
> Any ideas anyone?
> /L
>
> Lars Stavholm wrote:
> > patrickk wrote:
> >> line 53 of base.html is {% get_help request.path %}.
>
> >> I´m not exactly sure what´s happening here and I´m not able to
> >> reproduce this error.
> >> you might wanna try to debug ... request.user seems to work (because
> >> that´s a couple of lines before), so request.path should also work.
>
> >> but I´ve never tested this locally, so I´m not sure if that can cause
> >> the error (we´re having test/development-servers to do this).
>
> >> if you dig a little depper and you think you´ve found a bug - then
> >> please report it using the google-code issue tracker.
>
> > No bug (as far as I can see), just newbie-ness. Turns out that
> > there's some sort of conflict with other apps, namely the batchadmin
> > app, possibly more (I removed them all). In addition, being a newbie,
> > I neglected to tell you that I'm running the development server. I
> > followed the instructions by Chris Scott, and after a bit of fiddling,
> > presto, I can see the light:)
>
> > It looks brilliant!
>
> > /L
>
> >> On 15 Apr., 20:14, Lars Stavholm  wrote:
> >>> patrickk wrote:
>  in order to use the admin, just use /admin/ (grappelli doesn´t change
>  the admin-urls).
> >>> Thanks, but that got me in to some other problem:
>
> >>> TemplateSyntaxError at /admin/
> >>> Caught an exception while rendering: Failed lookup for key [request] in
> >>> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
>
> >>> [snip]
>
> >>> Request Method:         GET
> >>> Request URL:    http://localhost:8000/admin/
> >>> Exception Type:         TemplateSyntaxError
> >>> Exception Value:        
>
> >>> Caught an exception while rendering: Failed lookup for key [request] in
>
> >>> [snip]
>
> >>> Exception Location:
> >>> /usr/lib/python2.6/site-packages/django/template/debug.py in
> >>> render_node, line 81
> >>> Python Executable:      /usr/bin/python
> >>> Python Version:         2.6.0
> >>> Python Path:    ['/home/stava/proj/bfact',
> >>> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
> >>> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
> >>> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
> >>> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
> >>> '/usr/lib/python2.6/site-packages',
> >>> '/usr/lib/python2.6/site-packages/Numeric',
> >>> '/usr/lib/python2.6/site-packages/PIL',
> >>> '/usr/local/lib/python2.6/site-packages',
> >>> '/usr/lib/python2.6/site-packages/gtk-2.0',
> >>> '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
> >>> Server time:    Wed, 15 Apr 2009 20:07:53 +0200
> >>> Template error
>
> >>> In template /home/stava/proj/bfact/templates/admin/base.html, error at
> >>> line 53
>
> >>> My ursl.py looks like this:
>
> >>> from django.conf.urls.defaults import *
> >>> from django.contrib import admin
> >>> admin.autodiscover()
>
> >>> urlpatterns = patterns('',
> >>>   (r'^grappelli/', include('grappelli.urls')),
> >>>   (r'^admin/(.*)', admin.site.root),
> >>> )
>
> >>> /L
>
>  On 15 Apr., 10:06, Lars Stavholm  wrote:
> > patrickk wrote:
> >> which URL causes that error?
> >http://localhost:8000/grappelli/admin/
> >> please note that in order to use grappelli you have to setup the admin-
> >> site before, 
> >> seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
> >> maybe this should be mentioned in the docs, but I guess it´s pretty
> >> obvious.
> > I guess it is, admin up and running nicely without grappelli.
> > /L
> >> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
> >>> Hi All,
> >>> I'm trying to get django-grappelli running, but after following
> >>> the installation instructions, I end up with a 404 and the following:
> >>> Using the URLconf defined in bfact.urls, Django tried these URL
> >>> patterns, in this order:
> >>>    1. ^admin/(.*)
> >>>    2. ^grappelli/ ^bookmark/add/$
> >>>    3. ^grappelli/ ^bookmark/remove/$
> >>>    4. ^grappelli/ ^help/(?P\d+)/$
> >>>    5. ^grappelli/ ^help
> >>>    6. ^grappelli/ ^obj_lookup/$
> >>>    7. ^grappelli/ ^related_lookup/$
> >>>    8. ^grappelli/ ^m2m_lookup/$
> >>>    9. 

Re: django-grappelli setup problem

2009-04-16 Thread Lars Stavholm

So that all went well. Now all I need now is the bookmarks
and the sidebar navigation box. They're not visible as of
right now and I'm not sure what to do about it. The recommended
fixtures are loaded.

Any ideas anyone?
/L


Lars Stavholm wrote:
> patrickk wrote:
>> line 53 of base.html is {% get_help request.path %}.
>>
>> I´m not exactly sure what´s happening here and I´m not able to
>> reproduce this error.
>> you might wanna try to debug ... request.user seems to work (because
>> that´s a couple of lines before), so request.path should also work.
>>
>> but I´ve never tested this locally, so I´m not sure if that can cause
>> the error (we´re having test/development-servers to do this).
>>
>> if you dig a little depper and you think you´ve found a bug - then
>> please report it using the google-code issue tracker.
> 
> No bug (as far as I can see), just newbie-ness. Turns out that
> there's some sort of conflict with other apps, namely the batchadmin
> app, possibly more (I removed them all). In addition, being a newbie,
> I neglected to tell you that I'm running the development server. I
> followed the instructions by Chris Scott, and after a bit of fiddling,
> presto, I can see the light:)
> 
> It looks brilliant!
> 
> /L
> 
>> On 15 Apr., 20:14, Lars Stavholm  wrote:
>>> patrickk wrote:
 in order to use the admin, just use /admin/ (grappelli doesn´t change
 the admin-urls).
>>> Thanks, but that got me in to some other problem:
>>>
>>> TemplateSyntaxError at /admin/
>>> Caught an exception while rendering: Failed lookup for key [request] in
>>> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
>>>
>>> [snip]
>>>
>>> Request Method: GET
>>> Request URL:http://localhost:8000/admin/
>>> Exception Type: TemplateSyntaxError
>>> Exception Value:
>>>
>>> Caught an exception while rendering: Failed lookup for key [request] in
>>>
>>> [snip]
>>>
>>> Exception Location:
>>> /usr/lib/python2.6/site-packages/django/template/debug.py in
>>> render_node, line 81
>>> Python Executable:  /usr/bin/python
>>> Python Version: 2.6.0
>>> Python Path:['/home/stava/proj/bfact',
>>> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
>>> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
>>> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
>>> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
>>> '/usr/lib/python2.6/site-packages',
>>> '/usr/lib/python2.6/site-packages/Numeric',
>>> '/usr/lib/python2.6/site-packages/PIL',
>>> '/usr/local/lib/python2.6/site-packages',
>>> '/usr/lib/python2.6/site-packages/gtk-2.0',
>>> '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
>>> Server time:Wed, 15 Apr 2009 20:07:53 +0200
>>> Template error
>>>
>>> In template /home/stava/proj/bfact/templates/admin/base.html, error at
>>> line 53
>>>
>>> My ursl.py looks like this:
>>>
>>> from django.conf.urls.defaults import *
>>> from django.contrib import admin
>>> admin.autodiscover()
>>>
>>> urlpatterns = patterns('',
>>>   (r'^grappelli/', include('grappelli.urls')),
>>>   (r'^admin/(.*)', admin.site.root),
>>> )
>>>
>>> /L
>>>
 On 15 Apr., 10:06, Lars Stavholm  wrote:
> patrickk wrote:
>> which URL causes that error?
> http://localhost:8000/grappelli/admin/
>> please note that in order to use grappelli you have to setup the admin-
>> site before, 
>> seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
>> maybe this should be mentioned in the docs, but I guess it´s pretty
>> obvious.
> I guess it is, admin up and running nicely without grappelli.
> /L
>> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
>>> Hi All,
>>> I'm trying to get django-grappelli running, but after following
>>> the installation instructions, I end up with a 404 and the following:
>>> Using the URLconf defined in bfact.urls, Django tried these URL
>>> patterns, in this order:
>>>1. ^admin/(.*)
>>>2. ^grappelli/ ^bookmark/add/$
>>>3. ^grappelli/ ^bookmark/remove/$
>>>4. ^grappelli/ ^help/(?P\d+)/$
>>>5. ^grappelli/ ^help
>>>6. ^grappelli/ ^obj_lookup/$
>>>7. ^grappelli/ ^related_lookup/$
>>>8. ^grappelli/ ^m2m_lookup/$
>>>9. ^accounts/login/$
>>>   10. ^accounts/logout/$
>>> Notice the space after "grappelli/".
>>> Anyone else out there using django-grappelli?
>>> Any ideas as to what causes this?
>>> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>>> Any ideas appreciated
>>> /Lars
>>>
> 
> 
> > 
> 


--~--~-~--~~~---~--~~
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 

Re: django-grappelli setup problem

2009-04-15 Thread Lars Stavholm

patrickk wrote:
> line 53 of base.html is {% get_help request.path %}.
> 
> I´m not exactly sure what´s happening here and I´m not able to
> reproduce this error.
> you might wanna try to debug ... request.user seems to work (because
> that´s a couple of lines before), so request.path should also work.
> 
> but I´ve never tested this locally, so I´m not sure if that can cause
> the error (we´re having test/development-servers to do this).
> 
> if you dig a little depper and you think you´ve found a bug - then
> please report it using the google-code issue tracker.

No bug (as far as I can see), just newbie-ness. Turns out that
there's some sort of conflict with other apps, namely the batchadmin
app, possibly more (I removed them all). In addition, being a newbie,
I neglected to tell you that I'm running the development server. I
followed the instructions by Chris Scott, and after a bit of fiddling,
presto, I can see the light:)

It looks brilliant!

/L

> On 15 Apr., 20:14, Lars Stavholm  wrote:
>> patrickk wrote:
>>> in order to use the admin, just use /admin/ (grappelli doesn´t change
>>> the admin-urls).
>> Thanks, but that got me in to some other problem:
>>
>> TemplateSyntaxError at /admin/
>> Caught an exception while rendering: Failed lookup for key [request] in
>> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
>>
>> [snip]
>>
>> Request Method: GET
>> Request URL:http://localhost:8000/admin/
>> Exception Type: TemplateSyntaxError
>> Exception Value:
>>
>> Caught an exception while rendering: Failed lookup for key [request] in
>>
>> [snip]
>>
>> Exception Location:
>> /usr/lib/python2.6/site-packages/django/template/debug.py in
>> render_node, line 81
>> Python Executable:  /usr/bin/python
>> Python Version: 2.6.0
>> Python Path:['/home/stava/proj/bfact',
>> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
>> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
>> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
>> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
>> '/usr/lib/python2.6/site-packages',
>> '/usr/lib/python2.6/site-packages/Numeric',
>> '/usr/lib/python2.6/site-packages/PIL',
>> '/usr/local/lib/python2.6/site-packages',
>> '/usr/lib/python2.6/site-packages/gtk-2.0',
>> '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
>> Server time:Wed, 15 Apr 2009 20:07:53 +0200
>> Template error
>>
>> In template /home/stava/proj/bfact/templates/admin/base.html, error at
>> line 53
>>
>> My ursl.py looks like this:
>>
>> from django.conf.urls.defaults import *
>> from django.contrib import admin
>> admin.autodiscover()
>>
>> urlpatterns = patterns('',
>>   (r'^grappelli/', include('grappelli.urls')),
>>   (r'^admin/(.*)', admin.site.root),
>> )
>>
>> /L
>>
>>> On 15 Apr., 10:06, Lars Stavholm  wrote:
 patrickk wrote:
> which URL causes that error?
 http://localhost:8000/grappelli/admin/
> please note that in order to use grappelli you have to setup the admin-
> site before, 
> seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
> maybe this should be mentioned in the docs, but I guess it´s pretty
> obvious.
 I guess it is, admin up and running nicely without grappelli.
 /L
> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
>> Hi All,
>> I'm trying to get django-grappelli running, but after following
>> the installation instructions, I end up with a 404 and the following:
>> Using the URLconf defined in bfact.urls, Django tried these URL
>> patterns, in this order:
>>1. ^admin/(.*)
>>2. ^grappelli/ ^bookmark/add/$
>>3. ^grappelli/ ^bookmark/remove/$
>>4. ^grappelli/ ^help/(?P\d+)/$
>>5. ^grappelli/ ^help
>>6. ^grappelli/ ^obj_lookup/$
>>7. ^grappelli/ ^related_lookup/$
>>8. ^grappelli/ ^m2m_lookup/$
>>9. ^accounts/login/$
>>   10. ^accounts/logout/$
>> Notice the space after "grappelli/".
>> Anyone else out there using django-grappelli?
>> Any ideas as to what causes this?
>> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>> Any ideas appreciated
>> /Lars
>>
> > 
> 


--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-15 Thread patrickk

line 53 of base.html is {% get_help request.path %}.

I´m not exactly sure what´s happening here and I´m not able to
reproduce this error.
you might wanna try to debug ... request.user seems to work (because
that´s a couple of lines before), so request.path should also work.

but I´ve never tested this locally, so I´m not sure if that can cause
the error (we´re having test/development-servers to do this).

if you dig a little depper and you think you´ve found a bug - then
please report it using the google-code issue tracker.

patrick


On 15 Apr., 20:14, Lars Stavholm  wrote:
> patrickk wrote:
> > in order to use the admin, just use /admin/ (grappelli doesn´t change
> > the admin-urls).
>
> Thanks, but that got me in to some other problem:
>
> TemplateSyntaxError at /admin/
> Caught an exception while rendering: Failed lookup for key [request] in
> u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',
>
> [snip]
>
> Request Method:         GET
> Request URL:    http://localhost:8000/admin/
> Exception Type:         TemplateSyntaxError
> Exception Value:        
>
> Caught an exception while rendering: Failed lookup for key [request] in
>
> [snip]
>
> Exception Location:
> /usr/lib/python2.6/site-packages/django/template/debug.py in
> render_node, line 81
> Python Executable:      /usr/bin/python
> Python Version:         2.6.0
> Python Path:    ['/home/stava/proj/bfact',
> '/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
> '/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
> '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
> '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
> '/usr/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/Numeric',
> '/usr/lib/python2.6/site-packages/PIL',
> '/usr/local/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/gtk-2.0',
> '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
> Server time:    Wed, 15 Apr 2009 20:07:53 +0200
> Template error
>
> In template /home/stava/proj/bfact/templates/admin/base.html, error at
> line 53
>
> My ursl.py looks like this:
>
> from django.conf.urls.defaults import *
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>   (r'^grappelli/', include('grappelli.urls')),
>   (r'^admin/(.*)', admin.site.root),
> )
>
> /L
>
> > On 15 Apr., 10:06, Lars Stavholm  wrote:
> >> patrickk wrote:
> >>> which URL causes that error?
> >>http://localhost:8000/grappelli/admin/
>
> >>> please note that in order to use grappelli you have to setup the admin-
> >>> site before, 
> >>> seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
> >>> maybe this should be mentioned in the docs, but I guess it´s pretty
> >>> obvious.
> >> I guess it is, admin up and running nicely without grappelli.
>
> >> /L
>
> >>> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
>  Hi All,
>  I'm trying to get django-grappelli running, but after following
>  the installation instructions, I end up with a 404 and the following:
>  Using the URLconf defined in bfact.urls, Django tried these URL
>  patterns, in this order:
>     1. ^admin/(.*)
>     2. ^grappelli/ ^bookmark/add/$
>     3. ^grappelli/ ^bookmark/remove/$
>     4. ^grappelli/ ^help/(?P\d+)/$
>     5. ^grappelli/ ^help
>     6. ^grappelli/ ^obj_lookup/$
>     7. ^grappelli/ ^related_lookup/$
>     8. ^grappelli/ ^m2m_lookup/$
>     9. ^accounts/login/$
>    10. ^accounts/logout/$
>  Notice the space after "grappelli/".
>  Anyone else out there using django-grappelli?
>  Any ideas as to what causes this?
>  I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>  Any ideas appreciated
>  /Lars
>
>
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-15 Thread Lars Stavholm

patrickk wrote:
> in order to use the admin, just use /admin/ (grappelli doesn´t change
> the admin-urls).

Thanks, but that got me in to some other problem:

TemplateSyntaxError at /admin/
Caught an exception while rendering: Failed lookup for key [request] in
u"[{'root_path': u'/admin/', 'app_list': [{'app_url': 'asset/',

[snip]

Request Method: GET
Request URL:http://localhost:8000/admin/
Exception Type: TemplateSyntaxError
Exception Value:

Caught an exception while rendering: Failed lookup for key [request] in

[snip]

Exception Location:
/usr/lib/python2.6/site-packages/django/template/debug.py in
render_node, line 81
Python Executable:  /usr/bin/python
Python Version: 2.6.0
Python Path:['/home/stava/proj/bfact',
'/home/stava/lib/Trac-0.11.1-py2.5.egg', '/home/stava/lib',
'/home/stava/proj', '/usr/lib/python26.zip', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/Numeric',
'/usr/lib/python2.6/site-packages/PIL',
'/usr/local/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
Server time:Wed, 15 Apr 2009 20:07:53 +0200
Template error

In template /home/stava/proj/bfact/templates/admin/base.html, error at
line 53

My ursl.py looks like this:

from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
  (r'^grappelli/', include('grappelli.urls')),
  (r'^admin/(.*)', admin.site.root),
)

/L

> On 15 Apr., 10:06, Lars Stavholm  wrote:
>> patrickk wrote:
>>> which URL causes that error?
>> http://localhost:8000/grappelli/admin/
>>
>>> please note that in order to use grappelli you have to setup the admin-
>>> site before, 
>>> seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
>>> maybe this should be mentioned in the docs, but I guess it´s pretty
>>> obvious.
>> I guess it is, admin up and running nicely without grappelli.
>>
>> /L
>>
>>> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
 Hi All,
 I'm trying to get django-grappelli running, but after following
 the installation instructions, I end up with a 404 and the following:
 Using the URLconf defined in bfact.urls, Django tried these URL
 patterns, in this order:
1. ^admin/(.*)
2. ^grappelli/ ^bookmark/add/$
3. ^grappelli/ ^bookmark/remove/$
4. ^grappelli/ ^help/(?P\d+)/$
5. ^grappelli/ ^help
6. ^grappelli/ ^obj_lookup/$
7. ^grappelli/ ^related_lookup/$
8. ^grappelli/ ^m2m_lookup/$
9. ^accounts/login/$
   10. ^accounts/logout/$
 Notice the space after "grappelli/".
 Anyone else out there using django-grappelli?
 Any ideas as to what causes this?
 I'm using django-1.0.2 on Linux with latest grappelli from trunk.
 Any ideas appreciated
 /Lars
>>
> > 
> 


--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-15 Thread patrickk

in order to use the admin, just use /admin/ (grappelli doesn´t change
the admin-urls).

patrick


On 15 Apr., 10:06, Lars Stavholm  wrote:
> patrickk wrote:
> > which URL causes that error?
>
> http://localhost:8000/grappelli/admin/
>
> > please note that in order to use grappelli you have to setup the admin-
> > site before, 
> > seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a
> > maybe this should be mentioned in the docs, but I guess it´s pretty
> > obvious.
>
> I guess it is, admin up and running nicely without grappelli.
>
> /L
>
> > On Apr 14, 8:36 pm, Lars Stavholm  wrote:
> >> Hi All,
>
> >> I'm trying to get django-grappelli running, but after following
> >> the installation instructions, I end up with a 404 and the following:
>
> >> Using the URLconf defined in bfact.urls, Django tried these URL
> >> patterns, in this order:
>
> >>    1. ^admin/(.*)
> >>    2. ^grappelli/ ^bookmark/add/$
> >>    3. ^grappelli/ ^bookmark/remove/$
> >>    4. ^grappelli/ ^help/(?P\d+)/$
> >>    5. ^grappelli/ ^help
> >>    6. ^grappelli/ ^obj_lookup/$
> >>    7. ^grappelli/ ^related_lookup/$
> >>    8. ^grappelli/ ^m2m_lookup/$
> >>    9. ^accounts/login/$
> >>   10. ^accounts/logout/$
>
> >> Notice the space after "grappelli/".
>
> >> Anyone else out there using django-grappelli?
> >> Any ideas as to what causes this?
>
> >> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>
> >> Any ideas appreciated
> >> /Lars
>
>
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-15 Thread Lars Stavholm

patrickk wrote:
> which URL causes that error?

http://localhost:8000/grappelli/admin/

> please note that in order to use grappelli you have to setup the admin-
> site before, see 
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-admin.
> maybe this should be mentioned in the docs, but I guess it´s pretty
> obvious.

I guess it is, admin up and running nicely without grappelli.

/L

> On Apr 14, 8:36 pm, Lars Stavholm  wrote:
>> Hi All,
>>
>> I'm trying to get django-grappelli running, but after following
>> the installation instructions, I end up with a 404 and the following:
>>
>> Using the URLconf defined in bfact.urls, Django tried these URL
>> patterns, in this order:
>>
>>1. ^admin/(.*)
>>2. ^grappelli/ ^bookmark/add/$
>>3. ^grappelli/ ^bookmark/remove/$
>>4. ^grappelli/ ^help/(?P\d+)/$
>>5. ^grappelli/ ^help
>>6. ^grappelli/ ^obj_lookup/$
>>7. ^grappelli/ ^related_lookup/$
>>8. ^grappelli/ ^m2m_lookup/$
>>9. ^accounts/login/$
>>   10. ^accounts/logout/$
>>
>> Notice the space after "grappelli/".
>>
>> Anyone else out there using django-grappelli?
>> Any ideas as to what causes this?
>>
>> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>>
>> Any ideas appreciated
>> /Lars
> > 
> 



--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-15 Thread patrickk

which URL causes that error?

please note that in order to use grappelli you have to setup the admin-
site before, see 
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-admin.
maybe this should be mentioned in the docs, but I guess it´s pretty
obvious.

patrick.


On Apr 14, 8:36 pm, Lars Stavholm  wrote:
> Hi All,
>
> I'm trying to get django-grappelli running, but after following
> the installation instructions, I end up with a 404 and the following:
>
> Using the URLconf defined in bfact.urls, Django tried these URL
> patterns, in this order:
>
>    1. ^admin/(.*)
>    2. ^grappelli/ ^bookmark/add/$
>    3. ^grappelli/ ^bookmark/remove/$
>    4. ^grappelli/ ^help/(?P\d+)/$
>    5. ^grappelli/ ^help
>    6. ^grappelli/ ^obj_lookup/$
>    7. ^grappelli/ ^related_lookup/$
>    8. ^grappelli/ ^m2m_lookup/$
>    9. ^accounts/login/$
>   10. ^accounts/logout/$
>
> Notice the space after "grappelli/".
>
> Anyone else out there using django-grappelli?
> Any ideas as to what causes this?
>
> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>
> Any ideas appreciated
> /Lars
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django-grappelli setup problem

2009-04-14 Thread Karen Tracey
On Tue, Apr 14, 2009 at 2:36 PM, Lars Stavholm  wrote:

>
> Hi All,
>
> I'm trying to get django-grappelli running, but after following
> the installation instructions, I end up with a 404 and the following:
>
> Using the URLconf defined in bfact.urls, Django tried these URL
> patterns, in this order:
>
>   1. ^admin/(.*)
>   2. ^grappelli/ ^bookmark/add/$
>   3. ^grappelli/ ^bookmark/remove/$
>   4. ^grappelli/ ^help/(?P\d+)/$
>   5. ^grappelli/ ^help
>   6. ^grappelli/ ^obj_lookup/$
>   7. ^grappelli/ ^related_lookup/$
>   8. ^grappelli/ ^m2m_lookup/$
>   9. ^accounts/login/$
>  10. ^accounts/logout/$
>
> Notice the space after "grappelli/".
>
> Anyone else out there using django-grappelli?
> Any ideas as to what causes this?
>
> I'm using django-1.0.2 on Linux with latest grappelli from trunk.
>
> Any ideas appreciated


I don't know what grappelli is, but the "extra" space in the listing above
is normal when you have used include() (
http://docs.djangoproject.com/en/dev/topics/http/urls/#including-other-urlconfs)
as you apparently have for the ^grappelli/ pattern.  So the space isn't the
problem.

Unfortunately I can't give you any clue what the real problem is, since you
neglected to include the part of the debug output that shows what actual url
the dispatcher was attempting to match (the line that says "The current URL,
whatever/it/may/be/ didn't match any of these").  Whatever it is, it isn't
matching anything in that list.

Karen

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django-grappelli setup problem

2009-04-14 Thread Lars Stavholm

Hi All,

I'm trying to get django-grappelli running, but after following
the installation instructions, I end up with a 404 and the following:

Using the URLconf defined in bfact.urls, Django tried these URL
patterns, in this order:

   1. ^admin/(.*)
   2. ^grappelli/ ^bookmark/add/$
   3. ^grappelli/ ^bookmark/remove/$
   4. ^grappelli/ ^help/(?P\d+)/$
   5. ^grappelli/ ^help
   6. ^grappelli/ ^obj_lookup/$
   7. ^grappelli/ ^related_lookup/$
   8. ^grappelli/ ^m2m_lookup/$
   9. ^accounts/login/$
  10. ^accounts/logout/$

Notice the space after "grappelli/".

Anyone else out there using django-grappelli?
Any ideas as to what causes this?

I'm using django-1.0.2 on Linux with latest grappelli from trunk.

Any ideas appreciated
/Lars

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---