Get ModelAdmin for specific Model

2008-07-21 Thread Alaa Salman
Hi all, Is there another way to get the ModelAdmin registered for a specific Model than to access the _registry of the AdminSite instance. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Tabular data, limited columns in a template.

2008-07-21 Thread Alaa Salman
On Jul 21, 10:28 pm, truebosko <[EMAIL PROTECTED]> wrote: > if counter % 2 == 1: Output new row > > With this, every 2 items a new row is made so I have 2 items per row. > Very simple right? > > So I tried making a template tag like so > @register.simple_tag > def is_new_row(counter): >     if

Re: ImportError: cannot import name parse_lookup

2008-07-21 Thread Alaa Salman
Fernando Rodríguez wrote: > Hi, > > I'm implementing the coltrane blog app in "Practical Django Projects" > and when I try to syncdb I get this error and traceback. > > I'm using version 0.97 downloaded from svn. > from tagging.managers import TagManager, TaggedItemManager > File

Re: Question about a custom inclusion tag

2008-07-16 Thread Alaa Salman
On Jul 15, 9:10 pm, "Matic Žgur" <[EMAIL PROTECTED]> wrote: > is there a way to pass an argument from urls.py to inclusion tag? > > For example, if I have a custom inclusion tag that prints some links > to some pages and I don't want it to print the link to the page I'm > currently visiting, how

Re:

2008-07-07 Thread Alaa Salman
On Jul 7, 10:49 am, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > I have this curious error that has been bothering me on a new server. This > is a simple program that sends out an email using an smtp server hosted > elsewhere. > > This sowks perfectly on my desktop with same mail settings,

Re: sidebar app

2008-07-07 Thread Alaa Salman
On Jul 7, 10:34 am, keegan3d <[EMAIL PROTECTED]> wrote: > I am trying to create a sidebar and an running into some trouble. I > have 2 problems: > > My model is pretty straight forward. I have categories and links under > the categories. > > class Catagory(models.Model): >         name =

Re: Include django views in other web sites

2008-07-04 Thread Alaa Salman
On Jul 4, 6:41 pm, "Alessandro Ronchi" <[EMAIL PROTECTED]> wrote: > 2008/7/3, Jeff Anderson <[EMAIL PROTECTED]>: > > >  I have used the django template system to generate web pages independent of > > a django project. > > >  First I created a settings.py that only has the TEMPLATE_DIRS setting.

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Alaa Salman
On Jun 27, 10:47 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Anyway, I am used to having separate files to facilitate different > controllers (I think it's called views in django).  On the other hand, > django uses one views.py for one application.  Is there anyway I can > have a

Re: intercepting template admin/base_site.html

2008-06-25 Thread Alaa Salman
On Jun 25, 12:16 pm, OliverMarchand <[EMAIL PROTECTED]> wrote: > I want to customize my admin interface. > For that I know I can create my *own* template admin/base_site.html. > What I should really do is derive this from the *admins* > base_site.html template. > From my understanding, I am

Re: Do you code django with Komodo?

2008-06-25 Thread Alaa Salman
On Jun 25, 11:23 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 25, 2008 at 9:21 AM, Ben Ford <[EMAIL PROTECTED]> wrote: > > > BTW: would anybody be interested in contributing to a Komodo-Django > >> extension with shortcuts to manage.py etc., modeling wizards and so on? > > > Hell

Media variables confusion

2008-06-17 Thread Alaa Salman
with using them this far. So any explanation is appreciated. I find the documentation a little lacking in explaining these vars. Regards, Alaa Salman http://www.codedemigod.com FSF Member #6304 "Never measure the height of a mountain until you have reached the top. Then you will see ho

Re: media

2007-09-20 Thread Alaa Salman
that it is requesting. I hope this makes it clearer. Regards, Alaa Salman On 9/20/07, AniNair <[EMAIL PROTECTED]> wrote: > > > I tried that.. It's just for serving static files. I don't know why > but i believed that it should've displayed the html page correctly at > the first ti