Re: Django View and Sending XML over HTTP

2007-04-05 Thread James Bennett
On 4/5/07, johnny <[EMAIL PROTECTED]> wrote: > This is simple question. When you send xml over http, do you just > pass string varible containing the xml document, as a variable to the > template? For XML it's best not to use a template at all; while you may be used to using the 'render_to_respo

Re: unique_together Validator for a model with an (editable=False) field

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 21:12 -0700, Mark Soper wrote: > I'm trying to figure out the best way to validate a unique_together > constraint. The relevant parts of the model are here: > > -- > class Thesis(models.Model): > thesis_name = CharField('Thesi

unique_together Validator for a model with an (editable=False) field

2007-04-05 Thread Mark Soper
I'm trying to figure out the best way to validate a unique_together constraint. The relevant parts of the model are here: -- class Thesis(models.Model): thesis_name = CharField('Thesis Name', maxlength=50, core=True, validator_list=[???])

Re: Django View and Sending XML over HTTP

2007-04-05 Thread Malcolm Tredinnick
On Fri, 2007-04-06 at 01:14 +, johnny wrote: > This is simple question. When you send xml over http, do you just > pass string varible containing the xml document, as a variable to the > template? There might not be any need to use a template here. If you already have the XML document as a s

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-05 Thread Russell Keith-Magee
On 4/5/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/3790 > > Thanks for that Zach - I didn't notice this one go past. I've closed > off #3915 as a duplicate. FYI - I've just committed [4937],

Django View and Sending XML over HTTP

2007-04-05 Thread johnny
This is simple question. When you send xml over http, do you just pass string varible containing the xml document, as a variable to the template? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: how do I install MySqldb on mac?

2007-04-05 Thread Frank Rocco
I downloaded mysql from mysql.com this is the error I get. Mysql is running ok. frank-roccos-computer:~/MySQL-python-1.2.2 farocco$ sudo python setup.py installsh: line 1: mysql_config: command not found Traceback (most recent call last): File "setup.py", line 16, in ? metadata, options =

Re: how do I install MySqldb on mac?

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Frank Rocco <[EMAIL PROTECTED]> wrote: ... > I just installed django on my mac, but cannot get mysqldb installed. > I have mysql running from mamp. > > What do I need to do to install this? You have to have some devel files for MySQL-- I'm not sure if mamp includes those. This might h

Re: how do I install MySqldb on mac?

2007-04-05 Thread [EMAIL PROTECTED]
I've found that you're better off installing the various components via darwinports (search for mac darwin ports). Once that's installed, you can use an the darwin ports framework to install Apache, MySQL, Python and the various pieces. Once darwin is installed, you'd run these commands: sudo por

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread queezy
This is great info, especially since our branch may be getting the IT people to set up a IIs server (which we don't especially want, but you take what you can get). Thanks a lot! -Warren - Original Message - From: <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, April 05, 2007

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread queezy
Thanks heaps Mike! This is a great one to put in the toolbox. Have a super weekend! -Warren - Original Message - From: "Mike Axiak" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, April 05, 2007 10:55 AM Subject: Re: Django app serves PDFs but browser doesn't render them > >

Support Rosie O'Donnell and Free Speech!!

2007-04-05 Thread micen
Support Rosie O'Donnell and Free Speech!! http://www.defendrosie.com/ --~--~-~--~~~---~--~~ 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@googlegroups.com To unsu

how do I install MySqldb on mac?

2007-04-05 Thread Frank Rocco
Hello, I just installed django on my mac, but cannot get mysqldb installed. I have mysql running from mamp. What do I need to do to install this? Regards, Frank Rocco [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Music E-zine development in Django

2007-04-05 Thread Austin Govella
On 4/5/07, Austin Govella <[EMAIL PROTECTED]> wrote: > I have a code base for a music zine that you may be interested in using. Doh! That was supposed to be private. Sorry for the spam... :-( -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com [EMAIL PROTECTED]

Re: Music E-zine development in Django

2007-04-05 Thread Austin Govella
On 4/5/07, temnoregg <[EMAIL PROTECTED]> wrote: > i am just curious if anyone is interested in taking part in website > development for czech music e-zine http://marastjakcyp.com. > current site is pretty old php site and needs to improve with the > fancy web 2.0 stuff... I have a code base for a

Re: Problem with form caching data

2007-04-05 Thread Luciano Adamiak
So Does anyone have a clue??? On 4/4/07, Luciano Adamiak <[EMAIL PROTECTED]> wrote: > > Hi everyone... > > I'm having an strange behavior with a form. > > It's a simple sign-up form. > > When I call the page using the url http://xxx/membro/cadastro/3/ the form > show the data for de mebro.

Re: how do change TextField size on form?

2007-04-05 Thread BrandonC
The newforms module isn't tied to the models, but you can easily create a form from a model using the helper function from_from_model. So in your view: from django import newforms from models import YourModel def some_view(request): form_class = newforms.form_from_model(YourModel) #Modify t

Re: Django IDE

2007-04-05 Thread Greg Donald
On 4/5/07, John Goodleaf <[EMAIL PROTECTED]> wrote: > > Wing IDE. It looks really nice but then I discovered I would have to run an Xserver to run it on my Mac. That's not a huge problem except I can't alt-tab to and from apps that run under an Xserver. At least I've never found a way and I've

getting 404's with apache

2007-04-05 Thread RG
I have apache+mod python locally installed with the following defined in the apache config: SetHandler python-program PythonPath "['C:\DjangoProjects'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE testproject.settings PythonDebug On When I navigate to

RE: Django IDE

2007-04-05 Thread John Goodleaf
Wing IDE. I'll second that recommendation. I have both Komodo 4 and Wing at work. I use Wing pretty much exclusively. From a purely aesthetic standpoint, Komodo 4 is somewhat "cleaner" looking, but otherwise I think Wing is stronger. In addition to mentioned debugger, Wing does a very nice job wi

Re: Pickling error in Django using Apache2

2007-04-05 Thread paceman
Jeremy, Thank-you for some more good tips. The end of the error message is: > > Can't pickle : it's not the same object as > > psycopg2.tz.FixedOffsetTimezone I am pretty sure there is nothing after that. I will check into the sqlalchemy datetime wrt pickling. The error appears to occur 50% o

Re: Form newforms change password advice

2007-04-05 Thread Trey
Hey, now that is slick. Thanks for the tip, and this site is certainly going on my bookmarks list. On Apr 5, 4:29 pm, Georgi Stanojevski <[EMAIL PROTECTED]> wrote: > Trey напиша: > > > I am trying to create a change password form, the unique thing about a > > change password form is that you hav

Re: Any books available

2007-04-05 Thread Greg Donald
On 4/5/07, Frank <[EMAIL PROTECTED]> wrote: > Looking for books on django. http://www.djangobook.com/ -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Any books available

2007-04-05 Thread Tim Chase
> Looking for books on django. Online: www.djangobook.com Published: none To be published: http://www.amazon.com/Pro-Django-Development-Done-Right/dp/1590597257/ (by a bunch of chumps who know nothing about Django ;-) ...like a book on Linux by that Torvalds guy. Or a book on Python by that

Any books available

2007-04-05 Thread Frank
Hello, Looking for books on django. Frank --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

Re: quick syntax question: if/or

2007-04-05 Thread [EMAIL PROTECTED]
> Have you read the documentation? :) > http://www.djangoproject.com/documentation/templates/#if indeed, but I was looking in the wrong places entirely. Thanks! And, apologies for missing the obvious... -Heather On Apr 5, 4:41 pm, Georgi Stanojevski <[EMAIL PROTECTED]> wrote: > [EMAIL PROTEC

Re: quick syntax question: if/or

2007-04-05 Thread Georgi Stanojevski
[EMAIL PROTECTED] напиша: > Is it possible to check for multiple items in that initial if > statement? For example: > > if species.range or species.habitat or species.behavior > do some stuff > endif > > > It seems that this should b

quick syntax question: if/or

2007-04-05 Thread [EMAIL PROTECTED]
Well, I'm hoping it's a quick question :) I currently have a template which includes the following: {% if species.range %} do some stuff {% endif %} Is it possible to check for multiple items in that initial if statement? For example

Re: Form newforms change password advice

2007-04-05 Thread Georgi Stanojevski
Trey напиша: > I am trying to create a change password form, the unique thing about a > change password form is that you have to be logged in and do a lookup > to wherever you're storing users. > My question is: How can I get the userId out of the session for the > logged in user to attempt to v

dynamic FileFIeld path?

2007-04-05 Thread drackett
Can I use something dynamic (such as the post title, post date) in the part for uploaded files in the model? I'm guessing this isn't possible, but I thought it was worth asking anyways. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: how do change TextField size on form?

2007-04-05 Thread Frank
Thanks, I am not at that level yet. I still am going through the tutorial. So do I not use the admin interface, but create my own forms? Regards, Frank - Original Message - From: "gordyt" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, April 05, 2007 4:05 PM Subject: Re: how d

Re: Several newbie questions

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Frank <[EMAIL PROTECTED]> wrote: > > intranet site? > Directory c:\mysite > Directory c:\mysite\app1 > Directory c:\mysite\app2 > Directory c:\mysite\app3 Sure, you can. I'd say as long as you have the same trust and some unifying base of data, it makes sen

Re: Django IDE

2007-04-05 Thread gordyt
Zeb I'm using Komodo 4.0.2 now and it is a big improvement over 3.x. --gordy On Apr 4, 10:20 pm, "ZebZiggle" <[EMAIL PROTECTED]> wrote: > I've been using it for a couple of years now. I'm still using 3.x, > can't comment on 4.x. The debugging is pretty bad and doesn't really > work as advertised

Re: how do change TextField size on form?

2007-04-05 Thread gordyt
Hi Frank, I'm using the newforms stuff and it lets you do exactly what you want. Here is one of my simpler forms: class AddEditCustomerForm(forms.Form): name = forms.CharField(max_length=200) customer_type_id = forms.ChoiceField(label="Customer Type") notes = forms.CharField(widget=

Re: Selecting from too big table

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: ... > there is so much of documentation, that I cannot read it all at once, never > mentioning to remember all detail at the first reading ... I am trying, but I > am not so fast as I was when I was young) Yep, I've been doing this a while and still ne

Re: Pickling error in Django using Apache2

2007-04-05 Thread Jeremy Dunck
On 4/5/07, paceman <[EMAIL PROTECTED]> wrote: > One is an update_date > that comes from > a postgresql database Yes, the original error reported is: > > "/var/lib/python-support/python2.4/django/contrib/sessions/models.py", > > line 10, in encode pickled = pickle.dumps(session_dict) PicklingError

Re: Adding an error to an empty error list with newforms?

2007-04-05 Thread BrandonC
Oliver, form['fieldname'] returns a Field class object. To add an error to that you want to do form.errors['fieldname'] = ['Your list of errors messages']. If you also want to preserve other possible errors you'll want to us form.errors.setdefault('fieldname', []).append('Your error here.') ins

Form newforms change password advice

2007-04-05 Thread Trey
Hey guys, I know newforms isn't quite ready for prime time yet but I am trying to work out the best way under the newforms library to achieve the following. I am trying to create a change password form, the unique thing about a change password form is that you have to be logged in and do a lookup

Re: Selecting from too big table

2007-04-05 Thread James Bennett
On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: > What do you think about the "spawning another Admin with (select) button" ? > Is it the right way of doing things? That's what 'raw_id_admin' does -- it turns that part of the form into an input for the ID, and adds an icon next to it you can click t

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread [EMAIL PROTECTED]
Thank you very much for this. Another thing to keep in mind with IE and PDFs is that IE often (but not always) cannot correctly identify a document as being a PDF if you are using HTTP compression. Sometimes the PDF will load correctly, sometimes you'll get a blank page and sometimes you'll get

Several newbie questions

2007-04-05 Thread Frank
Hello, I have a few questions that I am confused on: 1. Do I create one project and then create apps for each application in my intranet site? Directory c:\mysite Directory c:\mysite\app1 Directory c:\mysite\app2 Directory c:\mysite\app3 This seems to allow m

how do change TextField size on form?

2007-04-05 Thread Frank
Hello, I have a field defined as: Address = models.TextField(maxlength=200) I want to have a TextArea on the form (rows=3, columns=40) How do I tell the model to generate this? Thanks Frank --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Selecting from too big table

2007-04-05 Thread Gilhad
What do you think about the "spawning another Admin with (select) button" ? Is it the right way of doing things? I am new to Python and Django, so I want to learn the "Django way" of solving problems instead of simply "do it somehow by the old way" ;-) (But as usual, I have to keep users sati

Re: Selecting from too big table

2007-04-05 Thread Gilhad
On Thursday 05 April 2007 19:01, Jeremy Dunck wrote: > On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: > ... > > > There is abour 10.000 songs in the table and nearly so schedulers. I need > > to somehow connect this together and help user to sellect the right Song > > for his Scheduler, prefferably

Re: Pickling error in Django using Apache2

2007-04-05 Thread paceman
Jeremy, the added detail you have provided caused me to go back and look at my code to see if I am doing what you are suggesting. It is not obvious to me. I believe I add two things to request.session. One is an update_date that comes from a postgresql database and the other is a status text str

Re: PATH_INFO missing first part

2007-04-05 Thread Dirk Eschler
On Donnerstag, 5. April 2007, Bram - Smartelectronix wrote: > Malcolm Tredinnick wrote: > > This looks correct. Not sure why it isn't working, sorry. If you wanted > > to do some more poking around, we set up PATH_INFO in > > django/core/handlers/modpython.py, so you could put some debugging in >

Newforms best practice

2007-04-05 Thread tyman26
>def add_edit_model(request, id=None): > if id is not None: >instance = MyModel.objects.get(id=id) >InstanceForm = MyForm(instance=instance) >else: >InstanceForm = MyForm() >if request.POST: >form = InstanceForm(request.POST) >if form.is_valid():

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread Mike Axiak
Apparently there's a bug with IE whereby Vary will hurt Acrobat's ability to view pdfs. Since Vary is ingrained into the souls of many of Django's middleware, I have provided an additional middleware which deletes Vary in times when IE might break because of it. FixIEVaryBugMiddleware is available

SECURITY PATCH Issued for FireBug

2007-04-05 Thread Jeremy Dunck
FYI -- update firebug to at least 1.0.3 ASAP. http://www.gnucitizen.org/projects/firebug-goes-evil/ http://www.getfirebug.com/blog/2007/04/04/security-update/ -- Forwarded message -- From: Rey Bango <[EMAIL PROTECTED]> Date: Apr 5, 2007 9:59 AM Subject: [Dojo-interest] SECURITY P

Re: Pickling error in Django using Apache2

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Mae <[EMAIL PROTECTED]> wrote: ... > We also have a theory that it's adding model objects to sessions that > causes our problem because model objects are created dynamically by > their meta classes. Am I close? I don't think so, since I've successfully serialized models before. I'm pr

Re: Selecting from too big table

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: ... > There is abour 10.000 songs in the table and nearly so schedulers. I need to > somehow connect this together and help user to sellect the right Song for his > Scheduler, prefferably in Admin interface. I want to avoid 10.000 lines long > tag, b

Re: Pickling error in Django using Apache2

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Mae <[EMAIL PROTECTED]> wrote: ... > Is what I'm doing "monkey patching"? What does "monkey patching" > mean? How am I making it difficult for the pickling functions to > figure out my "type name"? What should I do to fix it? > No, but if your code is that simple and still fails, yo

Re: Pickling error in Django using Apache2

2007-04-05 Thread Jeremy Dunck
On 4/5/07, Mae <[EMAIL PROTECTED]> wrote: > > Wow, what luck! I've been having a sporadic "" problem, and I've just > resigned myself to spending today to try to debug it. Searched the > group for exact error, found nothing, refreshed, and saw this post in > top slot! Kismet. (The error is "Ty

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
Aha. I fear I'll be accused of mumbling to myself, but I think I understand now that what you meant by your x.Y = Y example. We also have a theory that it's adding model objects to sessions that causes our problem because model objects are created dynamically by their meta classes. Am I close?

Selecting from too big table

2007-04-05 Thread Gilhad
I have problem how to effectivelly manage this: class Songs(models.Model): name= models.TextField() . class Scheduler(models.Model): when=models.DateTimeField() song=models.ForeignKey(Songs) other_data= models.TextField() There is abour 10.000 songs i

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
Er, that would be "a sporadic "TypeError: can't pickle function objects" problem" :). Forgot to paste. On Apr 5, 12:08 pm, "Mae" <[EMAIL PROTECTED]> wrote: > Wow, what luck! I've been having a sporadic "" problem, and I've just > resigned myself to spending today to try to debug it. Searched t

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
Wow, what luck! I've been having a sporadic "" problem, and I've just resigned myself to spending today to try to debug it. Searched the group for exact error, found nothing, refreshed, and saw this post in top slot! Kismet. Jeremy, I'm not sure I understood your last post well enough. Could

Re: Pickling error in Django using Apache2

2007-04-05 Thread Jeremy Dunck
On 4/5/07, paceman <[EMAIL PROTECTED]> wrote: ... > I wonder if apache prefork reloads modules (maybe psycopg2) that I am > not aware of and that causes the pickling of the object not to work? This would also occur if you were monkey patching classes, I think. Do you have anything that does some

Re: create/drop individual table

2007-04-05 Thread Gilhad
I used to run manage.py sqlall something, then copy& paste the definition to the mysql shell ... maybe it will help you too ;-) On Wednesday 04 April 2007 17:25, John wrote: > Hi, new to django, getting familiar w/ it. So far, love what I've > seen. One question: how do I create/drop an individu

Re: Django IDE

2007-04-05 Thread BrandonC
As a comparison I have to say that Wing IDE has a very nice Python debugger (fast and it works). I haven't used Komodo in a while but I remember my biggest issue with it was that its debugger stopped at exceptions that truely were handled, and that it was slow. For django I set my manage.py file

Re: Pickling error in Django using Apache2

2007-04-05 Thread paceman
Thank-you for your reply. It gives me more food for thought. I still do not know why it works perfectly in the django development mode, and works half the time with apache2 prefork, and works all the time with apache2 mpm-worker. I wonder if apache prefork reloads modules (maybe psycopg2) that I

Re: create_object error

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 17:09 +0200, Michael Radziej wrote: > On Thu, Apr 05, Marcelo Ramos wrote: > > > es_AR: > > > > #: views/generic/create_update.py:43 > > #, python-format > > msgid "The %(verbose_name)s was created successfully." > > msgstr "Se creó con éxito %(verbose_name)." >

Re: create_object error

2007-04-05 Thread Marcelo Ramos
2007/4/5, Michael Radziej <[EMAIL PROTECTED]>: > > On Thu, Apr 05, Marcelo Ramos wrote: > > > es_AR: > > > > #: views/generic/create_update.py:43 > > #, python-format > > msgid "The %(verbose_name)s was created successfully." > > msgstr "Se creó con éxito %(verbose_name)." >

Music E-zine development in Django

2007-04-05 Thread temnoregg
hi, i am just curious if anyone is interested in taking part in website development for czech music e-zine http://marastjakcyp.com. current site is pretty old php site and needs to improve with the fancy web 2.0 stuff... there is no reward but you are free to use whole code for your personal use

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
Hi, mtredinnick has reverted the problematic portion in changeset [4933], so it should be fine again with a current checkout. Merci ;-) Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourci

Re: create_object error

2007-04-05 Thread Michael Radziej
On Thu, Apr 05, Marcelo Ramos wrote: > es_AR: > > #: views/generic/create_update.py:43 > #, python-format > msgid "The %(verbose_name)s was created successfully." > msgstr "Se creó con éxito %(verbose_name)." this should be msgstr "Se creó con éx

Re: create_object error

2007-04-05 Thread Marcelo Ramos
2007/4/5, Malcolm Tredinnick <[EMAIL PROTECTED]>: [...] > In [1]: from django.utils.translation import activate, gettext > > In [2]: gettext("The %(verbose_name)s was created successfully.") % > {"verbose_name": "xyzzy"} > Out[2]: 'The xyzzy was created successfully.' > > In [3]: activate('es') >

svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
Hi, changeset [4919] made the escape filter tag return unicode strings instead of bytestrings, which seems to create problems as soon as you use non-ASCII characters. If you see any encoding problems, especially with oldforms or the admin interface, please take a look at ticket #3924. The except

Re: PATH_INFO missing first part

2007-04-05 Thread Bram - Smartelectronix
Malcolm Tredinnick wrote: > This looks correct. Not sure why it isn't working, sorry. If you wanted > to do some more poking around, we set up PATH_INFO in > django/core/handlers/modpython.py, so you could put some debugging in > there to see what the value we get from modpython is. I'm reluctant

Re: PATH_INFO missing first part

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 15:12 +0200, Bram - Smartelectronix wrote: > Malcolm Tredinnick wrote: > > On Thu, 2007-04-05 at 14:36 +0200, Bram - Smartelectronix wrote: > >> Hello everyone, > >> > >> > >> mod_python 3.3.1 > >> apache 2.0.52 > >> python 2.5 > >> django trunk, updated 5 minutes ago > >> >

Re: PATH_INFO missing first part

2007-04-05 Thread Bram - Smartelectronix
Malcolm Tredinnick wrote: > On Thu, 2007-04-05 at 14:36 +0200, Bram - Smartelectronix wrote: >> Hello everyone, >> >> >> mod_python 3.3.1 >> apache 2.0.52 >> python 2.5 >> django trunk, updated 5 minutes ago >> >> I go to http:/example.com/a/b/c/d/ and PATH_INFO returns /b/c/d/ losing >> the firs

Re: custom newform error text

2007-04-05 Thread Calumet
Thanks. It works. Seems mo files is cached. I need change locale in settings to something else before changes take effect. On Apr 5, 4:27 pm, Georgi Stanojevski <[EMAIL PROTECTED]> wrote: > Calumet напиша: > > > I use newform. How can I redefine error text for each field? Can I do > > this withou

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
On 5 Apr 2007, at 1:35 pm, Malcolm Tredinnick wrote: >> Set USE_I18N to true in your settings.py > > We fixed ticket #3918 today (in [4931]), so this problem is fixed > in the > very latest code, too. Even better. Thanks Malcolm :) -- David Reynolds [EMAIL PROTECTED] --~--~-~--~-

Re: PATH_INFO missing first part

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 14:36 +0200, Bram - Smartelectronix wrote: > Hello everyone, > > > mod_python 3.3.1 > apache 2.0.52 > python 2.5 > django trunk, updated 5 minutes ago > > I go to http:/example.com/a/b/c/d/ and PATH_INFO returns /b/c/d/ losing > the first bit! This for any URL. We need s

PATH_INFO missing first part

2007-04-05 Thread Bram - Smartelectronix
Hello everyone, mod_python 3.3.1 apache 2.0.52 python 2.5 django trunk, updated 5 minutes ago I go to http:/example.com/a/b/c/d/ and PATH_INFO returns /b/c/d/ losing the first bit! This for any URL. I've been googling to no avail... :-S if anyone has a hint, I would be very grateful! cheer

Re: Admin History - Date not formatted

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 13:30 +0100, David Reynolds wrote: > > On 31 Mar 2007, at 12:02 pm, gorans wrote: > > > > > Hi, > > > > This is probably a quick fix but the history section in the Django > > Admin displays the date incorrectly: > > SatPMAUS Eastern Standard TimeE_130AUS Eastern Standard Ti

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
On 31 Mar 2007, at 12:02 pm, gorans wrote: > > Hi, > > This is probably a quick fix but the history section in the Django > Admin displays the date incorrectly: > SatPMAUS Eastern Standard TimeE_130AUS Eastern Standard Time20_AUS > Eastern Standard Time0MarE_March1177497646FalseFalse > > I am us

Re: custom newform error text

2007-04-05 Thread Georgi Stanojevski
Calumet напиша: > I use newform. How can I redefine error text for each field? Can I do > this without redefining Form clean_xxx functions? If you don't want to redefine the form methods you could make a "translation" and use that. Copy django/conf/locale/en/ to, for example, django/conf/locale

custom newform error text

2007-04-05 Thread Calumet
I use newform. How can I redefine error text for each field? Can I do this without redefining Form clean_xxx functions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Make a FREE Call Any Where Any Time

2007-04-05 Thread Neelam007
Make a FREE Call Any Where Any Time No Download, No Registration, Just Enter Mobile No. and Talk Click Below Link http://surl.in/PCOISCR283817GCJWJUK --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Per-object-permission branch and Many-to-many relationship issue

2007-04-05 Thread Aidas Bendoraitis
Replying to myself, this is the temporary solution to the issue, I described yesterday: class Element(...) ... def get_categories(self): return Category.objects.distinct().extra( tables=['elementapp_element_categories AS eec'], where=['categoryapp_category.

Re: Must be a bug??? "ordering" error splits field

2007-04-05 Thread Sam Morris
On Thu, 05 Apr 2007 14:10:05 +0800, Russell Keith-Magee wrote: > On 4/5/07, TaMeR <[EMAIL PROTECTED]> wrote: > >> class Meta: >> ordering = ('code') > > You have been bitten by a very common Python error: > > ('code') defines a string > ('code',) defines a tuple containing a single

IN THE NAME OF GOD

2007-04-05 Thread meyyitfani
IN THE NAME OF GOD, THE MERCIFUL, THE COMPASSIONATE And from Him do we seek help. All praise be to God, the Sustainer of All the Worlds, and blessings and peace be upon our master Muhammad, and on all his Family and Companions. [Brother! You wanted a few words of advice from me, so listen to

Re: capturing urls from previous views

2007-04-05 Thread Tipan
canen, Thanks, that's just what I was looking for. Rereading the documentation also enabled me to pick up some other useful stuff. Much appreciated. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Securing the admin site

2007-04-05 Thread trickyb
> To change the URL root to something else, did you just have replace > r'^admin/' with something else in the URL conf file? Or, did you have > to also do some other hacking? Yes, just change the r'^admin/' to something else. Richard --~--~-~--~~~---~--~~ You r

Re: Must be a bug??? "ordering" error splits field

2007-04-05 Thread Jarek Zgoda
Russell Keith-Magee napisał(a): >> class Meta: >> ordering = ('code') > > You have been bitten by a very common Python error: > > ('code') defines a string > ('code',) defines a tuple containing a single element, that is a string. This is how strings works in Python, Ian Bicking ev