Re: DreamHost

2006-08-08 Thread Eugene Lazutkin
Rather obvious question: did you try to complain to DreamHost people about your problems? FastCGI is supposed to work. Thanks, Eugene george webzary wrote: > I tried everything. I touched the fcgi files, pkilled python. There is > no problem > as far as django itself is concerned. It is

Re: MR: _manipulator_validate_FIELD() methods?

2006-08-08 Thread Tom Tobin
On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Tom, > > Does the solution I posted [1] earlier in this thread not work for you? > > > [1] http://groups.google.com/group/django-users/msg/a76be4c94631ec80 Getting these manipulator-aware validators working in the admin is exactly the

Re: MR: _manipulator_validate_FIELD() methods?

2006-08-08 Thread [EMAIL PROTECTED]
Tom, Does the solution I posted [1] earlier in this thread not work for you? [1] http://groups.google.com/group/django-users/msg/a76be4c94631ec80 matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: DreamHost

2006-08-08 Thread george webzary
I tried everything. I touched the fcgi files, pkilled python. There is no problemas far as django itself is concerned. It is working very well. I am able to create apps, models, templates, acess the manage.py shell. I can do whatever I can do on my Ubuntu PC The problem is definitely with Fast CGI

Re: Using Django with a non-relational back-end data store?

2006-08-08 Thread Malcolm Tredinnick
On Tue, 2006-08-08 at 18:41 -0700, felciano wrote: > Hi -- > > I'm looking for a python web framework to build web apps talking to a > non-SQL-based data store, similar to an RDF store for the semantic web. > I'm trying to find a toolkit with a sufficiently-factored database > abstraction layer

Re: MySQL UnicodeEncodeError

2006-08-08 Thread Andy Dustman
On 8/7/06, Niran Babalola <[EMAIL PROTECTED]> wrote: > > "UnicodeEncodeError: 'latin-1' codec can't encode characters in > position 75-76: ordinal not in range(256)" This indicates your default database connection character set is latin1. You can change this in your server configuration, or you

good at typing? get at me

2006-08-08 Thread numberslocker
lookin fer a data entry specialist: --gotta be quick at typing --serious attitude[serioulsy good, that is] --part time/full time --basic internet knowledge. hit me at [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to

formwrappers and manipulators

2006-08-08 Thread skullvulture
Are form wrappers and manipulators only for creating 'change object' and 'add object' forms? I'm creating a simple form that will have several drop downs that correspond to fields in the database for one of my objects, that will serve as a search form. Right now I have a basic addManipulator so

Re: DateTime field milliseconds?

2006-08-08 Thread James Bennett
On 8/8/06, Gennan Chen <[EMAIL PROTECTED]> wrote: > I am using MySQL as my DB and it seems datetime field did not store > milliseconds. Is it the correct behavior? Any chance I can hack that/ I need > Milliseconds resolution. As far as I know, MySQL offers no support for storing such values; the

Re: DreamHost

2006-08-08 Thread Jure Čuhalev
On 8/8/06, george webzary <[EMAIL PROTECTED]> wrote: > Hi, > > Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I > tried yesterday. It just does not seem to work. I tried Jeff Croft's > tutorial first, then changed the code based on this link >

Re: DreamHost

2006-08-08 Thread Jay Parlar
On 8/8/06, george webzary <[EMAIL PROTECTED]> wrote: > Hi, > > Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I > tried yesterday. It just does not seem to work. I tried Jeff Croft's > tutorial first, then changed the code based on this link >

DateTime field milliseconds?

2006-08-08 Thread Gennan Chen
Hi!I am using MySQL as my DB and it seems datetime field did not store milliseconds. Is it the correct behavior? Any chance I can hack that/ I need Milliseconds resolution.  Gen-Nan Chen --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: How to get a subset of records from a subset?

2006-08-08 Thread DavidA
PythonistL wrote: > To explain: > Let's suppose we have a command > > HistoryList=historys.get_list(id__exact='2',order_by=['-PostedDate']) > > that command extracts a few records and from them I would like to use > for further processing all without the first or last record. > How can I do that

Re: MR: _manipulator_validate_FIELD() methods?

2006-08-08 Thread Tom Tobin
On 5/6/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > On 5/6/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > > > Matthew Flanagan wrote: > > > > >Since MR merged the _manipulator_validate_FIELD() methods stopped > > >working. The solution I came up with was to write custom manipulators > >

DreamHost

2006-08-08 Thread george webzary
Hi,Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I tried yesterday. It just does not seem to work. I tried Jeff Croft's tutorial first, then changed the code based on this link http://www.djangoproject.com/documentation/fastcgi/And then tried the official version of

Re: Contacts application

2006-08-08 Thread Sam Tran
On 8/8/06, Rares Vernica <[EMAIL PROTECTED]> wrote: > > Hi, > > Do you know anybody trying a Contacts/Phonebook type of application in > Django? I am thinking about building one. > We are writing such an interface for internal use. The contact information includes: - work phone numbers - home

Re: How can i modify default add method for a model?

2006-08-08 Thread Bryan Chow
Not sure I understand exactly what you're looking for, but have you looked at the manipulators documentation? http://www.djangoproject.com/documentation/forms/ Bryan On 8/8/06, ElGranAzul <[EMAIL PROTECTED]> wrote: > Hi all... > > I'm very newbie to django and python, and i'm testing it. > >

Http authentication and the multiple auth backend model.

2006-08-08 Thread Pawel J. Sawicki
Hello! I'm developing a web based application using the Django framework. One of the requirements for my software state that the program must, whenever possible, automatically "deal" with users that had been previously authenticated via http capabilities. It does not mean it should always log

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-08 Thread Waylan Limberg
On 8/8/06, Sarcastic Zombie <[EMAIL PROTECTED]> wrote: > > Oh man, I'm really grateful for the help. And for writing Django in the > first place. > > Here's the fun part of my problem! It works fine in the ./manage.py > shell. My view was loading the agency with an id of 141, so for >

Re: Why 404?

2006-08-08 Thread Jarek Zgoda
Steven Armstrong wrote: > Have you nuked any *.pyc files still lying around after applying the patch? That was it, thanks. Did a clean SVN checkout and your patch works fine. Any chance for anybody else to check & review this patch? It would be nice to have such problem fixed... Cheers Jarek

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-08 Thread Sarcastic Zombie
> What happens when you keep going? Try doing the loop here. Perhaps > something like: > > >>> for agent in a.agent_set.all(): > ... print agent > ... >>> for agent in a.agent_set.all(): ... print agent.first_name ... Agent No error. :-D

Re: How can i modify default add method for a model?

2006-08-08 Thread ElGranAzul
Ok... my newbie error... ;) Now i've found it before 2 days of reads... the save function... Thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

How can i modify default add method for a model?

2006-08-08 Thread ElGranAzul
Hi all... I'm very newbie to django and python, and i'm testing it. I've created a model, and i would like to add a function to create a group item for each model item. I've thinkint to use __setitem__ or __add__, but i can't find documentation. Someone could help me or give me some doc or url,

Re: Has djangoproject.com's database been recently restored from a backup?

2006-08-08 Thread Pawel J. Sawicki
Adrian Holovaty wrote: > I routinely go through the djangoproject.com comments and delete > comments that either aren't directly related to the documentation or > are incorrect. (...) Well... I've just tried to follow the discussion that started in those two topics. I'll rephrase my question

Re: manage.py syncdb error

2006-08-08 Thread abe
Kenneth Gonsalves wrote: > On 08-Aug-06, at 7:37 PM, abe wrote: > > > > > I'm sometimes creating extra models, sometimes deleting an old model, > > and then run syncdb to update the database. > > if you are deleting old model, syncdb wont do it for you > I know, but the complaint is about an

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-08 Thread Kenneth Gonsalves
On 08-Aug-06, at 8:36 PM, Sarcastic Zombie wrote: > > I'm in the process of porting from .91 to the magic removal trunk > (lord > have mercy). my sympathies > > In one of the old templates, I do a: > >{% for agent in agency.get_agent_list %} > >blah blah > >{% endfor %} > > That

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread John Sutherland
Not that I could find -- I believe I originally found it in a Ticket somewhere. John. On 8/8/06, ak <[EMAIL PROTECTED]> wrote: > > John, app_label made it work. Thanks !!! > > P.S. Is there a line in django docs about that ? > > > > > -- [EMAIL PROTECTED]

Re: manage.py syncdb error

2006-08-08 Thread Kenneth Gonsalves
On 08-Aug-06, at 7:37 PM, abe wrote: > > I'm sometimes creating extra models, sometimes deleting an old model, > and then run syncdb to update the database. if you are deleting old model, syncdb wont do it for you -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

'Unindexable Object' Error In Template W/ Relation Manager

2006-08-08 Thread Sarcastic Zombie
I'm in the process of porting from .91 to the magic removal trunk (lord have mercy). In one of the old templates, I do a: {% for agent in agency.get_agent_list %} blah blah {% endfor %} That worked great. So in my revised unmagical template I figured I'd do a little: {% for

Re: Admin Manipulators

2006-08-08 Thread Adrian Holovaty
On 8/7/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Can I extend the admin manipulator? I want to change one ManyToMany > select box to a text field. Hey Seth, No, it's not possible to extend the default model manipulators for use in the admin. Adrian -- Adrian Holovaty holovaty.com |

Related Models Repost

2006-08-08 Thread Dave
How can I create a relationship between two models, using a ForeignKey in the second to take advantage of the Admin interface ability to add an arbitrary number of them, but then also have the ability to create a public view for adding objects based off the first model AND the second? So: class

Hack: middleware to prepend language code to url

2006-08-08 Thread gjiro
Hello there, I modified "Advanced Locale from URL middleware" by Jonathan Schemoul a bit and mixed in some parts of django.middleware.common. It prepends the language code to the url if no language code was present in request.path. Can somebody check the code to suggest possible optimizations

Re: Admin Manipulators

2006-08-08 Thread Seth Buntin
Ok. Thanks. --~--~-~--~~~---~--~~ 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 PROTECTED]

Re: Contacts application

2006-08-08 Thread Sarcastic Zombie
I have an internal company website that includes contact management. I wrote an app that connects to an LDAP tree; LDAP handles all the contact stuff (which it's good at) and I just wrote the interface to view and do lookups, etc. Just an idea. Soon I'll be writing code to let django connect to

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread ak
John, app_label made it work. Thanks !!! P.S. Is there a line in django docs about that ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: manage.py syncdb error

2006-08-08 Thread abe
Seth Buntin wrote: > Are you trying to insert initial data into you db when running this > script? not sure exactly what yuo mean by initial data. I'm sometimes creating extra models, sometimes deleting an old model, and then run syncdb to update the database. Eiso

Related Models

2006-08-08 Thread Dave
How can I create a relationship between two models, using a ForeignKey in the second to take advantage of the Admin interface ability to add an arbitrary number of them, but then also have the ability to create a public view for adding objects based off the first model AND the second? So: class

Re: MySQL UnicodeEncodeError

2006-08-08 Thread Gábor Farkas
Wade Leftwich wrote: > Gábor Farkas wrote: >> Niran Babalola wrote: >>> I've been developing a Django application using SQLite, and now I'm >>> trying to move over to MySQL and actually launch the site. The >>> application is storing data from RSS/Atom feeds using Universal Feed >>> Parser, which

manage.py syncdb error

2006-08-08 Thread abe
if I apply syncdb for one of my apps ./manage.py syncdb xxapp I get the traceback below that ends with [...] _mysql_exceptions.IntegrityError: (1062, "Duplicate entry '17-add_status' for key 2") I can't find an obvious error in the database. does anyone know what could be wrong.? abe

Re: Admin Manipulators

2006-08-08 Thread Seth Buntin
Can this be done? I just can't seem to find any documentation on extending the admin module this way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to get a subset of records from a subset?

2006-08-08 Thread John Sutherland
Hi PythonistL, I wonder if you can do the following: histories = historys... ids = [history.id for history in histories] histories = historys.get_list(id__in=ids, date__year=1066) It's a while since I did any .91 ;) John. On 8/8/06, PythonistL <[EMAIL PROTECTED]> wrote: > > > To explain: >

Re: manage.py syncdb error

2006-08-08 Thread Seth Buntin
Are you trying to insert initial data into you db when running this script? --~--~-~--~~~---~--~~ 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

Re: Contacts application

2006-08-08 Thread Chris Moffitt
> Do you know anybody trying a Contacts/Phonebook type of application in > Django? I am thinking about building one. We don't have a contacts application but within Satchmo (the shopping cart framework we're developing) there are some address and contact models that might be helpful. Check the

Re: MySQL UnicodeEncodeError

2006-08-08 Thread Wade Leftwich
Gábor Farkas wrote: > Niran Babalola wrote: > > I've been developing a Django application using SQLite, and now I'm > > trying to move over to MySQL and actually launch the site. The > > application is storing data from RSS/Atom feeds using Universal Feed > > Parser, which uses unicode strings

Re: Why 404?

2006-08-08 Thread Jarek Zgoda
Steven Armstrong wrote: > Don't know if this is related to your problem, but if you're using > sqlite the patch at [1] may help. > > If this does solve your problem, and you have a moment, you could add > some more background info about the bug to that ticket and confirm that > the patch worked.

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread John Sutherland
Hi Anton, You may need to add the Meta class in too: mycompany/models.py: from django.db import models class Subnet(models.Model): field = models.CharField(maxlength=255) ... class Admin: pass class Meta: app_label = 'administration' And then in your

Re: Why 404?

2006-08-08 Thread Jarek Zgoda
Jay Parlar wrote: > > I had a similar problem (not seeing the records I just inserted into > > database - actually they were the only one) because I left the > > timezone variable set to "America/Chicago" and i live in Europe (and > > my timezone is Chicago + 8). So the date filter considered

Re: Invalid character error using Oracle backed

2006-08-08 Thread Bill de hÓra
Malcolm Tredinnick wrote: > For now, if you want to hack on the source for your initial > testing/debugging, have a look in django/core/management.py around line > 206. There's a line that says > > r_name = '%s_refs_%s_%x' % (r_col, col, abs(hash((r_table, > table > > (it's

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread ak
Malcolm, my models are imported into application,models and do have Admin inner class. Take a look: 1. Model: $ cat subnet.py # -*- coding: windows-1251 -*- from django.db import models class Subnet(models.Model): address = models.IPAddressField() mask = models.IPAddressField()

Re: Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread Malcolm Tredinnick
On Tue, 2006-08-08 at 00:37 -0700, ak wrote: > Hello guys > > Today I discovered a strange problem which may be caused by my > misunderstanding or by a bug in django and i would like to shed some > light on it with your help. I think you are misunderstanding how the admin application interacts

Re: MySQL UnicodeEncodeError

2006-08-08 Thread Gábor Farkas
Niran Babalola wrote: > I've been developing a Django application using SQLite, and now I'm > trying to move over to MySQL and actually launch the site. The > application is storing data from RSS/Atom feeds using Universal Feed > Parser, which uses unicode strings for all its data. When I try to

Re: Using custom forms with generic views

2006-08-08 Thread Ian Holsman
another alternative you may want to consider is to piggybak ontop of  the generic viewhave a look at http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/views/create_update.py for a examplewhich adds a 'change_user' and 'last_change' fieldseg.    if request.POST:        new_data =

Re: Using custom forms with generic views

2006-08-08 Thread Gábor Farkas
jeffmikels wrote: > Thanks for your help. I ended up creating a view to do the work. If the > data is simple enough and just plain text, is there a compelling reason > to use AddManipulator or other manipulators instead of just > object.save()? > > hi, for example, if you want to validate

Admin interface for DB model classes defined outside application doesn't work ?

2006-08-08 Thread ak
Hello guys Today I discovered a strange problem which may be caused by my misunderstanding or by a bug in django and i would like to shed some light on it with your help. I have models package `mycompany.models` where are defined all the models for all our apps. Same classes are used in a few

Contacts application

2006-08-08 Thread Rares Vernica
Hi, Do you know anybody trying a Contacts/Phonebook type of application in Django? I am thinking about building one. Thanks a lot, Ray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To