capturing multiple events on a signle date in a Calendar app

2007-12-19 Thread Ramdas S
Hi, I am designing a tender calendar, where each tender goes through about 10-12 stages, each stage happening on a seperate date. I have multiple tenders happening in a month, which means on a date, you might have different stages of different tenders opening. I have two classes Class Tendert(m

Re: Passing a dictionary as a query argument?

2007-12-19 Thread ivan.illarionov
It would be safer to also use base64.encodestring(pickle.dumps(python_data)) and pickle.loads(base64.decodestring(db_data)) just like Django's db cache does. Pickle data is binary and is not good for TextField On 17 дек, 15:08, Ned Batchelder <[EMAIL PROTECTED]> wrote: > If I understand what you'

Re: should I uninstall/reinstall? how? ubuntu specific quetion

2007-12-19 Thread Eduardo - IdNotFound
On Dec 20, 2007 1:06 AM, pug2694328 <[EMAIL PROTECTED]> wrote: > > However, when delving into tutorials they keep referring to the > subversion version of Django. As someone already pointed out, docs for 0.96 are avaiable on the website. > How do I uninstall all versions of Django on my Ubuntu

Re: Making translations appear without server restart?

2007-12-19 Thread Rajesh Dhawan
> As I mentioned in my other post, it doesn't work for the one process. My previous code snippet missed an important statement. You will need to first get an instance of _transactions from trans_real.py before you declare it to be global. So, check if something like this helps: from django.utils

Re: should I uninstall/reinstall? how? ubuntu specific quetion

2007-12-19 Thread Tim Riley
Here is a link to the 9.6 docs. The link shows on the SVN docs at the top as well. http://www.djangoproject.com/documentation/0.96/ On Dec 19, 2007 10:06 PM, pug2694328 <[EMAIL PROTECTED]> wrote: > > Newbie question. > > I've installed Django using the synaptic package manager, it's an > officia

Re: Many2Many Lookup query

2007-12-19 Thread Jeremy Dunck
On Dec 19, 2007 2:20 AM, Julien <[EMAIL PROTECTED]> wrote: ... > So far, my query looks like this: > (Thread.objects.filter(message__sender=request.user) | > Thread.filter(message__recipients=request.user)).distinct() > > I'm not sure about the "message__recipients=request.user". > Do you know how

should I uninstall/reinstall? how? ubuntu specific quetion

2007-12-19 Thread pug2694328
Newbie question. I've installed Django using the synaptic package manager, it's an official release (0.96) which I think is the latest. However, when delving into tutorials they keep referring to the subversion version of Django. Some of the functionality they reference doesn't seem to be presen

Re: Installing mod_python in xampp

2007-12-19 Thread cjl
Rex: You might want to check out my stupid little project: http://www.instantdjango.com It's a portable and standalone Django development environment for Windows. It uses the built in Django development server, and sqlite as the database backend. It's due for some updates and bugfixes, and I r

Re: Installing mod_python in xampp

2007-12-19 Thread Jeff Anderson
Hello, If you want to get started with django, follow the tutorial "Writing your first Django app" located at http://www.djangoproject.com/documentation Django includes a built in development server. It makes it so you can pretty much start using django right away, and you can worry about mod_pytho

Installing mod_python in xampp

2007-12-19 Thread Rex Eastbourne
Hello, I am new to web development (but not to programming) and am interested in trying out Django. What is the easiest way to get started? I have xampp working, but I'm running into a roadblock getting the mod_python add-on installed. I have seen the following instructions: http://addons.xampp.

Re: Making translations appear without server restart?

2007-12-19 Thread James
Sorry, I replied to your first post before I saw this one.. On Dec 19, 4:28 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi again, > On second thoughts, I think you will need to do more work than this > since this will only force a reload of the translations within the > current process. Other

Re: Making translations appear without server restart?

2007-12-19 Thread James
On Dec 19, 4:07 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > > I tried calling translation.deactivate_all() and then calling > > translation.activate() from my code but > > apparently only a restart does the trick. > > > Does anyone know how to make Django's i18n machinery pick up new

Any SELECT returns no results via Django

2007-12-19 Thread Gloria W
I am boggled. A SELECT from the MySql command line works just fine. But within Django, it returns nothing. It doesn't matter what SQL statement I issue. Here is my syntax: from django.db import connection cursor = connection.cursor() cursor.execute("use editorial_production_2007_12_14; SEL

Re: Making translations appear without server restart?

2007-12-19 Thread Rajesh Dhawan
Hi again, > > Try something like this. Hopefully this will clear out the global > translations and force a reload: > > translation.deactivate_all() > globals _translations > _translations = {} > translation.activate() > > See django.utils.translation.trans_real for more. On second thoughts, I th

Re: How do you serialize a newform.errors dictionary?

2007-12-19 Thread Andrew
EDIT: json.dumps(force_unicode(form.errors)) works but triggers the dictionary-to-html conversion. On Dec 19, 3:41 pm, Andrew <[EMAIL PROTECTED]> wrote: > This is code that was working until sometime circa rev 6500... > > Assuming we have a newform object named form with errors in it: > > impor

Re: Making translations appear without server restart?

2007-12-19 Thread Rajesh Dhawan
Hi, > I tried calling translation.deactivate_all() and then calling > translation.activate() from my code but > apparently only a restart does the trick. > > Does anyone know how to make Django's i18n machinery pick up new > translations as soon as they are generated? Try something like this. Ho

Re: How to get named url patterns from inside a view function

2007-12-19 Thread Arkadiusz Oleksy
On 19 Gru, 18:02, shabda <[EMAIL PROTECTED]> wrote: > I can get access to a named url from within a template by using {% url > %} tag. What can I do to get access to named url from a view function? use reverse() method: http://www.djangoproject.com/documentation/url_dispatch/#reverse --~--~

How do you serialize a newform.errors dictionary?

2007-12-19 Thread Andrew
This is code that was working until sometime circa rev 6500... Assuming we have a newform object named form with errors in it: import django.utils.simplejson as json json.dumps(form.errors) gives: : is not JSON serializable In the shell, and fails silently in view code. If we do: json.dumps

Re: django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
My two models are below, class Customer(models.Model): name = models.CharField(maxlength=100) service = models.CharField(max_length=20,blank=True, default=4, choices=SERVICE_CODES) company = models.CharField(core=True,max_length=20,blank=True, default=4, choices=CUSTOMER_TYPES) e

django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
Hello, I have built an entry form using django.views.generic.list_detail much like the one shown here, http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms The only problem is my model has a foreign key that uses edit_inline. Can anyone point me in the right direction how to get

Re: i18n/setlang no longer support GET

2007-12-19 Thread James Bennett
On Dec 19, 2007 12:59 PM, Poromenos <[EMAIL PROTECTED]> wrote: > My application's UI depends on the set_language view being a link, and > I don't think it should be up to the framework to force this on the > developer. It would be better if the view supported both ways and the > developer could ch

django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
Hello, I have built an entry form using django.views.generic.list_detail much like the one shown here, http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms The only problem is my model has a foreign key that uses edit_inline. Can anyone point me in the right direction how to get

Making translations appear without server restart?

2007-12-19 Thread James
Hello, I have developed a Django application that provides an interface for editing gettext message files in a Django project. It accepts translations from English to a different language, merges those translations with the existing message catalog, then does a recompile on the message files. Unf

Re: Upgraded python2.4 to python2.5 but Django still running on python2.4

2007-12-19 Thread Graham Dumpleton
On Dec 20, 7:19 am, Nabuco <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm pretty new to Python so the answer to my problem may be obvious, > but I can't get to this folks. > > After installing python2.5 from sources, I switched the symlink in / > usr/bin/python to point to /usr/local/bin/python. Whe

Re: Models with multiple foreignkeys ( adding values )

2007-12-19 Thread [EMAIL PROTECTED]
Thanks, That did the trick. I tried to save a client like that but got an error that's why i thought it didn't work like that. didn't pay attention to the _id. thanks for the help. Richard On Dec 19, 10:17 pm, Jan Rademaker <[EMAIL PROTECTED]> wrote: > On Dec 19, 8:57 pm, "[EMAIL PROTECTED]" <

manage.py runserver error psycopg2 not loading

2007-12-19 Thread Shinmaikeru
py25-psycopg2 is installed, and it is the psycopg2 for python 2.5 If I install py-psycopg, Ports also installs Python 2.4. These issues consumed my Tuesday. I had postgres81 and postgres82, Python 2.4 and Python 2.5 installed because of the dependencies thing with Ports and my own downloading of

Re: Models with multiple foreignkeys ( adding values )

2007-12-19 Thread Jan Rademaker
On Dec 19, 8:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello Ben, > > I'm not really sure what you mean by leave the _id out. > What i did with the sponsor_id and method_id was getting the correct > objects from the Method and Sponsor class > He means there is no reason the append

Admin stylesheet used when defined stylesheet not found?

2007-12-19 Thread Petar
Dear more experienced django users, I have setup my media directories in settings.py and everything works correctly. The thing is that I noticed when I deliberatly link to a non-existent stysleheet in my template my website is still styled with (the admin?) stylesheet. Is it normal that Django u

Very Easy Question

2007-12-19 Thread Trev
Hi, This should take 2 seconds for an experience Django user. I'm trying to install Django on windows XP. I've installed python 2.5 and MySQL with MySQLdb as the interface. However when I try installing django from DOS I get this error C:\Django-0.96.1>setup.py install running install running bui

Upgraded python2.4 to python2.5 but Django still running on python2.4

2007-12-19 Thread Nabuco
Hi all, I'm pretty new to Python so the answer to my problem may be obvious, but I can't get to this folks. After installing python2.5 from sources, I switched the symlink in / usr/bin/python to point to /usr/local/bin/python. When I run a python shell, everything is OK (it tells I'm on python2.

Re: Models with multiple foreignkeys ( adding values )

2007-12-19 Thread [EMAIL PROTECTED]
Hello Ben, I'm not really sure what you mean by leave the _id out. What i did with the sponsor_id and method_id was getting the correct objects from the Method and Sponsor class The Client class i believe is a attribute of both ( Sponsor and Method ) If you use only one ForeignKey the normal cod

Add geo tag to RSS

2007-12-19 Thread Daniel de la Cuesta
Hi all, I want to add the geo tag (with latitude and longitude) to each item of my feeds: 45.256 -71.92 I am using the feeds framework: class LatestEvents(Feed): title = "Latest Events" link = "/events/" def items(self): return Event.objects.order_by('-start_

Re: i18n/setlang no longer support GET

2007-12-19 Thread Antoni Aloy
2007/12/19, Poromenos <[EMAIL PROTECTED]>: > > I mistakenly replied to James instead of everyone, so I will rewrite > my reply. > > My application's UI depends on the set_language view being a link, and > I don't think it should be up to the framework to force this on the > developer. It would be

Re: Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
> Judging by the examples it looks like you need that Renderer class, > e.g.: > > DR = Renderer() > DR.Write(doc, response) > That got it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: "Best" way to save / restore python list to db

2007-12-19 Thread Doug B
http://www.djangosnippets.org/snippets/377/ I've been using a slightly modified version of this JSONField snippet for a while now, and it's been really useful for storing info that doesn't quite fit a field field. I had to make these changes to get it to work in .96 and let the admin edit the mo

Re: i18n/setlang no longer support GET

2007-12-19 Thread Poromenos
I mistakenly replied to James instead of everyone, so I will rewrite my reply. My application's UI depends on the set_language view being a link, and I don't think it should be up to the framework to force this on the developer. It would be better if the view supported both ways and the developer

Re: Is there a HTML table widget for Django?

2007-12-19 Thread Joel Bernstein
I've always wanted a widget like that to replace the current many-to- many selection widgets with a simple list of checkboxes. On Dec 19, 10:15 am, Jonathan Buchanan <[EMAIL PROTECTED]> wrote: > shabda wrote: > > Is there a widget which can generate HTML tables from within django? > > > My requir

Re: Outputting MS word-friendly format

2007-12-19 Thread J. Cliff Dyer
[EMAIL PROTECTED] wrote: > Thanks.. that's close, but I can't seem to get it to work properly > from within Django; > > They give an example like this: > def MakeExample1() : > doc = Document() > ss = doc.StyleSheet > section = Section() > doc.Sections.append( sect

Re: Outputting MS word-friendly format

2007-12-19 Thread Jan Rademaker
On Dec 19, 6:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks.. that's close, but I can't seem to get it to work properly > from within Django; > > They give an example like this: > def MakeExample1() : > doc = Document() > ss = doc.StyleSheet > sec

Re: "Best" way to save / restore python list to db

2007-12-19 Thread Marty Alchin
On Dec 19, 2007 12:41 PM, Norman Harman <[EMAIL PROTECTED]> wrote: > Now I find my self needing to save lists and restore python lists from db. > > save is np. > > def save(self): > # must convert to_email list into string > self.to_email = repr(self.to_email) > su

Re: Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
Thanks.. that's close, but I can't seem to get it to work properly from within Django; They give an example like this: def MakeExample1() : doc = Document() ss = doc.StyleSheet section = Section() doc.Sections.append( section ) section.append( 'A

"Best" way to save / restore python list to db

2007-12-19 Thread Norman Harman
I made a sublcass of DjangoEmailMessage that stores email in db for later batch processing. class EmailMessage(DjangoEmailMessage): def send(self): email = Email(status=Email.STATUS_NEW, from_email=self.from_email, to_email=self.to, email.save() return True A r

Re: Models with multiple foreignkeys ( adding values )

2007-12-19 Thread Ben Ford
Try this: class Clients(models.Model): labcode = models.AutoField(primary_key = True) invoiceNr = models.IntegerField() sponsor = models.ForeignKey(Sponsor) method = models.ForeignKey(SubmitMethod) sponsor_id is the actual value stored in the db (i.e the pk value of th

Re: Outputting MS word-friendly format

2007-12-19 Thread hedronist
The short answer is that Django templates are format agnostic. They don't know anything about HTML so you can output pretty much anything that looks like text from a template. But if what you are returning is *not* HTML, remember to set the optional 'mimetype' param to HttpResponse. For example,

How to get named url patterns from inside a view function

2007-12-19 Thread shabda
I can get access to a named url from within a template by using {% url %} tag. What can I do to get access to named url from a view function? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Outputting MS word-friendly format

2007-12-19 Thread Jökull
A quick google returned this: http://pyrtf.sourceforge.net/ On Dec 19, 3:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Like the title says, I'd like to output a word-friendly format. > Obviously plain text is trivial, but I'd like to have a doc or at > least rtf format. Can anyone point

Models with multiple foreignkeys ( adding values )

2007-12-19 Thread [EMAIL PROTECTED]
Hello Django Users, I just started working with django again but i'm running into some troubles adding values into my database. just for an example i made the following three tables class Method(models.Model): method_id = models.AutoField(primary_key=True) methodName = models.Ch

Re: Saving image

2007-12-19 Thread Marty Alchin
On Dec 19, 2007 11:28 AM, Jiri Barton <[EMAIL PROTECTED]> wrote: > My question is still the same though; is this the right way to work > with ImageField (FileField)? I still feel this is awkward. One has to > call methods on the model instead methods on the field to update it. Currently, that is

Re: DateField and output/input versus SelectDateWidget

2007-12-19 Thread Jan Rademaker
On Dec 19, 3:16 pm, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > hello everyone, > > A) > if you render a DateField it renders as: /MM/DD and then you have to > tell the user he should use the input_format ( which is MM/DD/ by > default) which is kind of duh! :) I wrote some

Re: Saving image

2007-12-19 Thread Jiri Barton
Thanks for the quick reply. I have had request.FILES in there; my problem was I misspelled the field name in the template. My question is still the same though; is this the right way to work with ImageField (FileField)? I still feel this is awkward. One has to call methods on the model instead me

"url" template function problem

2007-12-19 Thread Trochalakis Christos
Hello there, I'm trying to use the "url" template function but i cant make it work. My attempt: urls.py: urlpatterns = patterns('', url(r'^$', date_based.archive_index, entry_info, name = 'blog_index'), url(r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/(?P[- \w]+)/$',

Re: Is there a HTML table widget for Django?

2007-12-19 Thread Jonathan Buchanan
shabda wrote: > Is there a widget which can generate HTML tables from within django? > > My requirement is that I have a list of ModelObjects. Now I want to > provide a UI where user can select a number of the ModelObjects, and > then press the delte button to delte them or take a action on all o

Re: Saving image

2007-12-19 Thread Marty Alchin
I'm guessing the problem is in one of the "..." portions of your view. In particular, I'd be interested to see how you're instantiating your form. If you're using "Information(request.POST)", that's your problem. Try using "Information(request.POST, request.FILES)" instead, and see if that helps.

Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
Like the title says, I'd like to output a word-friendly format. Obviously plain text is trivial, but I'd like to have a doc or at least rtf format. Can anyone point me in the right direction? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Saving image

2007-12-19 Thread Jiri Barton
I used to store images in the database. Now I want to store them on a disk. I have the following model: class User(models.Model): image = modes.ImageField(upload_to='userimages') ... then, I have a new form like class Information(forms.Form): image = forms.ImageField(required=False)

Is there a HTML table widget for Django?

2007-12-19 Thread shabda
Is there a widget which can generate HTML tables from within django? My requirement is that I have a list of ModelObjects. Now I want to provide a UI where user can select a number of the ModelObjects, and then press the delte button to delte them or take a action on all of them. What I am doing

Re: using "select_related" .Does it works?

2007-12-19 Thread Rufman
Never mind...I found the problem. It wasn't select_related() ;) On Dec 19, 11:53 am, Rufman <[EMAIL PROTECTED]> wrote: > I'm using select_related() and when I debug (eclipse and pydev) I can > see that the ForeignKey references are cached. But somehow I still hit > the database (unnecessarily in

Re: os x tiger macports install postgres81 python25 - py25-psycopg2 python manage.py runserver error

2007-12-19 Thread David Reynolds
On 19 Dec 2007, at 8:49 am, Shinmaikeru wrote: > > Django newbie here just trying to get an environment going so that I > can say goodbye to PHP and make python/django my native tongue. > > I went through several installs using various images and then > uninstalls and such before finally install

Re: How to do a bulk update?

2007-12-19 Thread Malcolm Tredinnick
On Wed, 2007-12-19 at 06:25 -0800, shabda wrote: > Ah. I see this ticket has a patch. Any thing specific this is waiting > for? The patch attached to the ticket doesn't do anything useful. It's exactly the same as doing the loop in your own code. If we're going to add an update method, it shoul

Re: How to do a bulk update?

2007-12-19 Thread shabda
Ah. I see this ticket has a patch. Any thing specific this is waiting for? Since I was really hoping for something like this, any thing specific I can help you with to close this? (I have not really looked inside Django, but I may be able to help you test it?) On Dec 19, 6:45 pm, Malcolm Tredinni

Re: TestCase breaks on contenttypes - possible bug in trunk?

2007-12-19 Thread crybaby
I am getting this error when I run syncdb command in linux and get this error: ValueError: list.remove(x): x not in list How did you fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

DateField and output/input versus SelectDateWidget

2007-12-19 Thread Bram - Smartelectronix
hello everyone, A) if you render a DateField it renders as: /MM/DD and then you have to tell the user he should use the input_format ( which is MM/DD/ by default) which is kind of duh! :) B) if you use the SelectDateWidget (in the code but not in the docs) it will only work with

Re: How to do a bulk update?

2007-12-19 Thread Malcolm Tredinnick
On Wed, 2007-12-19 at 05:35 -0800, shabda wrote: > I have a QuerySet returned by a call like this > > foos = Foo.objects.filter(id__in = [1, 2, 3]) > > Now I want to update each of these elements' attributes to a specific > value. What I need to do is some thing like, > > for foo in foos: >

Re: sending >500 emails using send_email in a for loop

2007-12-19 Thread Itai Tavor
Hi Peter, On 19/12/2007, at 8:18 AM, Peter Baumgartner wrote: > > I've built a newsletter app that currently cycles through 500+ emails > and I'd like to have it scale to handle more. > > Currently I just have code like this in my view: > > for recipient in email_list: >msg = EmailMultiAlter

How to do a bulk update?

2007-12-19 Thread shabda
I have a QuerySet returned by a call like this foos = Foo.objects.filter(id__in = [1, 2, 3]) Now I want to update each of these elements' attributes to a specific value. What I need to do is some thing like, for foo in foos: foo.price = 0 foo.save() But this would make as many database

Re: newforms-admin and edit_inline

2007-12-19 Thread eXt
I'll try it. Thanks a lot! On 19 Gru, 11:33, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 3:55 AM, eXt <[EMAIL PROTECTED]> wrote: > > > > > > > Hi! > > > I've some problems with newforms-admin's edit_inline functionality. > > > My code is something like: > > > from django.contrib i

Re: ado_mssql DatabaseError

2007-12-19 Thread Karen Tracey
On Dec 19, 2007 7:09 AM, vit_a <[EMAIL PROTECTED]> wrote: > > Hello, > > I've got a problem using ado_mssql. I've read the ticket 2358 and I > have tried to use the patches, but there are some conflicts. Somebody > could help me ? > > The error message is: > [snipped] You might want to check out

ado_mssql DatabaseError

2007-12-19 Thread vit_a
Hello, I've got a problem using ado_mssql. I've read the ticket 2358 and I have tried to use the patches, but there are some conflicts. Somebody could help me ? The error message is: DatabaseError at /administracion/accounts/login/ --ADODBAPI -- Trying parameter 0 = u'raul' Traceback (most rece

Re: completely escaping an included template

2007-12-19 Thread Bram - Smartelectronix
Jan Rademaker wrote: > > See http://www.djangoproject.com/documentation/templates/#force-escape Thank you... - bram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: sending >500 emails using send_email in a for loop

2007-12-19 Thread Jökull
You may want to have a look at http://groups.google.com/group/django-mailer It seems to have died halfway complete but there is a bit of discussion and at least some code you could look at. Jökull On Dec 18, 9:18 pm, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote: > I've built a newsletter app t

Re: using "select_related" .Does it works?

2007-12-19 Thread Rufman
I'm using select_related() and when I debug (eclipse and pydev) I can see that the ForeignKey references are cached. But somehow I still hit the database (unnecessarily in my opinion) when I render in the template. All the ForeignKeys that are referenced in this query are set to null=False What c

Re: Returning a Queryset

2007-12-19 Thread Malcolm Tredinnick
On Wed, 2007-12-19 at 02:17 -0800, Rufman wrote: > > but I'd be interested in > > hearing the use-case you're wanting to solve. > > > > I'm using GROUP BY, so I need to use raw sql. I want to use a > QuerySet, so that I can use the ForeignKey mapping and for the sake of > consistency in the way

Re: newforms-admin and edit_inline

2007-12-19 Thread Karen Tracey
On Dec 19, 2007 3:55 AM, eXt <[EMAIL PROTECTED]> wrote: > > Hi! > > I've some problems with newforms-admin's edit_inline functionality. > > My code is something like: > > from django.contrib import admin > class Child_Inline(admin.StackedInline): >extra = 3 > > class Parent_admin(admin.ModelAd

free video lessons on 12 computer Science Courses

2007-12-19 Thread AK444
Hi guys, Look at these 12 video courses http://freevideolectures.com/ComputerScience/ covering all the lessons about computer science including C, C++, JAVA, XML, PHP, algoritms, Data structures, etc All you need to have is a Real Player. hope this is useful to you all --~--~--

Re: Returning a Queryset

2007-12-19 Thread Rufman
> but I'd be interested in > hearing the use-case you're wanting to solve. > I'm using GROUP BY, so I need to use raw sql. I want to use a QuerySet, so that I can use the ForeignKey mapping and for the sake of consistency in the way I render things in the template. Stephane --~--~-~--~--

Re: Links not working after svn 6915

2007-12-19 Thread Matt Davies
Hi Malcolm Does this mean you have to change your site all over the place? No mate, I found out what the problem was, you've hit the nail on the head later on in your email. (flatpages is one we've subsequently discovered) We've written a bespoke pages app like flatpages, only we've included so

newforms-admin and edit_inline

2007-12-19 Thread eXt
Hi! I've some problems with newforms-admin's edit_inline functionality. My code is something like: from django.contrib import admin class Child_Inline(admin.StackedInline): extra = 3 class Parent_admin(admin.ModelAdmin): inlines = [Child_Inline] The problem is with 'extra' parameter.

os x tiger macports install postgres81 python25 - py25-psycopg2 python manage.py runserver error

2007-12-19 Thread Shinmaikeru
Django newbie here just trying to get an environment going so that I can say goodbye to PHP and make python/django my native tongue. I went through several installs using various images and then uninstalls and such before finally installing everything through MacPorts. However... When I run `pyt

Many2Many Lookup query

2007-12-19 Thread Julien
Hi all, I'm struggling a bit with a query. I'm sure the answer is pretty easy but I can't find it. I've got 2 models: class Thread(models.Model): subject = models.CharField(max_length=255, verbose_name=_('subject')) class Message(models.Model): thread = models.ForeignKey(Thread) se