Re: sync flickr to my django blog

2008-03-05 Thread stranger
HEllo group can anyone help me in this regard please... On Mar 4, 10:50 am, stranger <[EMAIL PROTECTED]> wrote: > hello group, > >       First of all I would like to thank this community for helping me > in solve my doubts regarding  django. And here I am again with another > one. > > I am cr

Re: Fwd: Saved&named searches

2008-03-05 Thread [EMAIL PROTECTED]
I'm not sure I follow, if you mean doing a mass update, that is being implemented in qs-rf, however I don't think you will be able to increment. On Mar 5, 10:07 pm, "Haroldo Stenger" <[EMAIL PROTECTED]> wrote: > Thank you for Django, this is great. > I'd like to implement a feature in my model, n

Fwd: Saved&named searches

2008-03-05 Thread Haroldo Stenger
Thank you for Django, this is great. I'd like to implement a feature in my model, namely, being able to search a table based on boolean criteria, and have these criteria saved for later revision. Also, to be able to increment a score count in the positive search hits targeted records. Has this been

Re: Iteration not working inside template

2008-03-05 Thread Malcolm Tredinnick
On Thu, 2008-03-06 at 09:17 +0530, M.Ganesh wrote: > Hi, > > I've pasted a minimalist code here: http://dpaste.com/hold/38198/ > > Only the table caption and the table headers show-up in the web page. > The LunchEnrty_list.count also shows up correctly, but there are no > table rows. You are

Re: Iteration not working inside template

2008-03-05 Thread Michael Newman
You don't need the .all after the lunch entry list in the template. You already did that. Michael Newman On Mar 5, 2008, at 10:47 PM, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > > Hi, > > I've pasted a minimalist code here: http://dpaste.com/hold/38198/ > > Only the table caption and the table he

Only 3 weeks left for PostgreSQL Conference East

2008-03-05 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There are only three weeks left to register for the PostgreSQL Community Conference: East! The conference is scheduled on March 29th and 30th (a Saturday and Sunday) at the University of Maryland. Come join us as Bruce Momjian and Joshua Drake have

Iteration not working inside template

2008-03-05 Thread M.Ganesh
Hi, I've pasted a minimalist code here: http://dpaste.com/hold/38198/ Only the table caption and the table headers show-up in the web page. The LunchEnrty_list.count also shows up correctly, but there are no table rows. What am I missing TIA Regards Ganesh --~--~-~--~~-

Re: location of CSS

2008-03-05 Thread Brian Luft
> Funny that css and js are considered "static media". In the spirit > of templating they should be dynamic. I'm not quite sure what you mean. Typically the contents of CSS, Javascript, and image files don't change from request to request. Hence - "static media". In most cases requests for "st

Re: Generic Views: Variable Table Columns

2008-03-05 Thread Darryl Ross
Just to follow up for the archives. What I was after is a getattr filter for the templates. Searching djangosnippets.org has found a couple. This one seems to do what I need: http://www.djangosnippets.org/snippets/411/ Regards Darryl Darryl Ross wrote: Hey All, I'm using the generic views

Re: IDE

2008-03-05 Thread limodou
On Thu, Mar 6, 2008 at 4:06 AM, gabriel <[EMAIL PROTECTED]> wrote: > > What do you think about : > > eclipse + plugins( pydev + html/css ) > eric4 + django plugin > SPE - is there plugin for django > > All of that around for-django usage? > I only used UliPad, and didn't used others, and I on

Re: Documentation Project [No django directly related]

2008-03-05 Thread James Bennett
On Wed, Mar 5, 2008 at 3:52 PM, Grupo Django <[EMAIL PROTECTED]> wrote: > These anotations are not 100% real, I've been looking only for a few > hours documentation about them, I don't know all the features of each > system yet. reST has two advantages: 1. Django already supports it for auto-

Re: location of CSS

2008-03-05 Thread Phillip Watts
On Wednesday 05 March 2008 13:37:58 Brian Luft wrote: > Serving static media really has nothing to do with Django. Funny that css and js are considered "static media". In the spirit of templating they should be dynamic. I would characterize them as junk_patched_on_to_a_crappy_platform. But, O

Re: IDE

2008-03-05 Thread Jeremy Sandell
On Mar 5, 3:06 pm, gabriel <[EMAIL PROTECTED]> wrote: > What do you think about : > > eclipse + plugins( pydev + html/css ) > eric4 + django plugin > SPE - is there plugin for django Eclipse + Pydev extension (especially with the non-free remote debugger) is really handy, though I've found Eclip

Re: how to cache django javascript message file ('/jsi18n/') with apache (production setup)

2008-03-05 Thread Malcolm Tredinnick
On Wed, 2008-03-05 at 14:33 -0800, jfine wrote: > On Mar 5, 5:58 pm, "alain D." <[EMAIL PROTECTED]> wrote: > > Hi, > > > >If there a simple apache configuration that is know to make browser > > cache the javascript message file ('jsi18n') in a standard apache > > django production setup ? >

Re: Documentation Project [No django directly related]

2008-03-05 Thread Grupo Django
On 5 mar, 23:54, Tim Chase <[EMAIL PROTECTED]> wrote: > > I'm building a complex Web site using Django of course, and I > > have to start the documentation this week. I'd like some > > suggestions about this. I want to make the documentation > > available through the web and a PDF file. > > I'v

Re: Queryset returning unexpected results

2008-03-05 Thread Darthmahon
Ahh ok. Something like this then? qset = (Q(tags__title__icontains=query) | Q(title__icontains=query)) results = Blog.objects.filter(qset).extra(LEFT OUTER JOIN tag ON blog.tag = tag.id) On Mar 5, 10:49 pm, Pigletto <[EMAIL PROTECTED]> wrote: > > Basically, the queryset in views.py will ONLY ret

Re: Queryset returning unexpected results

2008-03-05 Thread Darthmahon
Ahh ok, can I simply specify just the 'left outer join' part of the query or do I need need to write it myself I.E. SELECT from TABLE where XXX LEFT OUTER JOIN... On Mar 5, 10:49 pm, Pigletto <[EMAIL PROTECTED]> wrote: > > Basically, the queryset in views.py will ONLY return results if that > > p

Re: Documentation Project [No django directly related]

2008-03-05 Thread Tim Chase
> I'm building a complex Web site using Django of course, and I > have to start the documentation this week. I'd like some > suggestions about this. I want to make the documentation > available through the web and a PDF file. I've found that there are two over-arching categories of documentati

Re: Queryset returning unexpected results

2008-03-05 Thread Pigletto
> Basically, the queryset in views.py will ONLY return results if that > particular Blog has a Tag related to it. If I haven't specified a tag > for a particular blog, it will NEVER appear in my results. > > Any ideas? Is my query only getting results with both a TITLE and > TAG_TITLE? You need '

Re: how to cache django javascript message file ('/jsi18n/') with apache (production setup)

2008-03-05 Thread jfine
On Mar 5, 5:58 pm, "alain D." <[EMAIL PROTECTED]> wrote: > Hi, > >If there a simple apache configuration that is know to make browser > cache the javascript message file ('jsi18n') in a standard apache > django production setup ? [snip] > To my django virtual host and then I get this heade

Re: Documentation Project [No django directly related]

2008-03-05 Thread [EMAIL PROTECTED]
If you display the docs in html, you can use this to convert it to a pdf: http://www.htmltopdf.org/ On Mar 5, 3:52 pm, Grupo Django <[EMAIL PROTECTED]> wrote: > Hello, this is not directly related to django, but I'm pretty sure > someone could help me here. > I'm building a complex Web site using

Documentation Project [No django directly related]

2008-03-05 Thread Grupo Django
Hello, this is not directly related to django, but I'm pretty sure someone could help me here. I'm building a complex Web site using Django of course, and I have to start the documentation this week. I'd like some suggestions about this. I want to make the documentation available through the web

Re: Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread Etienne Robillard
On Wed, Mar 5, 2008 at 3:48 PM, abidjana <[EMAIL PROTECTED]> wrote: > > Voici certains des sites Internet les plus intéressants - > > http://ordinary-stars.blogspot.com/ > > http://ilaarijs.blogspot.com/ > > http://www.foundshit.com/ > > http://laughingducks.wordpress.com/ > > http://crummychurchs

save() always ABORTs

2008-03-05 Thread Jeff Gentry
I'm sure I'm missing something small/stupid here, but it has me stumped. I have a legacy database system which I'm writing some django applets for - up until now it has been purely read-only, but working on making something which can write as well. I've created a minimal test case here which rep

Re: Permissions and login

2008-03-05 Thread Monica Leko
> The reason for this is to ensure a consistent API: an unauthenticated > user is represented by an object with all the same methods and > attributes as an authenticated user, but set up to fail all > authentication and permission checks, as if the unauthenticated user > is simply a user who

Re: Permissions and login

2008-03-05 Thread James Bennett
On Wed, Mar 5, 2008 at 2:53 PM, Monica Leko <[EMAIL PROTECTED]> wrote: > Why first condition? Why checking is user authenticated? Doesn't the > request.user.has_permit("polls.can_vote) already imply that user is > authenticated? Can anonymous users have permissions? If they can, > and if

Queryset returning unexpected results

2008-03-05 Thread Darthmahon
Hey, Ok I have a queryset that basically searches a model for both the title, and the title of related tags. File: views.py query = request.POST.get('blog', '') if query: qset = ( Q(tags__title__icontains=query) |

Permissions and login

2008-03-05 Thread Monica Leko
In Django book, page 189, authors are using following code: def vote(request): if request.user.is_authenticated and request.user.has_permit("polls.can_vote"): #vote here else: return HttpResponse("") Why first condition? Why checking is user authenticated? Doesn't the request.user.

Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread abidjana
Voici certains des sites Internet les plus intéressants - http://ordinary-stars.blogspot.com/ http://ilaarijs.blogspot.com/ http://www.foundshit.com/ http://laughingducks.wordpress.com/ http://crummychurchsigns.blogspot.com/ http://www.mugshotdujour.com/ http://www.animalsgonesilly.com/ --~

Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread abidjana
Voici certains des sites Internet les plus intéressants - http://ordinary-stars.blogspot.com/ http://ilaarijs.blogspot.com/ http://www.foundshit.com/ http://laughingducks.wordpress.com/ http://crummychurchsigns.blogspot.com/ http://www.mugshotdujour.com/ http://www.animalsgonesilly.com/ --~

Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread abidjana
Voici certains des sites Internet les plus intéressants - http://ordinary-stars.blogspot.com/ http://ilaarijs.blogspot.com/ http://www.foundshit.com/ http://laughingducks.wordpress.com/ http://crummychurchsigns.blogspot.com/ http://www.mugshotdujour.com/ http://www.animalsgonesilly.com/ --~

Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread abidjana
Voici certains des sites Internet les plus intéressants - http://ordinary-stars.blogspot.com/ http://ilaarijs.blogspot.com/ http://www.foundshit.com/ http://laughingducks.wordpress.com/ http://crummychurchsigns.blogspot.com/ http://www.mugshotdujour.com/ http://www.animalsgonesilly.com/ --~

Voici certains des sites Internet les plus intéressants -

2008-03-05 Thread abidjana
Voici certains des sites Internet les plus intéressants - http://ordinary-stars.blogspot.com/ http://ilaarijs.blogspot.com/ http://www.foundshit.com/ http://laughingducks.wordpress.com/ http://crummychurchsigns.blogspot.com/ http://www.mugshotdujour.com/ http://www.animalsgonesilly.com/ --~

Re: Problems using cron to run a python script

2008-03-05 Thread [EMAIL PROTECTED]
Thanks for all the help folks! I solved the issue this morning by running the python script via a BASH script that source my BASH_PROFILE, which contains exports my PYTHONPATH. Here is what the script looked like: #!/bin/bash . ~/.bash_profile /usr/bin/python /home/user/path/to/django/app/upda

Re: location of CSS

2008-03-05 Thread Brian Luft
Serving static media really has nothing to do with Django. Presumably your browser is reading the CSS file and making a request back to your web server for the file. You haven't told us anything about your web server configuration. What path is being requested to the server for the image file?

Re: MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Monica Leko
On 3/5/08, Pete Crosier <[EMAIL PROTECTED]> wrote: > > I think you're over-estimating Django a little when it comes to > serving media - check out > http://www.djangoproject.com/documentation/static_files/ > for details, it requires a little more work. Woho, it works. Thank you very much. I

Re: IDE

2008-03-05 Thread gabriel
What do you think about : eclipse + plugins( pydev + html/css ) eric4 + django plugin SPE - is there plugin for django All of that around for-django usage? Dnia 05-03-2008, śro o godzinie 22:22 +0800, limodou napisał(a): > On Wed, Mar 5, 2008 at 10:32 PM, gabriel <[EMAIL PROTECTED]> wrote: > >

Re: MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Pete Crosier
I think you're over-estimating Django a little when it comes to serving media - check out http://www.djangoproject.com/documentation/static_files/ for details, it requires a little more work. On Mar 5, 6:19 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > In settings.py I have: > MEDIA_ROOT = 'C:/

Re: Advanced admin interface customization question

2008-03-05 Thread Josh Ourisman
Actually, just thought of a third: 3. Basically the same as 2, but for the list view rather than the edit form. In other words, I want to be able to filter the list of locations by site as well as by neighborhood. Since the neighborhoods are associated with sites already it would be useful if whe

MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Monica Leko
In settings.py I have: MEDIA_ROOT = 'C:/Documents and Settings/Monica/Desktop/aab/projekt/templates/media/' Media folder is in 'templates', and 'images' folder is in 'media'. angry.gif is in 'images'. Following page, when requested, doesn't show the image, only text "No image"?! I don't underst

Advanced admin interface customization question

2008-03-05 Thread Josh Ourisman
There are two ways in which I want to customize the admin interface for a project I'm working on. As far as I can tell, these sorts of customizations aren't built in, but before I start trying to write them myself I just want to make sure I'm not reinventing the wheel here. So, the two things I wa

Re: Photologue 1.0 is out (image management application)

2008-03-05 Thread Bruno Tikami
It looks great Justin. I'm already testing it. Thanks for sharing Tkm On 3/5/08, Justin <[EMAIL PROTECTED]> wrote: > > > Photologue 1.0b is out. The project page has been updated to reflect > the new 1.0 status and a new documentation site > http://sites.google.com/a/justindriscoll.us/photologue

how to cache django javascript message file ('/jsi18n/') with apache (production setup)

2008-03-05 Thread alain D.
Hi, If there a simple apache configuration that is know to make browser cache the javascript message file ('jsi18n') in a standard apache django production setup ? I've tried to add : ExpiresActive on ExpiresDefault "access plus 1 month" To my

Photologue 1.0 is out (image management application)

2008-03-05 Thread Justin
Photologue 1.0b is out. The project page has been updated to reflect the new 1.0 status and a new documentation site http://sites.google.com/a/justindriscoll.us/photologue/Home is up and (mostly) complete. If you use uploaded images in your project I think you'll want to check this out. >From the

Thank you all for your overwhelming response.

2008-03-05 Thread G10
Thank you all for your overwhelming response. In response to my below campaign and efforts the site has awarded me and my down line an opportunity to make 20$ + 6$ + 1$ right after the registration is done. So, in addition to 6$ opening Survey, you all have 5 more 4$ surveys totaling to an amount

initial value not working when used with SelectDateWidget

2008-03-05 Thread GaneshPulsars
Hi, I want to show the current date in the Date field. It works 'SelectDateWidget' when I use the default widget. If I use 'SelectDateWidget' then I always get 1st January 2008. Is there a way to use 'SelectDateWidget' and still get current date in the input box? The code is pasted in the li

Re: reporting queryset-refactor bugs

2008-03-05 Thread Dan Watson
On Mar 4, 4:13 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-03-04 at 13:05 -0800, Dan Watson wrote: > > I guess this is mostly a question for Malcolm. Do you want people to > > start reporting bugs with the queryset-refactor branch, or would you > > rather hold off until things

Re: initial value not working when used with SelectDateWidget

2008-03-05 Thread Pete Crosier
Ganesh - http://groups.google.com/group/django-users/post - try again ;D On Mar 5, 2:32 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to show the current date in the Date field. It works > 'SelectDateWidget' when I use the default widget. If I use > 'SelectDateWidget' then I always g

new to django

2008-03-05 Thread Beema shafreen
Hi everybody, I am new to django, I am planning to create my own tool using django. The tool is my learning practise to use Django in a better way. The tool i am planning is I need to upload files A,B which would give me the result as three files one is the A unique data, other is B unique data and

Play wide

2008-03-05 Thread mentopes
Do you know the new widescreen LG? Watch it: http://www.golyofogo.extra.hu/ Play wide Play LG! --~--~-~--~~~---~--~~ 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@go

Re: Recovering from Postgres errors

2008-03-05 Thread Kent Johnson
A simpler question - is there any reason *not* to include this code in my model's save() method? try: Model.save(self) except DatabaseError: transaction.rollback_unless_managed() raise The benefits: - automatic recovery from failed unmanaged transactions - very handy when working

Re: best practice to delete an object

2008-03-05 Thread Malcolm Tredinnick
On Wed, 2008-03-05 at 06:44 -0800, cesco wrote: > Hi, > > my question is really basic but I'd like to make sure I'm doing the > right thing. > > Say a user owns certain objects and it has the possibility to delete > them by clicking on a "delete" link. > > I'm thinking of associating that link

best practice to delete an object

2008-03-05 Thread cesco
Hi, my question is really basic but I'd like to make sure I'm doing the right thing. Say a user owns certain objects and it has the possibility to delete them by clicking on a "delete" link. I'm thinking of associating that link to a get request via a url like: /objects/delete/ but this would g

initial value not working when used with SelectDateWidget

2008-03-05 Thread M.Ganesh
Hi, I want to show the current date in the Date field. It works 'SelectDateWidget' when I use the default widget. If I use 'SelectDateWidget' then I always get 1st January 2008. Is there a way to use 'SelectDateWidget' and still get current date in the input box? The code is pasted in the lin

Re: initial value not working when used with SelectDateWidget

2008-03-05 Thread GaneshPulsars
I am sorry for hijacking this thread inadvertantly. I'll start another thread. Ganesh On Mar 5, 6:44 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to show the current date in the Date field. It works > 'SelectDateWidget' when I use the default widget. If I use > 'SelectDateWidget

Re: IDE

2008-03-05 Thread limodou
On Wed, Mar 5, 2008 at 10:32 PM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi , > > I am at the point of changing IDE before my next project ( a huge one ). > So far I've used Geany for python but now I am supposed to use django. > Is it anythong with special support for Django?? > > I know that reco

Re: IDE

2008-03-05 Thread Tim Riley
I have been using OpenKomodo[1] and it seems to work pretty well with Django. [1] http://www.openkomodo.com/ On Wed, Mar 5, 2008 at 9:32 AM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi , > > I am at the point of changing IDE before my next project ( a huge one ). > So far I've used Geany for p

initial value not working when used with SelectDateWidget

2008-03-05 Thread M.Ganesh
Hi, I want to show the current date in the Date field. It works 'SelectDateWidget' when I use the default widget. If I use 'SelectDateWidget' then I always get 1st January 2008. Is there a way to use 'SelectDateWidget' and still get current date in the input box? The code is pasted in the lin

Re: Problem with SYNCDB

2008-03-05 Thread justinlilly
paste the database portion of settings.py It seems that you aren't connecting to your database properly. Are you specifying a port or the proper location of your socket? -- Justin Lilly Web Developer --~--~-~--~~~---~--~~ You received this message because you are

Re: Problem with SYNCDB

2008-03-05 Thread Malcolm Tredinnick
On Wed, 2008-03-05 at 05:25 -0800, Nicola Greco di Notsecurity.com wrote: > I'm using debian, with apache (not apache2), when i launch this > command: python manage.py syncdb it appear: [...] > _mysql_exceptions.OperationalError: (2002, "Can't connect to local > MySQL server through socket '/va

IDE

2008-03-05 Thread gabriel
Hi , I am at the point of changing IDE before my next project ( a huge one ). So far I've used Geany for python but now I am supposed to use django. Is it anythong with special support for Django?? I know that recommendations include SPE and Eclipse but I wonder if you happened to work with IDE

Re: Problem with SYNCDB

2008-03-05 Thread Pete Crosier
You need to make sure MySQL is up and running, and that the database settings in your settings file are correct - I've seen this error when I've simply forgotten to start MySQL. On Mar 5, 1:25 pm, "Nicola Greco di Notsecurity.com" <[EMAIL PROTECTED]> wrote: > I'm using debian, with apache (not ap

Problem with SYNCDB

2008-03-05 Thread Nicola Greco di Notsecurity.com
I'm using debian, with apache (not apache2), when i launch this command: python manage.py syncdb it appear: server:/home/admin/djbongo/aggregatore# python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.4

Re: change user admin template

2008-03-05 Thread Rufman
Does anyone know how the django admin adds the "add group" button (small green plus sign) to the MultipleChoiceField "groups" on the "change user" interface? On Mar 4, 11:21 pm, Michael <[EMAIL PROTECTED]> wrote: > Right where you would expect it to be: > Django.Contrib.admin.templates > > You mi

Re: python singletons

2008-03-05 Thread Malcolm Tredinnick
On Wed, 2008-03-05 at 02:40 -0800, Thierry wrote: > Basically the effect of implementing a singleton in php. > Not sharing anything between requests. > But sharing during on request. > > For instance you would have one javascript object, which you get > through getInstance() > It always returns

Re: problems with url tag

2008-03-05 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 18:30 -0800, msoulier wrote: > So, my urlconf is > > urlpatterns = patterns('teleworker.clients.views', > (r'create/$', 'create'), > (r'modify/(?P\d+)/$', 'modify'), > (r'delete/(?P\d+)/$', 'delete'), > (r'page/(?P\d+)/(?P\w+)/(?P\w+)/$', > 'list'), > (r

Re: Optimizing code for a query

2008-03-05 Thread Evert Rol
> I need to optimize some code related to django db api. > Imagine a model like this: >> > class Languages( models.Model ): > name = models.CharField( max_length=255 ) > ... >> > class Object ( models.Model ): > name = models.CharField( max_length=255 ) > langua

Re: Optimizing code for a query

2008-03-05 Thread Grupo Django
On 5 mar, 12:02, Grupo Django <[EMAIL PROTECTED]> wrote: > On 5 mar, 11:25, Evert Rol <[EMAIL PROTECTED]> wrote: > > > > > >>> I need to optimize some code related to django db api. > > >>> Imagine a model like this: > > > >>> class Languages( models.Model ): > > >>> name = models.CharField( max

Re: Optimizing code for a query

2008-03-05 Thread Grupo Django
On 5 mar, 11:25, Evert Rol <[EMAIL PROTECTED]> wrote: > >>> I need to optimize some code related to django db api. > >>> Imagine a model like this: > > >>> class Languages( models.Model ): > >>> name = models.CharField( max_length=255 ) > >>> ... > > >>> class Object ( models.Model ): > >>>

Re: python singletons

2008-03-05 Thread Thierry
Basically the effect of implementing a singleton in php. Not sharing anything between requests. But sharing during on request. For instance you would have one javascript object, which you get through getInstance() It always returns the same object with a list of js files. Then in the view or wher

Re: Problems using cron to run a python script

2008-03-05 Thread Pigletto
> OK, I'm getting a different error now: > > Traceback (most recent call last): > File "update_feeds.py", line 58, in ? >update_feeds() > File "update_feeds.py", line 14, in update_feeds >from knoxd.apps.aggregator.models import Feed, FeedItem > ImportError: No module named knoxd.apps.ag

Re: Optimizing code for a query

2008-03-05 Thread Evert Rol
>>> I need to optimize some code related to django db api. >>> Imagine a model like this: >> >>> class Languages( models.Model ): >>> name = models.CharField( max_length=255 ) >>> ... >> >>> class Object ( models.Model ): >>> name = models.CharField( max_length=255 ) >>> languages = models

Re: Optimizing code for a query

2008-03-05 Thread Grupo Django
On 5 mar, 10:52, Grupo Django <[EMAIL PROTECTED]> wrote: > On 4 mar, 11:40, Evert Rol <[EMAIL PROTECTED]> wrote: > > > > > > I need to optimize some code related to django db api. > > > Imagine a model like this: > > > > class Languages( models.Model ): > > >name = models.CharField( max_length

Re: Optimizing code for a query

2008-03-05 Thread Grupo Django
On 4 mar, 11:40, Evert Rol <[EMAIL PROTECTED]> wrote: > > I need to optimize some code related to django db api. > > Imagine a model like this: > > > class Languages( models.Model ): > >name = models.CharField( max_length=255 ) > >... > > > class Object ( models.Model ): > >name = mode

Re: problems with url tag

2008-03-05 Thread Pete Crosier
More than one match for one {% url view args %} doesn't sound right, you can name your patterns to clear up any ambiguity - http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns On Mar 5, 2:30 am, msoulier <[EMAIL PROTECTED]> wrote: > So, my urlconf is > > urlpatterns = pat