Re: Use images and css in templates

2007-03-09 Thread [EMAIL PROTECTED]
Thanks. It solved. best regards, > > Here is my urls.py: > > > from django.conf.urls.defaults import * > > > urlpatterns = patterns('', > > # Example: > > # (r'^mysite/', include('mysite.apps.foo.urls.foo')), > > (r'^blog/', include('mysite.blog.urls')), > > (r'^site-media/(?P.*

Re: regarding Foreign Key Display

2007-03-09 Thread MacH G
hi got solution ot the problem . just we have to add raw_id_admin = True as a attribute in defining the foriegn key in our model . this will show the textbox in our admin interface On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote: > > hi thanks carole today full day searched for this problem could no

Re: Please Remove My Email Address From Django Users

2007-03-09 Thread Dirk Eschler
On Freitag, 9. März 2007, John A. Miller wrote: Hi John, [...] > Please, remove my id and address from the Django users > group. [...] you can do this yourself: > -- Dirk Eschler http://www.krusader.org --~--~-~--~~~---~--~~ You rec

Re: Please Remove My Email Address From Django Users

2007-03-09 Thread Dirk Eschler
Whoops, the quote was stripped. Here it is: To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en Best Regards. -- Dirk Eschler http://www.krusader.org --~--~-

Greeting Cards Earn Part time....

2007-03-09 Thread coolguy17111987
Hey guyz " This one is quite Cool "..!!! Cool Amazging toolbar for your browserSend cool Greeting cards...,smiley center...n much more n All Free!!! Amazed hmmmn ...??? Atleast try it... N see the change in your Web browsing !!! Free Greeting cards! - http://surl.in/HLFCI268591UXYDPMK-goo

Re: howto add join table field?

2007-03-09 Thread Aidas Bendoraitis
Instead of built-in many-to-many relationship, use some home-made one. class Item(models.Model): name = models.CharField(maxlength=32) class ItemList(models.Model): name = models.CharField(maxlength=32) class ItemList_Item(models.Model): quantity = models.IntegerField() item = model

changed template syntax?

2007-03-09 Thread sean
I'm having a problem with changeset 4676, that breaks some of my forms. These are oldforms, since I haven't had the time to update the whole site to newforms. For a related inline editable field i used something like: {{ form.modelname.0.fieldname }} but since changeset 4676 [1] this doesn't work

Re: changed template syntax?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 04:14 -0800, sean wrote: > I'm having a problem with changeset 4676, that breaks some of my > forms. > These are oldforms, since I haven't had the time to update the whole > site to newforms. > For a related inline editable field i used something like: > {{ form.modelname.0.f

Re: changed template syntax?

2007-03-09 Thread sean
Thanks for the quick reply. I should really complete the move to newforms ;-) On Mar 9, 1:31 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > If it stopped working in 4676, then it's a bug in that changeset. Not > much in the way of testing for oldforms, so that's why it wasn't caught. > > Sor

Re: changed template syntax?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 04:36 -0800, sean wrote: > Thanks for the quick reply. I should really complete the move to > newforms ;-) Of course you should. :-) However, [4676] was meant to be transparent. The problem you've pointed out looks like it might be a pain. Breaking existing code is not cool,

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
Thanks for the response Malcom... > Does the same URL work if you aren't using Selenium? I'm trying to trim > down the problem to something smaller. When I type http://127.0.0.1:8000/idms/ into the address bar I do not get a Django error and the proper page is rendered. > I *suspect* there is a

Re: What's available in a view

2007-03-09 Thread fyl
On Mar 8, 8:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 3/8/07, fyl <[EMAIL PROTECTED]> wrote: > > > This is somewhere between an observation and a question. I am writing > > a view that needs to know "some stuff", in particular > > HTTP_ACCEPT_LANGUAGE. As I read the developing book an

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 12:59 +, Paul Childs wrote: > Thanks for the response Malcom... > > > Does the same URL work if you aren't using Selenium? I'm trying to trim > > down the problem to something smaller. > When I type http://127.0.0.1:8000/idms/ into the address bar I do not > get a Django

Re: Python HTML lib_filter

2007-03-09 Thread Sam
I have enhanced and fixed some bugs inside "HTML Filter" What it does : html_filter removes HTML tags that do not belong to a white list closes open tags and fixes broken ones removes javascript injections and black listed URLs makes text URLs

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
Thanks again Malcolm. It looks like this is starting to get beyond my comfort level. Given that and my time constraints, it looks like Selenium is a non-starter. I guess I'll just have to rely on humans to do that part of the testing. The Selenium IDE worked fine but unfortunately it's not possib

Re: myghtyboard forum problem

2007-03-09 Thread Michael K
On Mar 8, 6:41 pm, "zehi" <[EMAIL PROTECTED]> wrote: > All Right. It seems to be a problem somewhere else: > > Both, localy and on server I run python 2.5. It looks like, that > diamanda installation procedure is calling older python version > 2.4 ??? Is it possible? > > sample: > > [EMAIL PR

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 13:57 +, Paul Childs wrote: > Thanks again Malcolm. > > It looks like this is starting to get beyond my comfort level. Given > that and my time constraints, it looks like Selenium is a non-starter. > I guess I'll just have to rely on humans to do that part of the > testi

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Jeremy Dunck
On 3/9/07, Paul Childs <[EMAIL PROTECTED]> wrote: ... > (r'^ssi/', include('idms.ssi.urls')), > > (r'^idms/',"idms.general.views.idms" ), > I think, since the idms pattern is not being handled by an include, you may want this: (r'^idms/$',"idms.general.views.idms" ), (note the "$" at the

Using .values() on a query?

2007-03-09 Thread [EMAIL PROTECTED]
Pehraps I'm doing something wrong here. I should mention I am using the multiple-database branch, so perhaps it's a bug...but thought I'd check if my syntax is correct. I'm trying to trim down the data returned from a query to speed things up, as I only need three fields for this particular piec

Re: myghtyboard forum problem

2007-03-09 Thread [EMAIL PROTECTED]
zehi, this may be a dumb question, but do you have the wiki installed or just the board? On Mar 9, 8:15 am, "Michael K" <[EMAIL PROTECTED]> wrote: > On Mar 8, 6:41 pm, "zehi" <[EMAIL PROTECTED]> wrote: > > > > > All Right. It seems to be a problem somewhere else: > > > Both, localy and on server

Re: Using .values() on a query?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 14:39 +, [EMAIL PROTECTED] wrote: > Pehraps I'm doing something wrong here. I should mention I am using > the multiple-database branch, so perhaps it's a bug...but thought I'd > check if my syntax is correct. > > I'm trying to trim down the data returned from a query to

getting raw SQL queries

2007-03-09 Thread Iapain
Hello, I am writing a SQL logviewer for sql queries fired by django. If I use below code then i get an empty list of dictionary. from django.db import conneciton from django.conf import settings debug = settings.DEBUG #btw its always True, because i set it to true in my settings.py settings.DEBU

Re: Using .values() on a query?

2007-03-09 Thread [EMAIL PROTECTED]
Coffee hasn't kicked in yet...I figured it out about 5 minutes after asking... and was about to post back the same thing! Thanks! On Mar 9, 9:47 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-03-09 at 14:39 +, [EMAIL PROTECTED] wrote: > > Pehraps I'm doing something wrong h

Re: getting raw SQL queries

2007-03-09 Thread Ivan Sagalaev
Iapain wrote: > Hello, > > I am writing a SQL logviewer for sql queries fired by django. If I use > below code then i get an empty list of dictionary. > > from django.db import conneciton > from django.conf import settings > debug = settings.DEBUG #btw its always True, because i set it to true >

Re: getting raw SQL queries

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 14:50 +, Iapain wrote: > Hello, > > I am writing a SQL logviewer for sql queries fired by django. If I use > below code then i get an empty list of dictionary. > > from django.db import conneciton > from django.conf import settings > debug = settings.DEBUG #btw its alwa

Re: Testing Django App Running on Dev Server with Selenium

2007-03-09 Thread Paul Childs
Thanks Jeremy. > I think, since the idms pattern is not being handled by an include, > you may want this: > (r'^idms/$',"idms.general.views.idms" ), > (note the "$" at the end of the pattern). I made the change and tried again but it didn't make a difference. Cheers, /Paul --~--~-~--~

Re: getting raw SQL queries

2007-03-09 Thread Iapain
Yes, I think you are right, I suspected that but I tried in middleware too but its still empty. On Mar 9, 3:55 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Iapain wrote: > > Hello, > > > I am writing a SQL logviewer for sql queries fired by django. If I use > > below code then i get an empty li

Re: getting raw SQL queries

2007-03-09 Thread Iapain
Greetings Malcom! I think you are right, is it possible in django to log all SQL statement? Cheers! On Mar 9, 3:57 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-03-09 at 14:50 +, Iapain wrote: > > Hello, > > > I am writing a SQL logviewer for sql queries fired by django.

Re: getting raw SQL queries

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 15:05 +, Iapain wrote: > Greetings Malcom! > > I think you are right, is it possible in django to log all SQL > statement? No. You would need to do this yourself somehow. Regards, Malcolm --~--~-~--~~~---~--~~ You received this messag

Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread [EMAIL PROTECTED]
I was trying to figure out how exactly caching worked with the query sets... If I was running three different queries against the same table like below, I know it hits the DB each time: objects = MyObject.objects.fillter(object_name="value") # some code here objects = MyObject.objects.fillter(o

Re: Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 15:20 +, [EMAIL PROTECTED] wrote: > I was trying to figure out how exactly caching worked with the query > sets... > > If I was running three different queries against the same table like > below, I know it hits the DB each time: > > objects = MyObject.objects.fillter(o

choosing ajax framework (for my projects) :)

2007-03-09 Thread ashwoods
with so many choices, you dont really know where to start :( things like i would like to do. 1) update the contents of a div element with the content fading out and in (news on the first page) 2) select form elements that populate depending what the "parent" form element was chosen 3) when i cli

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread Igor Guerrero
http://jquery.com/ On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > > > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) > 2) select form elemen

Re: Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread Malcolm Tredinnick
On Sat, 2007-03-10 at 02:24 +1100, Malcolm Tredinnick wrote: > On Fri, 2007-03-09 at 15:20 +, [EMAIL PROTECTED] wrote: > > I was trying to figure out how exactly caching worked with the query > > sets... > > > > If I was running three different queries against the same table like > > below, I

trying to make select_related() work

2007-03-09 Thread akonsu
hello, the code below generates two queries to the database. is there a way to make it get all objects related to object 'aa' and then just look up the right one when get() is called? thanks konstantin class AA(models.Model) : name = models.SlugField() class BB(models.Model) : name = m

hi.very very good

2007-03-09 Thread engin kaya
http://www.wealthtoolbox.com/[EMAIL PROTECTED] http://www.leadexchanger.com/auto/join.html?ebibanzai Hi I want to say that your company is the best The genrous referral system and the perfect bar are the reason that cashfiesta is superior! thanx http://www.cashfiesta.com/php/join.php?re

Re: newb: Model.objects.select_related().get(id=4)

2007-03-09 Thread Atilla
On 08/03/07, johnny <[EMAIL PROTECTED]> wrote: > > class City(models.Model): > # ... > > class Person(models.Model): > # ... > hometown = models.ForeignKey(City) > > class Book(models.Model): > # ... > author = models.ForeignKey(Person) > edited = models.ForeignKey(Person)

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread Jay Parlar
On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) > 2) select form elements that populate depe

Re: howto add join table field?

2007-03-09 Thread Atilla
On 09/03/07, Greg Donald <[EMAIL PROTECTED]> wrote: > > How can I add a field in a join table? > > I have this: > > class Item(models.Model): > name = models.CharField(maxlength=32) > > class List(models.Model): > name = models.CharField(maxlength=32) > items = models.ManyToManyField(I

Re: select_related() does not select many-to-many relations?

2007-03-09 Thread Atilla
On 08/03/07, akonsu <[EMAIL PROTECTED]> wrote: > > hello, > > as the subject says, select_related() does not return many-to-many > relations. is this a feature or a bug? > > thanks > konstantin > > >From what I've seen select_related() always joins up the related tables and select their values. C

Re: trying to make select_related() work

2007-03-09 Thread akonsu
thanks for your response. well, i am trying to get a list of dependents of a given object in a single query. i want to be able to retrieve the dependents by key (the object name) from this list. i do not see any way of doing this but getting the query set and converting it to a dictionary manual

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread akonsu
hello, this page seems to have useful information: http://www.b-list.org/weblog/2006/08/05/django-tips-simple-ajax-example-part-2 konstantin On Mar 9, 11:20 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > > > > > > > > > with so many choices, you

Re: trying to make select_related() work

2007-03-09 Thread Atilla
On 09/03/07, akonsu <[EMAIL PROTECTED]> wrote: > > hello, > > the code below generates two queries to the database. is there a way > to make it get all objects related to object 'aa' and then just look > up the right one when get() is called? > > thanks > konstantin > > class AA(models.Model) : >

Re: trying to translate a join query to django

2007-03-09 Thread Atilla
On 07/03/07, hotani <[EMAIL PROTECTED]> wrote: > > This is the table (model) setup: > [county] (list of counties) > [office] (list of offices) > [active counties] (a relational table with a county_id, office_id and > 'active' column) > [division] (columns: 'name', 'county_id' which points to the f

Re: select_related() does not select many-to-many relations?

2007-03-09 Thread noelbk
select_related() does not include tables that can be NULL. That makes it hard to do inner joins with django. search for the "DjSelect" topic in this group. On Mar 9, 8:29 am, Atilla <[EMAIL PROTECTED]> wrote: > On 08/03/07, akonsu <[EMAIL PROTECTED]> wrote: > > > > > hello, > > > as the subject

Re: Api and user auth

2007-03-09 Thread Atilla
On 07/03/07, Grupo Django <[EMAIL PROTECTED]> wrote: > > Hello, I have two questions: > > -Where can I browse the django API? > > - I have made a news app. One of the fields is author, i want to set > its default value to the username logged in the admin zone. How could > I do it? What do I have t

Re: video uploads (like you tube)

2007-03-09 Thread Pixael
Heya If you check out this article on Daniels Random Mutterings you will find the complete lowdown on uploading and converting video through a django application, bear in mind you need a dedicated server of sorts for this because you need to call on various open source applications to compress th

Bug? Every table needs a id?

2007-03-09 Thread Jens Diemer
I have a (old) Model like this: class SessionData(models.Model): session_id = models.CharField(maxlength=96) expiry_time = models.DateTimeField() ip = models.CharField(maxlength=45) domain_name = models.CharField(maxlength=150)

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread neror
9:16 am, "ashwoods" <[EMAIL PROTECTED]> wrote: > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) MochiKit.DOM and MochiKit.Visual > 2) select

Re: changed template syntax?

2007-03-09 Thread Malcolm Tredinnick
Hi Sean, On Fri, 2007-03-09 at 23:31 +1100, Malcolm Tredinnick wrote: > On Fri, 2007-03-09 at 04:14 -0800, sean wrote: > > I'm having a problem with changeset 4676, that breaks some of my > > forms. > > These are oldforms, since I haven't had the time to update the whole > > site to newforms. > >

Re: select_related() does not select many-to-many relations?

2007-03-09 Thread akonsu
thanks for your responses my problem is with many-to-many relationships, not with foreign keys. that is, the scope of my problem is much bigger than nulls in foreign key fields :) getting objects linked by foreign keys is much simpler than getting objects related through many-to-many association

Re: Permalink decorator and generic views

2007-03-09 Thread dchandek
> Any suggestion as to how we could differentiate amongst them? > > At thepermalinkdecoratorfinds the first match given the view and the > parameters. If there are multiple matches, we have to make a choice > somehow, right? Sadly, I don't have a suggestion. My point was merely that, while permal

Re: Bug? Every table needs a id?

2007-03-09 Thread Jeremy Dunck
On 3/9/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > > I have a (old) Model like this: > > class SessionData(models.Model): > session_id = models.CharField(maxlength=96) Change to: session_id = models.CharField(maxlength=96, primary_ke

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread [EMAIL PROTECTED]
I'll put in another vote for jquery, but really the beauty of Django is that you use whatever library feels right to you. Jquery, Mochikit, Dojo, prototype, roll-your-won... Django is agnostic. As it should be. On Mar 9, 11:06 am, "neror" <[EMAIL PROTECTED]> wrote: > 9:16 am, "ashwoods" <[EMAIL

Newforms and custom validators

2007-03-09 Thread Andreas Ahlenstorf
Hi, I'm trying to build a form using newforms and I like to attach some custom validators to my fields. Unfortunately the docs don't mention how I'm supposed to do it. I already looked trought the code, but as a Python novice I wasn't able to find some replacement for the old validator_li

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread aaloy
2007/3/9, ashwoods <[EMAIL PROTECTED]>: > > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) > 2) select form elements that populate depending w

Re: Newforms and custom validators

2007-03-09 Thread anders conbere
You'll be wanting to add clean_ methods to the Form class definition. check out the forms tests and search for clean_xxx http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/tests.py you can see an example of use here: http://code.google.com/p/django-registration/ ~ A

Re: video uploads (like you tube)

2007-03-09 Thread James Bennett
On 1/25/07, Pythoni <[EMAIL PROTECTED]> wrote: > Is http://www.kindfish.com/ > really Dajngo powered, including uploading? > Lad They claim to be. I haven't seen their source code, but I have no reason to suspect they'd lie about using Django... -- "Bureaucrat Conrad, you are technically correc

Document type/Charset issues?

2007-03-09 Thread [EMAIL PROTECTED]
In my templates, I set http://www.w3.org/1999/xhtml";> and but I have reason to believe one or both of those are not being understood. When I go to http://access.ex.ac.uk/ to get a lynx-eye view of my site, it says "This document is of type (unknown) which I do not understand." also, google

Re: Document type/Charset issues?

2007-03-09 Thread [EMAIL PROTECTED]
Disregard doctype question. That viewer is broken. I am still wondering about charset. Thanks. On Mar 9, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In my templates, I set > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml";> > and > > > but

Re: myghtyboard forum problem

2007-03-09 Thread Richard Zehnal
Thank you guys. Yes, I have installed the wiki as well and as I said, everything works just fine. The only problem I have is with adding new forum. And yes, recently the last error message, but ir might be for due some other mistake. Michael, you were right about my mess with different python

Re: Earn $1 per hour. Just surf online.

2007-03-09 Thread mordaunt
wow! what's the website of this company? the link you gave didn't work. > I found a great Internet company - Cashfiesta.com - that has created a > product everyone can benefit from. They pay you while you work or play > on your computer. All you need to do is keep their software - the > FiestaBar

Re: myghtyboard forum problem

2007-03-09 Thread [EMAIL PROTECTED]
Definitely go into phpmyadmin or something and see what the default value for forum_topics is. Should be 0. On Mar 9, 3:31 pm, "Richard Zehnal" <[EMAIL PROTECTED]> wrote: > Thank you guys. > > Yes, I have installed the wiki as well and as I said, everything works > just fine. The only problem I h

Re: myghtyboard forum problem

2007-03-09 Thread Richard Zehnal
This is view from my database table: Database zehi - Table myghtyboard_forum Field TypeLength Not NullDefault Action id int44 Yes nextval('myghtyboard_forum_id_seq'::regclass) Change DropIndex Unique forum_category_id int44

Re: myghtyboard forum problem

2007-03-09 Thread [EMAIL PROTECTED]
Exactly... even though your formatting got lost, you see where forum- topics has no default value? That's your problem. Modify that field that 0 is the default value. I still don't know why it happened, though. On Mar 9, 3:41 pm, "Richard Zehnal" <[EMAIL PROTECTED]> wrote: > This is view from my

Re: Newforms and custom validators

2007-03-09 Thread Andreas Ahlenstorf
> http://code.djangoproject.com/browser/django/trunk/tests/ > regressiontests/forms/tests.py > > you can see an example of use here: > http://code.google.com/p/django-registration/ Thank you for the pointer. That's what I was looking for. A. --~--~-~--~~~---~--~

Tutorial part 2, Problem with edit_inline

2007-03-09 Thread Rotlaus
Sorry for the maybe dumb question, but i'm new to python and django. I#M just following th tutorial and have a problem at part 2 of it. When adding the edit_inline parameter to the poll foreign key as stated in the tutorial i get this error message: KeyError at /admin/polls/poll/1/ "Could not fin

Using monit for django ;)

2007-03-09 Thread mamcxyz
Ok, I was tired to manually restart django in my VPS (have low memory) so I start to looking around how do it in a automated fashion. I found monit http://www.tildeslash.com/monit/doc/manual.php and found it easy: To help other hewbies around, this is my setup (for Centos): #Check at 2 min set

Using monit for django ;)

2007-03-09 Thread mamcxyz
Ok, I was tired to manually restart django in my VPS (have low memory) so I start to looking around how do it in a automated fashion. I found monit http://www.tildeslash.com/monit/doc/manual.php and found it easy: To help other hewbies around, this is my setup (for Centos): #Check at 2 min set

Re: Django keeps growing, performance keeps dropping

2007-03-09 Thread [EMAIL PROTECTED]
I still don't have slow query logging set up, but I am looking at my database, and what jumped out was: Handler_read_rnd3,013 k The number of requests to read a row based on a fixed position. This is high if you are doing a lot of queries that require sorting of the result. You probably h

Inline incompatibility/issue?

2007-03-09 Thread Rob J Goedman
Hi, If I upgrade to revision 4693 (or higher) I get below error. Revision 4692 works fine. Any hints? I did start to play with unique_together earlier today when I noticed it, but don't think that's the reason. It's currently (and has been for several months) commented out. Another small i

Re: Inline incompatibility/issue?

2007-03-09 Thread James Bennett
On 3/9/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > If I upgrade to revision 4693 (or higher) I get below error. Revision 4692 > works fine. I need to do some digging to see what's up with that; it's definitely the changeset, not your code. -- "Bureaucrat Conrad, you are technically correct -

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread James Bennett
On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > id say pretty simple stuff. but where should i start? prototype, mojo, > mochi, and thousands of others. > what would you recommend, those of you who have experience? :) I wrote up some purely subjective thoughts on this a while back: http://www.b

Re: Inline incompatibility/issue?

2007-03-09 Thread James Bennett
On 3/9/07, James Bennett <[EMAIL PROTECTED]> wrote: > I need to do some digging to see what's up with that; it's definitely > the changeset, not your code. (and that changeset has been backed out) -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~

Re: Tutorial part 2, Problem with edit_inline

2007-03-09 Thread Rob J Goedman
Thanks James, The slightly earlier message by Rotlaus points to the same issue. Rotlaus, If you are using svn, doing an ' svn -r 4692 up ' in the django_src dir followed by ' python setup.py install ' will make the model work. Rob On Mar 9, 2007, at 2:39 PM, James Bennett wrote: > > On 3/9

Re: trying to translate a join query to django

2007-03-09 Thread hotani
Thanks, I'll give that a shot. I did try something similar but it did not work for some reason. The active column in the activeOffices model is there because some relationships exist but are inactive. For example, I could have a county that used to be under a certain office, but is no longer. In

Re: trying to translate a join query to django

2007-03-09 Thread hotani
Very nice! This works: div_list = Division.objects.filter(county__activecounties__active=True,county__activecounties__office=office,active=True) Although I am glad to have my manual query function working (I'm sure I'll need it later), it is really nice to know django can handle the relationship

debugging/breakpointing

2007-03-09 Thread Greg Donald
Is there anything like Rubyonrails's script/breakpointer: http://wiki.rubyonrails.org/rails/pages/HowtoDebugWithBreakpoint in Django (or Python)? I found http://docs.python.org/lib/module-pdb.html but I'm wanting something where I can gain console access into the execution stack directly. Fail

Re: debugging/breakpointing

2007-03-09 Thread Baurzhan Ismagulov
Hello Greg, On Fri, Mar 09, 2007 at 05:53:44PM -0600, Greg Donald wrote: > I found http://docs.python.org/lib/module-pdb.html but I'm wanting > something where I can gain console access into the execution stack > directly. What do you mean by "access into the execution stack directly"? With "Pyt

0also photos

2007-03-09 Thread [EMAIL PROTECTED]
0also photos http://www.0alsoufia.jeeran.com http://0alsoufia.jeeran.com/photo.html http://0alsoufia.jeeran.com/photo.html http://www.0alsoufia.jeeran.com 6309 http://www.0alsoufia.jeeran.com http://0alsoufia.jeeran.com/photo.html http://0alsoufia.jeeran.com/photo.html http://www.0alsoufia.jeeran

Re: Permalink decorator and generic views

2007-03-09 Thread Malcolm Tredinnick
On Thu, 2007-03-08 at 08:57 -0800, dchandek wrote: > I was happy to find the addition of the permalink decorator in the > development version as a help in removing hardcoded paths from > get_absolute_url() methods. > > Unfortunately, using it requires that you define a custom view (even > if the

Re: howto add join table field?

2007-03-09 Thread Malcolm Tredinnick
On Thu, 2007-03-08 at 21:04 -0600, Greg Donald wrote: > How can I add a field in a join table? > > I have this: > > class Item(models.Model): > name = models.CharField(maxlength=32) > > class List(models.Model): > name = models.CharField(maxlength=32) > items = models.ManyToManyFiel

Re: Preliminary or draft Django Book as PDF?

2007-03-09 Thread Dave Lists
Hi Adrian, I'm intrested in getting the book as soon as it is released. So two questions: 1) Have you got a firm release date 2) Will it be later here in the UK? Regards, Dave Adrian Holovaty wrote: > On 2/13/07, voltron <[EMAIL PROTECTED]> wrote: >> I think it would be cool to be able to

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread limodou
On 3/9/07, Igor Guerrero <[EMAIL PROTECTED]> wrote: > http://jquery.com/ > > On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > > > > with so many choices, you dont really know where to start :( > > > > things like i would like to do. > > > > 1) update the contents of a div element with the content

Re: debugging/breakpointing

2007-03-09 Thread Greg Donald
On 3/9/07, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > What do you mean by "access into the execution stack directly"? Perhaps I am not using the correct terminology. When I create a view that handles a form post, how can I interrogate the request.POST? How can I breakpoint just as executio

Re: Using .values() on a query?

2007-03-09 Thread [EMAIL PROTECTED]
Is there a way to load a related object by still using .values()? For example I have: class Company(models.Model): company_id = models.AutoField(primary_key=True) parent_company = models.ForeignKey("self",null=True) address = models.ForeignKey('Address',related_name="company_address"

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread theju
Well almost every Ajax framework will work with Djangobut for your requirements, Scriptaculous (based on Prototype) fits perfectly. Check out http://script.aculo.us They also have an article on their wiki for integrating Django and Scriptaculous. Hope you find it useful. -Thejaswi Puthraya On

Re: We have telugu

2007-03-09 Thread theju
First of all let me congratulate Kenneth and his developers for their awesome work. Django will start catching on real fast in India now. Great Work MatesKeep it up. Regards Thejaswi Puthraya --~--~-~--~~~---~--~~ You received this message because you are su

Re: debugging/breakpointing

2007-03-09 Thread Ned Batchelder
PDB lets you do what you want. I use the low-tech approach: in the view I want to debug, I add a line of code which invokes pdb: def my_view(request, arg1, arg2): import pdb; pdb.set_trace() # The rest of the view code... set_trace() is the function which breaks into the debugger. Yes,

Re: Api and user auth

2007-03-09 Thread James Bennett
On 3/7/07, Grupo Django <[EMAIL PROTECTED]> wrote: > - I have made a news app. One of the fields is author, i want to set > its default value to the username logged in the admin zone. How could > I do it? What do I have to import to use request.username? so I would > do: default= request.username,

Re: Using .values() on a query?

2007-03-09 Thread [EMAIL PROTECTED]
Ok...if there is a better way to do this...please let me know..but since I couldn't figure out how to get the office_set populated...I just did this: all_companies = Company.objects.all().order_by('company_name').distinct()#.values('company_id','company_name') #offices for the com

Re: Document type/Charset issues?

2007-03-09 Thread James Bennett
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > also, google webmaster tools reports that the majority (about 80%, but > not all) of the site is US-ASCII, not UTF-8 The 'meta' element is basically meaningless; it's used as a last resort when no other information is available. Your serv

Re: We have telugu

2007-03-09 Thread Kenneth Gonsalves
On 10-Mar-07, at 8:59 AM, theju wrote: > First of all let me congratulate Kenneth and his developers for their > awesome work. Django will start catching on real fast in India now. we are not very confident of the quality of the telugu translation, so please go through it and make the necessa

Re: debugging/breakpointing

2007-03-09 Thread Greg Donald
On 3/9/07, Ned Batchelder <[EMAIL PROTECTED]> wrote: > PDB lets you do what you want. Yup.. thanks. Is there a way to get tab completion working? Or make it use ipython? I seem to have command history, but not across sessions? -- Greg Donald http://destiney.com/ --~--~-~--~~-

Re: Inline incompatibility/issue?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 16:39 -0600, James Bennett wrote: > On 3/9/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > If I upgrade to revision 4693 (or higher) I get below error. Revision 4692 > > works fine. > > I need to do some digging to see what's up with that; it's definitely > the changeset, n

Re: Using .values() on a query?

2007-03-09 Thread Malcolm Tredinnick
On Sat, 2007-03-10 at 03:03 +, [EMAIL PROTECTED] wrote: > Is there a way to load a related object by still using .values()? [... example snipped ...] > And for company I only want to > load .values('company_name','company_id') , but for each company in > the result set...I want to be able to

Re: Api and user auth

2007-03-09 Thread risomt
While I thoroughly agree with the above two, I'll go one step further and say you should probably never put any code that sets admins (superusers, or even straight access to django admin console) into code whatsoever. To help you out with a direct answer: django has no difference between admin a

Re: Api and user auth

2007-03-09 Thread risomt
Actually, what I said is a bit wrong. To fill the author field correctly you should use a foreign key that points to the User model (again, assuming you're using the builtin django.contrib.auth User). On Mar 10, 2:21 am, "risomt" <[EMAIL PROTECTED]> wrote: > While I thoroughly agree with the abo

Re: Inline incompatibility/issue?

2007-03-09 Thread Malcolm Tredinnick
On Sat, 2007-03-10 at 15:53 +1100, Malcolm Tredinnick wrote: > On Fri, 2007-03-09 at 16:39 -0600, James Bennett wrote: > > On 3/9/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > > If I upgrade to revision 4693 (or higher) I get below error. Revision 4692 > > > works fine. > > > > I need to do so