Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Malcolm Tredinnick
On Fri, 2007-07-13 at 05:56 +, Collin Grady wrote: > Sorry, guess it wasn't clear enough :) > > Without a "for" attribute, clicking on those labels fails to check the > box, which is fairly standard behavior, meaning you have to actually > click the box - I believe that's what he means by the

Re: Django on a shared host. The docs are scaring me ;)

2007-07-12 Thread Collin Grady
One problem with fastcgi directions is that there is no "one method" - on some hosts, one method won't work, while another will. Most guides only mention one method or the other, so you're sort of left hanging unless you find the other method. --~--~-~--~~~---~--~

Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Collin Grady
Sorry, guess it wasn't clear enough :) Without a "for" attribute, clicking on those labels fails to check the box, which is fairly standard behavior, meaning you have to actually click the box - I believe that's what he means by them "not working" --~--~-~--~~~---~--

Re: Avoiding HTTP 301 code using mod_python

2007-07-12 Thread Malcolm Tredinnick
On Thu, 2007-07-12 at 14:58 -0300, Miguel Filho wrote: > Hello list, > > I'm deploying my site on webfaction.com using mod_python. URL: > http://interno.homelinux.org > > In webfaction.com, I have my Apache instance with mod_python, > listening on a high port, then the main Apache running on the

Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Malcolm Tredinnick
Hi Collin, On Fri, 2007-07-13 at 05:19 +, Collin Grady wrote: > CheckboxSelectMultiple's list of checkboxes is using attribute-free > label tags: > > u'%s %s' (django/newforms/widgets.py:292) Whilst true, this isn't an answer to the question I asked. It is valid HTML to have attribute-fre

With AGLOCO You can earn money so good.

2007-07-12 Thread support team
Hi. We would like to notify to you new affiliate program that name is AGLOCO. Please Read it be carefully With AGLOCO You can earn money, and valuable shares too, when you surf the web like you always do. What is AGLOCO(tm) all about? AGLOCO is the first Internet based economic network, which

Re: ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

2007-07-12 Thread Malcolm Tredinnick
On Fri, 2007-07-13 at 00:40 +, Patrick wrote: > On Thu, 12 Jul 2007 21:16:35 -0300, Ramiro Morales wrote: > > > On 7/12/07, Patrick <[EMAIL PROTECTED]> wrote: > >> > >> I think this is a bug, but maybe not. I'm running Fedora 7 with its > >> latest package. Any thoughts? > >> > >> > > Take a

FreeComment, the approved field, and django_comment_utils

2007-07-12 Thread chrominance
I'm attempting to integrate James Bennett's awesome comment_utils package (http://www.b-list.org/weblog/2007/06/25/hacking-comments- without-hacking-comments) into my Django project in order to gain some control over comment moderation. Having played nanny to several Wordpress blogs over the years

Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Collin Grady
CheckboxSelectMultiple's list of checkboxes is using attribute-free label tags: u'%s %s' (django/newforms/widgets.py:292) On Jul 12, 10:10 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-07-12 at 07:05 +, [EMAIL PROTECTED] wrote: > > Hi. > > > without 'for' works ok with

Re: Dynamic Model Choices

2007-07-12 Thread Malcolm Tredinnick
On Thu, 2007-07-12 at 19:55 +, kevinski wrote: > Here is my situation: > > I have a model attribute which needs CHOICES to come from another > model. The caveat is, I need to add an addition choice so I cannot set > it as a foreign key. What do you mean here? I don't understand what an "addi

Avoiding HTTP 301 code using mod_python

2007-07-12 Thread Miguel Filho
Hello list, I'm deploying my site on webfaction.com using mod_python. URL: http://interno.homelinux.org In webfaction.com, I have my Apache instance with mod_python, listening on a high port, then the main Apache running on the server, redirect the requests to my Apache instance. A common setup,

Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Malcolm Tredinnick
On Thu, 2007-07-12 at 07:05 +, [EMAIL PROTECTED] wrote: > Hi. > > without 'for' works ok with FireFox, but when it comes to IE > 6/7, it does not work. What do you mean by "does not work"? What actually fails? This is another case of the IE developers apparently not being able to read the

Re: threadlocals in Manager, import-time vs. execution-time problem?

2007-07-12 Thread Malcolm Tredinnick
On Wed, 2007-07-11 at 18:57 +, Nathaniel Whiteinge wrote: > I'm having a problem with threadlocals in a custom manager making > queries for the wrong user. I've Googled around quite a bit, and > haven't found the answer -- except others *do* seem to be successfully > using threadlocals in Mana

Re: error: package directory '\django' does not exist

2007-07-12 Thread Malcolm Tredinnick
On Wed, 2007-07-11 at 04:16 -0700, itajit wrote: > > Hi, > I'm trying to install Django on windows platform. As I tried to run its > setup file it gives an error msg that "error: package directory '\django' > does not exist" as there is directory in the folder Django-0.96. So, will > u plz he

Re: smtp error

2007-07-12 Thread Malcolm Tredinnick
On Wed, 2007-07-11 at 12:04 +0100, Chris Hoeppner wrote: [...] > Here's an excerpt from mail.log: > > Jul 11 12:58:40 webdevrack postfix/smtpd[5746]: connect from > localhost[127.0.0.1] > Jul 11 12:59:10 webdevrack postfix/smtpd[5746]: 42E9D16403D: > client=localhost[127.0.0.1] > Jul 11 12:59:3

Re: data truncation: web page field input vs direct manipulation

2007-07-12 Thread qhfgva
Well, somewhere between upgrading to trunk, using smart_unicode and playing around with mysqldb connection settings I'm now getting my data converted. Thanks for your help. On Jul 11, 12:13 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-07-11 at 05:56 +, qhfgva wrote: > >

Re: newforms does not create label's 'for' attribute

2007-07-12 Thread Russell Keith-Magee
On 7/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > without 'for' works ok with FireFox, but when it comes to IE > 6/7, it does not work. Hi YoungRok, Looks like you have found a bug. For future reference I've logged this as ticket #4860. Yours, Russ Magee %-) --~--~-~--~

Re: installation issues

2007-07-12 Thread Vincent Nijs
Can you tell us what version of Django you tried to install and what exact steps you took? I am using the Django development version on a mac and 'import django' works just fine. I would recommend you install svn through the link below: http://metissian.com/downloads/macosx/subversion/subversion-

Re: installation issues

2007-07-12 Thread surfwizz
I installed python from www.python.org, so the command prompt opens it into 2.5.1. That's what I tried to install django into. On Jul 12, 8:04 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/13/07,surfwizz<[EMAIL PROTECTED]> wrote: > > > > > I tried that originally. I'm sorry that I

Re: Do FormFields know which Model Field they're from?

2007-07-12 Thread Todd O'Bryan
Just ignore me! The callback function is called on the MODEL fields, not the FORM fields. (Although, given that they have the same names, please don't be too cross with me for not noticing the difference. You can see how much work I did trying to figure it out before I turned to the list.) Thank

Re: Do FormFields know which Model Field they're from?

2007-07-12 Thread Todd O'Bryan
On Fri, 2007-07-13 at 09:53 +0800, Russell Keith-Magee wrote: > > Check the attributes of field - amongst many others, there is > field.name, the name of the field on the form. So, you can do the > following: > > if isinstance(field, models.DateField) and field.name == 'appointment': >...

Re: newforms: clean way to customize a widget's label?

2007-07-12 Thread arthur debert
Hi Leif. Thanks for the pointer. This certainly looks userful, but if I understand this right it makes easier to link to external js and css, not customize the output of the tag. Cheers Arthur On Jul 9, 10:06 pm, leifbyron <[EMAIL PROTECTED]> wrote: > Arthur, > > You'll probably find this of i

Re: installation issues

2007-07-12 Thread Russell Keith-Magee
On 7/13/07, surfwizz <[EMAIL PROTECTED]> wrote: > > I tried that originally. I'm sorry that I thought that you meant that > I should try it as >>>import Django. Anyway, here's what >>>import > django looks like: > Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) Ok - your prompt is reporting Py

Re: installation issues

2007-07-12 Thread surfwizz
I tried that originally. I'm sorry that I thought that you meant that I should try it as >>>import Django. Anyway, here's what >>>import django looks like: Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits"

Re: Problem accessing ManyToManyField

2007-07-12 Thread Russell Keith-Magee
On 7/11/07, Shankar <[EMAIL PROTECTED]> wrote: > > Hi Russ, > > Thanks very much for your input. The answers to your 'sanity checks' are > inline. Thanks for the answers, but it doesn't appear to have shed any light on anything. Having another look at your application, it occured to me that the

Re: Fixtures for datetime fields using auto_now

2007-07-12 Thread Russell Keith-Magee
On 6/28/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I'm writing tests for an application, and I sort by update_time for > > one model. Is it possible in my fixtures to set fixed times? Right > > now, the update_time attrib

Re: Using Django without database

2007-07-12 Thread Patrick
On Thu, 12 Jul 2007 21:51:27 -0400, Todd O'Bryan wrote: > On Fri, 2007-07-13 at 01:40 +, Patrick wrote: > >> Unfortunately, I can't give you more details about the security aspect, >> except that it has to do with prolonged physical storage of large >> amounts of data online, which is "insec

Re: Apps importing from each others models

2007-07-12 Thread leanmeandonothingmachine
I was trying to avoid that, as in my actual use case it doesn't seem to make sense to combine apps. Thanks for the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Is there any way to custom group models in the admin panel?

2007-07-12 Thread James Bennett
On 7/12/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > This isn't possible at present. You can collect the fields on an > individual model into groups, but there isn't currently a mechanism to > group models other than by application. Sure there is, just supply a template 'admin/index.html'

Re: Do FormFields know which Model Field they're from?

2007-07-12 Thread Russell Keith-Magee
On 7/13/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > The docs for newforms say how to override a field if you wish: > ... > But what if I only want to override the appointment field in my model > with a form field that limits people to choosing weekdays, but leave the > birth_date field as a no

Re: Using Django without database

2007-07-12 Thread Todd O'Bryan
On Fri, 2007-07-13 at 01:40 +, Patrick wrote: > Unfortunately, I can't give you more details about the security aspect, > except that it has to do with prolonged physical storage of large amounts > of data online, which is "insecure". The exact details are not known to > me yet. I'm a deve

Re: Django on a shared host. The docs are scaring me ;)

2007-07-12 Thread [EMAIL PROTECTED]
Five minutes ago I bought Dreamhost hosting for put an Django application. This month I'll try it. On Jul 12, 8:56 pm, JP <[EMAIL PROTECTED]> wrote: > Check out this:http://www2.jeffcroft.com/blog/2006/may/11/django-dreamhost/ > > On Jul 11, 7:06 am, AndyB <[EMAIL PROTECTED]> wrote: > > > Despite

Re: Apps importing from each others models

2007-07-12 Thread Russell Keith-Magee
On 7/13/07, leanmeandonothingmachine <[EMAIL PROTECTED]> wrote: > > Is it possible for two apps to import from each others models? Lets > say I have two apps, articles and photos: > ... > this will return errors importing errors, but if you take out either > of the relations then it imports fine.

Re: Using Django without database

2007-07-12 Thread Patrick
On Thu, 12 Jul 2007 20:06:33 -0500, Jeremy Dunck wrote: > On 7/12/07, Patrick <[EMAIL PROTECTED]> wrote: >> Using a database is assumed, > > Not true. URL dispatch, forms, and views still work. It very must > depends what kind of site you're making. > > Though I raise my eyebrow at the idea th

Re: Is there any way to custom group models in the admin panel?

2007-07-12 Thread Russell Keith-Magee
On 7/12/07, Sebastian Macias <[EMAIL PROTECTED]> wrote: > > By default models are grouped by app. I really need to be able to > break down that grouping a little bit more. I will have an app with > probably 40-50 models and would like to group those logically instead > of having them all listed un

Re: Using Django without database

2007-07-12 Thread Jeremy Dunck
On 7/12/07, Patrick <[EMAIL PROTECTED]> wrote: > Using a database is assumed, Not true. URL dispatch, forms, and views still work. It very must depends what kind of site you're making. Though I raise my eyebrow at the idea that making something accessible via web service somehow makes it more s

Using Django without database

2007-07-12 Thread Patrick
Hi! I'm just about to start on a project, which for security reasons might require storing data on a separate server via undefined yet "web services", in other words I might not be able to use a database. I've been using Django for a couple of projects now and it transformed my web developmen

Re: ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

2007-07-12 Thread Patrick
On Thu, 12 Jul 2007 21:16:35 -0300, Ramiro Morales wrote: > On 7/12/07, Patrick <[EMAIL PROTECTED]> wrote: >> >> I think this is a bug, but maybe not. I'm running Fedora 7 with its >> latest package. Any thoughts? >> >> > Take a look at this thread: > > http://groups.google.com/group/django-user

Re: ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

2007-07-12 Thread Ramiro Morales
On 7/12/07, Patrick <[EMAIL PROTECTED]> wrote: > > I think this is a bug, but maybe not. I'm running Fedora 7 with its > latest package. Any thoughts? > Take a look at this thread: http://groups.google.com/group/django-users/browse_thread/thread/6f99db48473b9eba/8b1d734cd1cb9b40?lnk=gst&q=fedora

Do FormFields know which Model Field they're from?

2007-07-12 Thread Todd O'Bryan
The docs for newforms say how to override a field if you wish: http://www.djangoproject.com/documentation/newforms/#overriding-the-default-field-types > For example, if you wanted to use MyDateFormField for any DateField > field on the model, you could define the callback: > > >>> def my_callba

Re: Django on a shared host. The docs are scaring me ;)

2007-07-12 Thread JP
Check out this: http://www2.jeffcroft.com/blog/2006/may/11/django-dreamhost/ On Jul 11, 7:06 am, AndyB <[EMAIL PROTECTED]> wrote: > Despite having three live Django sites running from Apache and FCGI I > have always felt there was a certain degree of black magic about the > process and I've succe

Re: get_FOO_url() returns empty string

2007-07-12 Thread Collin Grady
You're missing the trailing slash on MEDIA_URL though, so get_img_url won't get the proper path. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: syncdb building freaky database

2007-07-12 Thread Jökull
Thank you all for quick responses. I feel a bit silly trying to put unique=true for a boolean. What I was trying to accomplish though: Only one value can have the boolean set to "true". Also (here I am taking the whole hand when you guys have offered a finger) ... have any of you implemented som

Re: No module named _md5

2007-07-12 Thread Graham Dumpleton
On Jul 13, 4:55 am, e-gor <[EMAIL PROTECTED]> wrote: > # ldd _hashlib.so > _hashlib.so: > ldd: _hashlib.so: Shared object "_hashlib.so" not found, required by > "ldd" > _hashlib.so: exit status 1 > > So it's mean that _hashlib.so can't be loaded because it can't find > itself? It's strange > > fil

Re: get_FOO_url() returns empty string

2007-07-12 Thread Jonathan Buchanan
wolfds wrote: > I ran into a problem which I tried to solve for several hours now. The > situation is simple and straightforward: > > models.py: > > class Foo(models.Model) > img = model.ImageField(upload_to='pix') > > settings.py: > > MEDIA_ROOT = '/home/wolf/appl/media/' > MEDIA_URL = 'h

Re: installation issues

2007-07-12 Thread Vincent Nijs
You already told us that. Don't use Django but django. The command is case-sensitive. import django Vincent On 7/12/07 4:34 PM, "surfwizz" <[EMAIL PROTECTED]> wrote: > > Here's what that looks like: import Django > Traceback (most recent call last): > File "", line 1, in > ImportErro

Re: syncdb building freaky database

2007-07-12 Thread oggie rob
The statements seem fine, just that your models don't reflect what you are after. 1. if you set null=True, the database lines would read "NULL" instead of "NOT NULL". blank=True refers to whether the value can be empty (i.e. NULL is not equal to ''). However for most CharFields you will want to k

get_FOO_url() returns empty string

2007-07-12 Thread wolfds
I ran into a problem which I tried to solve for several hours now. The situation is simple and straightforward: models.py: class Foo(models.Model) img = model.ImageField(upload_to='pix') settings.py: MEDIA_ROOT = '/home/wolf/appl/media/' MEDIA_URL = 'http://my.host.de/media' foo.html:

Re: syncdb building freaky database

2007-07-12 Thread Jonathan Buchanan
> 1. All fields have 'NOT NULL' and are required - this does not reflect > my model If you want a field to be nullable, use null=True - the default is False. [1] If you want a field to not be required in the admin application, use blank=True - the default is False. [2] > 2. I get strange erro

Re: syncdb building freaky database

2007-07-12 Thread leanmeandonothingmachine
sry it's null=True --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTEC

Re: syncdb building freaky database

2007-07-12 Thread leanmeandonothingmachine
You need to use null=False to allow null values. --~--~-~--~~~---~--~~ 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 gro

syncdb building freaky database

2007-07-12 Thread Jökull
1. All fields have 'NOT NULL' and are required - this does not reflect my model 2. I get strange errors in the admin when adding a second item of anything : IntegrityError at /admin/portfolio/work/add/ (1062, "Duplicate entry '0' for key 2") portfolio/models.py --- from

Re: Django + newforms + jQuery

2007-07-12 Thread Przemek Gawronski
> This__ isn't interesting, but it *is* an example. :-) > .. __: http://groups.google.com/group/django-users/msg/c8f7d18eb79d9aa1 It's definitely a start, thanks! Przemek -- AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin info: http://www.tanren.pl/ phone: +4850151 ema

Apps importing from each others models

2007-07-12 Thread leanmeandonothingmachine
Is it possible for two apps to import from each others models? Lets say I have two apps, articles and photos: App articles: from mysite.photos.models import photo class topics: class articles with a ManytoManyKey to photos App photos: from mysite.articles.models import topics class photos with

ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

2007-07-12 Thread Patrick
I think this is a bug, but maybe not. I'm running Fedora 7 with its latest package. Any thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: newforms: manually accessing initial value for field

2007-07-12 Thread Nathaniel Whiteinge
The form object has the initial values in a couple places in dicts. Since it's a dict you can access it's fields with the dot-syntax. I just successfully tried this on one of my forms:: {{ form.fields.FIELDNAME.initial }} or:: {{ form.initial.FIELDNAME }} Just watch that your view is p

Re: installation issues

2007-07-12 Thread surfwizz
Here's what that looks like: >>> import Django Traceback (most recent call last): File "", line 1, in ImportError: No module named Django >>> On Jul 12, 2:19 pm, Vincent Nijs <[EMAIL PROTECTED]> wrote: > How about 'import django' rather than 'import Django'? > > Vincent > > On 7/12/07 4:15 PM

Re: Is there any way to custom group models in the admin panel?

2007-07-12 Thread Ryan
I am interested in this as well. I've searched for a way to organize models in the admin panel but I haven't found anything. It seems illogical to create multiple apps simply for the fact to separate them in the admin panel. --~--~-~--~~~---~--~~ You received this

Re: installation issues

2007-07-12 Thread Vincent Nijs
How about 'import django' rather than 'import Django'? Vincent On 7/12/07 4:15 PM, "surfwizz" <[EMAIL PROTECTED]> wrote: > > When I run python in terminal, then use >>>import Django, here's what > it looks like. > Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) > [GCC 4.0.1 (Apple Computer,

Re: Django + newforms + jQuery

2007-07-12 Thread Nathaniel Whiteinge
> Well, in general, I'm pretty new to web development including javascript > (but with 7 years of python coding) so I just wanted to see what (and > how) people do newforms and jQuery to get the idea. This__ isn't interesting, but it *is* an example. :-) .. __: http://groups.google.com/group/dja

Re: installation issues

2007-07-12 Thread surfwizz
When I run python in terminal, then use >>>import Django, here's what it looks like. Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import django Traceback (most rec

Re: Django + newforms + jQuery

2007-07-12 Thread [EMAIL PROTECTED]
Well, jquery is just a framework for javascript, much like Django is a framework for python. So the real question is, what are you trying to do... validation? Hide and show elements? Send ajax requests back and forth? Without knowing what you're trying to do, I can't really help. On Jul 12, 2:28

Re: Apache Config; newbie confused

2007-07-12 Thread JP
On Jul 12, 9:34 am, "Sells, Fred" <[EMAIL PROTECTED]> wrote: > I'm a django newbie. I worked through the 4 part tutorial, and then got the > mysite demo working under Apache. I went through a lot of trial and error > to get it working under Apache, and am concerned that even though it works, >

Re: one model per file

2007-07-12 Thread JP
Please read this: http://code.djangoproject.com/wiki/CookBookSplitModelsToFiles On Jul 12, 3:21 am, james_027 <[EMAIL PROTECTED]> wrote: > Hi, > > I am following the official tutorial of django, and found out that > several model are define in a single file. I just wonder if we could > have one m

Dynamic Model Choices

2007-07-12 Thread kevinski
Here is my situation: I have a model attribute which needs CHOICES to come from another model. The caveat is, I need to add an addition choice so I cannot set it as a foreign key. How do I set the CHOICES to populate dynamically and add the additional choice. Here is the abbreviated context of m

Job Opening in Tampa, Florida

2007-07-12 Thread [EMAIL PROTECTED]
Howdy all. We're looking to bring on a second full time Django / Python developer in downtown Tampa, Florida (33602) on the waterfront. We're a medical company developing numerous systems that are built on the wonderful Django platform. Desirable Skills: * Moderate to Advanced Python skills * K

Re: Django + newforms + jQuery

2007-07-12 Thread Przemek Gawronski
> I have no idea what you're trying to do with your form, but I've used > jquery and newforms together. Without knowing waht you're trying to > do, I can't give any specific advice or tips, but at the most basic > level, you just grab the element you want: $("#id_foo") and you're on > your way. W

Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
Benjamin is right, I forgot that detail!! On 7/12/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > On 7/12/07, Lic. Jos� M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > the idea here is like Jeremy say, make django think that it has a module > or > > package named models, here, in __init__.

Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
Benjamin is right, I forgot that detail!! On 7/12/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > On 7/12/07, Lic. Jos� M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > > the idea here is like Jeremy say, make django think that it has a module > or > > package named models, here, in __init__.

Re: one model per file

2007-07-12 Thread Benjamin Slavin
On 7/12/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > the idea here is like Jeremy say, make django think that it has a module or > package named models, here, in __init__.py file I'm telling that the > directory models is a package and for all your models to be accessible to >

Re: No module named _md5

2007-07-12 Thread e-gor
# ldd _hashlib.so _hashlib.so: ldd: _hashlib.so: Shared object "_hashlib.so" not found, required by "ldd" _hashlib.so: exit status 1 So it's mean that _hashlib.so can't be loaded because it can't find itself? It's strange file _hashlib.so found at /usr/local/lib/python2.5/lib-dynload with http

Re: Missing Plus-Sign over ManyToManyField

2007-07-12 Thread oggie rob
You need to add the Admin class to ContactPerson -rob On Jul 12, 6:59 am, Manuel Meyer <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hey, > > from other projects, running on the same django instance, I know that > there is a possibility to display a '+' icon

complicated limit_choices_to on an inline-edited page

2007-07-12 Thread Charles Wesley
I have a ForeignKey field with the option: limit_choices_to = {'team__id': Game.objects.get(pk=1).visitor_team.id} This class is coded to be edited inline by another class. When I use the limit_choices_to option above, I can access the class directly, but not through the other class. When I chan

Re: Django + newforms + jQuery

2007-07-12 Thread [EMAIL PROTECTED]
I have no idea what you're trying to do with your form, but I've used jquery and newforms together. Without knowing waht you're trying to do, I can't give any specific advice or tips, but at the most basic level, you just grab the element you want: $("#id_foo") and you're on your way. On Jul 12,

Re: Flex integration, best practices?

2007-07-12 Thread Don Arbow
On Jul 12, 2007, at 6:03 AM, Jeremy Dunck wrote: > > You might want to check out DjangoAMF: > http://djangoamf.sourceforge.jp/index.php?DjangoAMF_en > > It's specifically for Adobe XML messaging. It adapts Flex's requests > to regular Django views. Actually, AMF is a compact binary format that

sessions - cookies in opera

2007-07-12 Thread Daniel Kontsek
Hello I have a web application with 2 views. The first view checks if the session dictionary has a 'uid' key - if not it generates an random ID and puts it into request.session dict. The second view reads the uid from the session dict and creates a Project DB object with that uid. This works fine

Re: Is there any way to custom group models in the admin panel?

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
I would like to know if this is posible in a simple and clean way, if anyone has the answer, please, post it. On 7/11/07, Sebastian Macias <[EMAIL PROTECTED]> wrote: > > > By default models are grouped by app. I really need to be able to > break down that grouping a little bit more. I will have an

Re: Generating graphs from db data and displaying results using Django?

2007-07-12 Thread Toby Dylan Hocking
Hi Frank, > Wouldn't it be possible to adapt ZSVG_Graph to Django? Thanks for the suggestion. In fact, I was already considering SVG output as one of the modes of django.contrib.dataplot. One of the cool things about django.contrib.dataplot is its extensibility -- getting a new type of plot,

Apache Config; newbie confused

2007-07-12 Thread Sells, Fred
I'm a django newbie. I worked through the 4 part tutorial, and then got the mysite demo working under Apache. I went through a lot of trial and error to get it working under Apache, and am concerned that even though it works, I'm missing the big picture. I have to admit that I'm a little confuse

Re: Generating graphs from db data and displaying results using Django?

2007-07-12 Thread Toby Dylan Hocking
Hi Silas, > If it is a personal site take a look at http://www.maani.us/xml_charts/ > they have some really nice charts that are flash based. > All the data is sent via xml. Thanks for your input. However, I don't like the idea of forcing people to use flash to look at plots, since (unlike Djan

Missing Plus-Sign over ManyToManyField

2007-07-12 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hey, from other projects, running on the same django instance, I know that there is a possibility to display a '+' icon located over the ManyToManyField, that allows u to add a new object to relate to. So - in my case - you could add a contact

Re: Object list generic view + list

2007-07-12 Thread Vincent Foley
My problem is that I need to sort on a field in a another table. I found a workaround: File.objects.select_related().filter(...).order_by('app_table.column') It works for me because the foreign key cannot be NULL. Vincent. On Jul 11, 6:27 pm, Drasty <[EMAIL PROTECTED]> wrote: > Have you tried

Re: one model per file

2007-07-12 Thread Lic. José M. Rodriguez Bacallao
right now I'm working with this layout, multiple files with models definitions, look an example: project dir: |___app dir |__models (this is a package) |___ __init__.py (here I import all my models: from fileX import modelX...) |___ fileX.py (he

Re: some problems when django worked under fastcgi..

2007-07-12 Thread 萧连衣
KpoH, it works;) thank you very much. 2007/7/12, 萧连衣 <[EMAIL PROTECTED]>: > > i replace with #!/usr/local/bin/python > but it still told me "env: python: No such file or directory " > > > 2007/7/11, KpoH <[EMAIL PROTECTED]>: > > > > > > edit ./manage.py > > #!/usr/bin/env python replace with #!/us

Re: Flex integration, best practices?

2007-07-12 Thread Russell Keith-Magee
On 7/12/07, Sells, Fred <[EMAIL PROTECTED]> wrote: > > So I'm not using many (any?) of the cool features of Apache or django once > my page is up. Would be reasonable to bypass Apache (and django) and use > something like SCGI to just serve XML data? Or did I just reveal how little > I truely kn

Re: Flex integration, best practices?

2007-07-12 Thread Jeremy Dunck
On 7/12/07, Sells, Fred <[EMAIL PROTECTED]> wrote: ... > So I'm not using many (any?) of the cool features of Apache or django once > my page is up. Would be reasonable to bypass Apache (and django) and use > something like SCGI to just serve XML data? Or did I just reveal how little > I truely

Re: one model per file

2007-07-12 Thread Jeremy Dunck
On 7/12/07, LaundroMat <[EMAIL PROTECTED]> wrote: ... > I don't exactly see what you'd want to do this though. It's a lot > easier to stick to the standard. Perhaps he's using a source control system with pessimistic locking. So, yeah, you can do this: app_dir/ models.py -> "from sub_model im

Flex integration, best practices?

2007-07-12 Thread Sells, Fred
I'm a django newbie and only a little further along with flex but an old time Pythonista, plus tomcat servlets. I'm very impressed with django; great work. I'm evaluating flex for my presentation layer because of the way it separates view and logic on the client side and it's robust widget set.

Re: Generating graphs from db data and displaying results using Django?

2007-07-12 Thread Silas
On Jul 10, 6:03 pm, Chris Rich <[EMAIL PROTECTED]> wrote: > Hey all, > So, I'm a beginner here with Django/webdesign/database stuff/all the > rest of it and I may be getting ahead of myself. I am currently > getting my feet wet in the Django environment, but I eventually want > to graph/calcu

Wanna Make Money for free?

2007-07-12 Thread [EMAIL PROTECTED]
Visit this website : http://www.makemoneyadsense.bravehost.com This website is a free guide to create a free website and make money through Google adsense and some other simillar ad programs. It also tells about sites for get paid to click ADs, get paid to post discussions, blogs, comments and pho

Re: session in all templates?

2007-07-12 Thread Martin Kaffanke
Am Donnerstag, den 12.07.2007, 10:46 +0800 schrieb Russell Keith-Magee: > On 7/12/07, Martin Kaffanke <[EMAIL PROTECTED]> wrote: > > At the moment I use on some places a > > > > {'session': request.session} for the Context to render the template. > > How Can I make the session automaticaly availabl

Re: Calling different Django sites from the same external application

2007-07-12 Thread David
Thanks for the note. I apologize for not making myself clear. The single application from which I want to make API calls against two distinct Django apps is NOT a Django app itself, nor is it even a web application, so having Apache set the environment up won't help me! It seems like I can call t

Re: one model per file

2007-07-12 Thread LaundroMat
On 12 Jul, 10:21, james_027 <[EMAIL PROTECTED]> wrote: > Hi, > > I am following the official tutorial of django, and found out that > several model are define in a single file. I just wonder if we could > have one model per file? or can be as flexible as X no of models in > file A and Y no of mo

Re: some problems when django worked under fastcgi..

2007-07-12 Thread 萧连衣
i replace with #!/usr/local/bin/python but it still told me "env: python: No such file or directory " 2007/7/11, KpoH <[EMAIL PROTECTED]>: > > > edit ./manage.py > #!/usr/bin/env python replace with #!/usr/local/bin/python > > 萧连衣 пишет: > > > > http://www.djangoproject.com/documentation/0.96/fas

Re: Django + newforms + jQuery

2007-07-12 Thread Przemek Gawronski
> What do you mean? Perhaps you should go to the jQuery-EN group and > look for examples of form manipulation there. Thanks, I'll do that! Przemek -- AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin info: http://www.tanren.pl/ phone: +4850151 email: [EMAIL PROTECTED] -

Re: Django + newforms + jQuery

2007-07-12 Thread Jökull
What do you mean? Perhaps you should go to the jQuery-EN group and look for examples of form manipulation there. J On Jul 12, 7:42 am, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > Hi, any one willing to share some examples of django newforms with > jQuery? > > Thanks in advance! > > Przemek >

Re: Generating graphs from db data and displaying results using Django?

2007-07-12 Thread Frank Tegtmeyer
Toby Dylan Hocking <[EMAIL PROTECTED]> writes: > Thanks for the input, Jeremy. I'd definitely be open to using PIL instead > of ImageMagick. > Do you know of a way that PIL can be used to convert PDF to PNG? A quick > google search reveals this pdf Wouldn't it be possible to adapt ZSVG_Graph

one model per file

2007-07-12 Thread james_027
Hi, I am following the official tutorial of django, and found out that several model are define in a single file. I just wonder if we could have one model per file? or can be as flexible as X no of models in file A and Y no of models in file B and so on. If this is allowed, how to we name the fi

Re: Graphs and django

2007-07-12 Thread Ben Ford
Hey Toby, Thanks for the input, I'll try these things on tuesday (not to make anyone jealous but I'm going to Bali for a long weekend in about 10 minutes :-D ). The problems came up when I followed the steps in one of your .txt files... I haven't had a chance to rigorously explore whats going on ye

Re: Django & Amazon (SOAP)

2007-07-12 Thread Justin Lilly
Terribly sorry. This is a part of a larger django project involving book sales. If only for completion and those looking for this later, the fix was adding an item to the request called sort with the argument 'relevancerank' which gave more expected results. -justin On 7/12/07, Jeremy Dunck <[E

  1   2   >