Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
django-livesettings integration
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lloyd Philbrook  
View profile  
 More options Apr 13 2012, 5:54 am
From: Lloyd Philbrook <ll...@firebellydesign.com>
Date: Fri, 13 Apr 2012 02:54:03 -0700 (PDT)
Local: Fri, Apr 13 2012 5:54 am
Subject: django-livesettings integration

Hello,

Awesome package.  It really does make the django admin presentable to
clients out the box.  Thanks!

I am trying to integrate django-livesettings.  I created a custommenu
(menu.py) file and added a link to the livesettings url (admin/settings).
 This works without a problem.  My issue is the application &
administration menu are empty when I am on the admin/settings page.  Also,
the selected class doesn't seem to be activated on this menu item.  Let me
know if you need anymore information.

Thanks in advance.

Lloyd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NENAD CIKIC  
View profile  
 More options Apr 13 2012, 12:19 pm
From: NENAD CIKIC <nenad.ci...@gmail.com>
Date: Fri, 13 Apr 2012 09:19:24 -0700 (PDT)
Local: Fri, Apr 13 2012 12:19 pm
Subject: Re: django-livesettings integration
I also like very much this addin. Since I am django/python newbie it
helps me a lot in developing simple content management system.
I am not familiar with livesetting but if it might help this is what I
do in my custom menu.
In my custom menu inside the init_with_context method if put code
similar to the following:

                contextMenu=items.MenuItem(_('Context menu'))
                prog = re.compile('^/myproject/auth/user/(\d+)/$')

result=prog.match(context['request'].META['PATH_INFO'])
                if result:
                    userPK=int(re.split('(\d
+)',context['request'].META['PATH_INFO'])[1])
                    contextMenu.children.append(items.MenuItem(_('Link
admin profile'),url='/myproject/registracija/opcija/linkadmin/%s/' %
userPK))

                if contextMenu.children:
                    self.children.append(contextMenu)

In that way I link custom behaviour in various points.
You could similarly add where you need manually all the models if for
any reason they are not included with AppList.

hth
Nenad

On 13 Apr, 11:54, Lloyd Philbrook <ll...@firebellydesign.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lloyd Philbrook  
View profile  
 More options Apr 14 2012, 3:06 am
From: Lloyd Philbrook <ll...@firebellydesign.com>
Date: Sat, 14 Apr 2012 00:06:05 -0700 (PDT)
Local: Sat, Apr 14 2012 3:06 am
Subject: Re: django-livesettings integration

Nenad,

I assumed I'd have to play around with context.  I'll give it a try.
 Thanks.

Lloyd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lloyd Philbrook  
View profile  
 More options Apr 14 2012, 7:40 am
From: Lloyd Philbrook <ll...@firebellydesign.com>
Date: Sat, 14 Apr 2012 04:40:07 -0700 (PDT)
Local: Sat, Apr 14 2012 7:40 am
Subject: Re: django-livesettings integration

The menu items are there.  They just are not displaying on role over.  That
was a few wasted hours.  Time to mess with the js and css.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lloyd Philbrook  
View profile  
 More options Apr 14 2012, 11:34 am
From: Lloyd Philbrook <ll...@firebellydesign.com>
Date: Sat, 14 Apr 2012 08:34:59 -0700 (PDT)
Local: Sat, Apr 14 2012 11:34 am
Subject: Re: django-livesettings integration

Ok I figured it out.  The admin/base.css was being called before {{
block.super }}.  just duplicated livesettings/group_settings.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »