DBISAM (or other ODBC, or native) DataBase connections...

2007-04-12 Thread durumdara
Hi! We have been used our owned modpy web applications without any frameworks. Now we want to use (and test) some framework, like django, pylons, or other. We used DBISAM ODBC connections in out sites. Can django handle these connections as normal db connections? Can we use other native databa

Providing action specific feedback messages to users and HttpResponseRedirects

2007-04-12 Thread Michael Lake
Hi all I'm having problems working out how to pass messages to a form when using a Redirect. One example I found on the web of a Contact form set a variable message='Contact Added' or message='Contact Updated' depending on what happened. This example didn't use any Redirect after a POST. M

Tutorial part 4 IndexError

2007-04-12 Thread jonathan_ou
I am using python 2.5 with django 0.96 rev 5005 using mysql database. When I try to cast a vote via web forms in part 4 of the tutorial, I get the following error after I select a choice and submit the form: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versio

Tutorial: Can't see my polls

2007-04-12 Thread Evan H. Carmi
Hello, I am running django 0.95. I am going through the tutorial. My problem is this: I have 4 polls. If I run python manage.py shell and Poll.objects.all() it shows them. Unfortunately when I go mysite/polls (http://binarymanipulations.com:8157/polls/) it says "No polls are available." Also if

Any developers in Gold Coast Australia?

2007-04-12 Thread sime
I'm looking for a talented local programmer to help with a growing workload, on a regular contract basis. All projects in django :-) Or if you have experience working remotely that could work too. --~--~-~--~~~---~--~~ You received this message because you are su

want a Free Forum... What do I need?

2007-04-12 Thread ann
All you need is the idea what your forum is going to be about... We sort you out with the rest. With ForumsGoGo, you don't need to pay for hosting, maintenance, installation, support etc... We've got that covered. All you need is the idea for what your forum will be about. We host for free bands,

Re: Translation problem in newforms

2007-04-12 Thread ann
if you have no hosting,I suggest you apply for a free forum. http://www.forumgogo.comMore powerful than the phpbb Trait: 100% free and no pop-ups. Unlimited Bandwidth, Unlimited Storage, Unlimited users, unlimited threads, unlimited topics.Fast, Friendly Tech Support.You have total control ov

Re: Loading JSON dump fails

2007-04-12 Thread ann
http://www.forumgogo.com More powerful than the phpbb This is a great site that is completely free, and can make some cool forums, here's an example of one, you can make your own topic, polls, and replies etc, and you can have an accout for every member. This next link is an example of a forum

Re: Translation problem in newforms

2007-04-12 Thread [EMAIL PROTECTED]
So basically, it's like the difference between range() and xrange(). Thanks Niels, that helped a lot. On Apr 12, 3:42 pm, "Niels" <[EMAIL PROTECTED]> wrote: > Your understanding is basically correct. Gettext_lazy returns an > object that will be stored inside the form class definition. The > actu

Programming Careers

2007-04-12 Thread Stella
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMA

Re: Loading JSON dump fails

2007-04-12 Thread Russell Keith-Magee
On 4/13/07, Tyson Tate <[EMAIL PROTECTED]> wrote: > > Any ideas here on the list? I know fixtures are a bit new, so > hopefully this is just a minor issue. Hi Tyson, I just tried this on my machine, using Postgres and SQLite, and it worked fine. I was able to round trip dumpdata/loaddata using t

Re: error using XML serializer with unicode data

2007-04-12 Thread Russell Keith-Magee
On 4/13/07, Saik <[EMAIL PROTECTED]> wrote: > > But i have no problem with json serializing (the ticket is about > that), what is the correct way in this case? do i add my problem with > xml serialize in that ticket? or do i have to open a new one? > > thx for the info, im a bit lost... I'd raise

Re: SelectMultiple widget

2007-04-12 Thread Enrico
Hi Masuran! Nice, I'm glad you've made it. I'm pretty sure that it's possible to clean up or dismiss some of those JS files, most of them are related to Django admin and won't be needed just to use the widget. The 'jsi18n' path is a Django admin view, it's path is relative because the Admin app

Re: integratin Django to an old site

2007-04-12 Thread Niels
ehm... take 2: which has the same effect :$ On Apr 13, 1:16 am, "Niels" <[EMAIL PROTECTED]> wrote: > Things don't need be more complicated than neccessary: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: integratin Django to an old site

2007-04-12 Thread Niels
Things don't need be more complicated than neccessary: Apache config snippet: SetEnv DJANGO_SETTINGS_MODULE yourapp.settings SetHandler python-program PythonHandler django.core.handlers.modpython Which matches root, as well as some selected paths and everything bel

Re: SelectDateWidget unicode problem

2007-04-12 Thread Christian Schmidt
Got the same Problem here. On my Laptop all is fine but on the Server I got an Unicode Error. Seems to me, that the german month "März" isn't correctly encoded. Can someone help? On both PCs is DEFAULT_CHARSET = 'utf-8' in the settings and a postgres database running. Christian. --~--~---

Re: Exception in template rendering

2007-04-12 Thread hotani
I was having the same problem with {{ object_list.count }}, but from the first link above found that {{ object_list|length }} does the trick. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Loading JSON dump fails

2007-04-12 Thread Tyson Tate
I ran a JSON dump on one of my models and got the following: -- $ python manage.py dumpdata databases [{"pk": "3", "model": "databases.subject", "fields": {"slug": "boom", "title": "Boom"}}, {"pk": "2", "model": "databases.subject", "fields": {"slug": "more-testing", "title": "More Testing"}}

Surprising filter results with ForeignKey('self')

2007-04-12 Thread Zak Johnson
I have a model which has a ForeignKey to itself, intended to mark duplicates similar to a bug/ticket-tracking system: class Bug(models.Model): name = models.CharField(maxlength=64) duplicate_of = models.ForeignKey('self', related_name='duplicates', null=True) def __str__(self):

Re: integratin Django to an old site

2007-04-12 Thread [EMAIL PROTECTED]
sjol, this is fairly easy to do on some level. We have django integrated into a PHP site for the Python Conference: http://us.pycon.org/ All the django apps are under 1 root url '/apps07/' This is the easiest way to integrate things in the beginning. By having a specific root all the django

integratin Django to an old site

2007-04-12 Thread sjol
Hi, I would like to integrate Django to an "old" site. By this I mean that reworking the whole site from scratch will not be possible I have to change it piece by piece. But I would like the first piece to be the root but other parts of the URL would stay the same ( it is all php code or jsp ).

Re: Translation problem in newforms

2007-04-12 Thread Niels
Your understanding is basically correct. Gettext_lazy returns an object that will be stored inside the form class definition. The actual translation then occurs when that object is evaluated as a string. And there is quite some magic going on behind the scenes: >>> from django.utils.translation i

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread [EMAIL PROTECTED]
I think this discussion has reached its logical end as it often does. With that I will end it the way all the other discussions have ended ^_^. Write the integration framework for the Javascript library you like and get community support for it. If that support gets enough steam it will be consid

Programming Career

2007-04-12 Thread maria
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMA

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread pcad
> I like jQuery. You like mochikit. Others like YUI, or Prototype, or > Dojo. Who's right? Everybody. Nobody. It depends. I probably shouldn't have brought mochikit into it:) I like it, true enough, but I'd actually be happy to abandon it if there was some strong benefit like community involveme

_meta access to edit_inline?

2007-04-12 Thread Chrisentery
Does anybody know away to change edit_inline via _meta? Much like: Model._meta.get_field('some_field').editable=False --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Translation problem in newforms

2007-04-12 Thread [EMAIL PROTECTED]
That worked, thanks very much. I'm not quite clear on the difference between gettext and gettext_lazy however. As I understand it, gettext will translate the string when the Python file is loaded (imported) and gettext_lazy will translate the string when the template is rendered. Is that it? V

Re: HTTP faking

2007-04-12 Thread [EMAIL PROTECTED]
Ben, > the middleware can handle the transformation. I think that is a good next step for the response to be updated. > > I can put this on djangosnippets, but since you're the original author > I figured I'd give you the opportunity first. > Please feel free, what I wrote is pretty trivial.

Re: Translation problem in newforms

2007-04-12 Thread Niels
Hi. I think you need the to add following import statement after importing newforms as well: from django.utils.translation import gettext_lazy as _ On Apr 12, 5:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have the following form: > > from django import newforms as forms > > class

Re: error using XML serializer with unicode data

2007-04-12 Thread Saik
But i have no problem with json serializing (the ticket is about that), what is the correct way in this case? do i add my problem with xml serialize in that ticket? or do i have to open a new one? thx for the info, im a bit lost... regards, Saik. On 12 abr, 02:36, "Russell Keith-Magee" <[EMAIL

Retrieving Username/Pass from the settings file

2007-04-12 Thread [EMAIL PROTECTED]
We have a report in our system that is generating a temporary table, that we need to access ( via custom sql ) we tried doing this through django objects raw sql method...but since each request closes the connection... the temporary table then seems to disappear another developer is worki

Re: HTTP faking

2007-04-12 Thread Benjamin Slavin
Jesse, I think that this is a decent idea. One thing that I think would be useful though is for this sort of transform to be transparent... that way templates can be constructed properly and the middleware can handle the transformation. I've put together a quick example combining your code and

Re: HTTP faking

2007-04-12 Thread Tim Chase
>> Yes, I can see that, but PUT is idempotent, while POST >> isn't. It seems to me that treating one verb as another >> will at least make HTTP caching odd. > > None of PUT/POST/DELETE are cacheable (with the exception of > POST with Expires or Cache-Control headers)... so I don't know > that yo

Re: HTTP faking

2007-04-12 Thread Benjamin Slavin
On 4/12/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Yes, I can see that, but PUT is idempotent, while POST isn't. It > seems to me that treating one verb as another will at least make HTTP > caching odd. None of PUT/POST/DELETE are cacheable (with the exception of POST with Expires or Cache-

Re: HTTP faking

2007-04-12 Thread Jeremy Dunck
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I think the idea is to embrace the value of the HTTP methods (the > standard) even in an imperfect world. So, while IE might not support > a form with method "PUT", we can provide a band-aid that will let a > non-compliant browser work

Re: HTTP faking

2007-04-12 Thread [EMAIL PROTECTED]
I think the idea is to embrace the value of the HTTP methods (the standard) even in an imperfect world. So, while IE might not support a form with method "PUT", we can provide a band-aid that will let a non-compliant browser work while offering seemless functionality for browsers that do. jll O

Translation problem in newforms

2007-04-12 Thread [EMAIL PROTECTED]
I have the following form: from django import newforms as forms class ContactForm(forms.Form): to = forms.ChoiceField(label=_('To'), choices=CONTACTS) sender = forms.EmailField(label=_('Email')) subject = forms.CharField(label=_('Subject'), max_length=50) message = forms.Ch

Re: HTTP faking

2007-04-12 Thread Jeremy Dunck
On 4/12/07, Jesse Lovelace <[EMAIL PROTECTED]> wrote: > I've been interested in the idea of faking HTTP methods that > browsers/servers might not support I'm not sure I understand the motivation to munge the request from the browser to use different verbs. Surely if you're inspecting a particula

HTTP faking

2007-04-12 Thread Jesse Lovelace
Hi all, I've been interested in the idea of faking HTTP methods that browsers/servers might not support like the rails people are doing in 1.2 so I've written a very minimal middleware to do this--if someone else has done this already sorry for the repetition. (It does the method faking using a p

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread limodou
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > pcad, there's some good points there, and maybe many of us could share > more code showing how we've integrated whatever JS toolkit with > Django. But I like the agnostic stand. They give the tools to connect > easily. HOW you connect is

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread [EMAIL PROTECTED]
pcad, there's some good points there, and maybe many of us could share more code showing how we've integrated whatever JS toolkit with Django. But I like the agnostic stand. They give the tools to connect easily. HOW you connect is up to you. I like jQuery. You like mochikit. Others like YUI, or

Re: Custom manager and default admin manager

2007-04-12 Thread asrenzo
Hi, again Found a solution which doesn't seem to be documented: If you need a special manager for the admin interface, then you should add this one to the Admin class of your model: class Admin: manager = MyManager() Regards, Laurent On 12 avr, 15:39, "asrenzo" <[EMAIL PROTECTED]> wr

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread pcad
> thread when I first came to Django. In hindsight, it was pure > inability to write the javascript myself, and reluctance to properly > learn javascript. In the end I've seen that writing javascript > manually results in much cleaner html output, using less code and it > sometimes just performs b

Custom manager and default admin manager

2007-04-12 Thread asrenzo
Hi, We can read in the model reference that we can create an unlimited number of managers in a single model. The documentation gives example of how to create and use a custom manager. We can also read: """ If you use custom Manager objects, take note that the first Manager Django encounters (in

Re: Big Upload

2007-04-12 Thread Jens Diemer
Micha Reiser schrieb: > I created an upload page, but the problem is, that the server load the > whole file in the Ram. I have only some links for you: - http://code.djangoproject.com/ticket/1484 - http://code.djangoproject.com/ticket/2070 - http://jesusphreak.infogami.com/blog/vrp1 (sear

Big Upload

2007-04-12 Thread Micha Reiser
Hello I created an upload page, but the problem is, that the server load the whole file in the Ram. I have a limit (80MB) and when i will upload a big file the server will kill my procress. I want not to load the file in the database, it shoud be stored on the harddrive. Have you any idea, h

Re: Dynamic Model Fields

2007-04-12 Thread Olivier Guilyardi
Olivier Guilyardi wrote: > I'm still a python newbie, but it seems to me that there could be a way to > modify the model definition before Django knows about it: Okay, I found the Field.contribute_to_class() method which seems to work just fine. I'm calling it right after my model class declarati

Re: SelectMultiple widget

2007-04-12 Thread masuran
Finally, problem solved :) These are the javascript functions included in the admin page that works: The problem was the fact that the jsi18n script is included by a relative path. If your URL path is just one directory longer or shorter than the admin URL path, the i18n script can't be fo

Re: gettext & UnicodeDecodeError

2007-04-12 Thread sandro.dentella
Thanks! that was it. Now I can reproduce the error. Which is the "correct" solution? An easy and not really nice one is to encode title into DEFAULT_CHARSET, but I'd rather have _() return an unicode object. How should I do to obtain this? sandro *:-) --~--~-~--~~~