Re: Not all Apps Loaded in Admin Interface?

2006-12-29 Thread [EMAIL PROTECTED]
On Dec 26, 1:37 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: On 12/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there any way to see where this is bombing out? Perhaps some kind of > help from Apache? There are no error messages in the apache2 error log > or on theadmininterface, i

Problem with custom forms and related objects

2006-12-29 Thread JMCameron
I'm having a problem with custom forms and models with related objects. I've created a simplified test case that illustrates the problem. Here is the model file (a room contains several chairs): -- model.py - class Room(models.Model): name = models.CharField(ma

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread medhat
Well, re-emerging mod_python fixed the problem! -- Medhat --~--~-~--~~~---~--~~ 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 fro

My way to extend the admin interface

2006-12-29 Thread Michel Thadeu Sabchuk
Hi guys! I'm porting a webware application to django. I really like the autogenerated admin interface of django and the url design is terrific :D, these project I'm porting has an own way to manipulate the data from database, it uses MochiKit and SQLObject to do that. So I change from SQLObject

Re: Newforms clean_data

2006-12-29 Thread Waylan Limberg
On 12/29/06, Vadim Macagon <[EMAIL PROTECTED]> wrote: Adrian Holovaty wrote: > > Would it help if the form automatically called its validation the > first time you accessed form.clean_data? I'm trying to decide whether > that would be convenient or too magic. > I kind of like the way it is now

HttpResponseRedirect("/page/#section") ?

2006-12-29 Thread Brandon Warren
Hi, I am trying to do this in a view that handles a form: return HttpResponseRedirect("/page/#section") It works, except that the #section is stripped off, so the URL the user sees is /page/ instead of /page/#section Any ideas? Thanks in advance, -Brandon --~--~-~--~~--

Re: Listing folders - how to improve this code

2006-12-29 Thread limodou
On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have a initial view which works as a folder browser for url: (r'^f/(?P.*?)/$', 'drcsm.views.list_rcs') def list_rcs(request, path): path = '/' + path # workdir prevents ../ chets but... no cheating

Re: Can't default CharField to empty string?

2006-12-29 Thread ringemup
Update: Oops, the character field is working fine. It's an "auto_now_add" date field that's causing problems when editing an existing item inline with another model in admin. Here's the problematic date field: submitted = models.DateTimeField('Date Submitted', auto_now_add=True) And the SQL e

Listing folders - how to improve this code

2006-12-29 Thread [EMAIL PROTECTED]
I have a initial view which works as a folder browser for url: (r'^f/(?P.*?)/$', 'drcsm.views.list_rcs') def list_rcs(request, path): path = '/' + path # workdir prevents ../ chets but... no cheating if path.find('..') != -1 or path.find('./') != -1:

Can't default CharField to empty string?

2006-12-29 Thread ringemup
Hi -- I know there's a lot of confusion over empty strings and NULLs, and I've read a bunch of the threads about them, but I can't seem to find a solution to this problem: Basically, I want to be able to leave a field blank in the admin, and have it insert an empty string instead of a NULL into

Re: Newforms clean_data

2006-12-29 Thread Vadim Macagon
Adrian Holovaty wrote: Would it help if the form automatically called its validation the first time you accessed form.clean_data? I'm trying to decide whether that would be convenient or too magic. I kind of like the way it is now, if form.clean_data did the validation on first access how w

intimate dating

2006-12-29 Thread manish83
Search Profiles - FREE! Intimate Dating. Start Chatting within seconds - http://surl.in/HLMAT238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: newforms validation

2006-12-29 Thread Adrian Holovaty
On 12/29/06, mojo <[EMAIL PROTECTED]> wrote: Is it possible to set list of validators for field? (looking through the code my guess is no). Should I implement my own field classes with custom validation (overloading clean()) or what? Yes, you should implement your own field classes with custom

Re: Newforms clean_data

2006-12-29 Thread Adrian Holovaty
On 12/29/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: I remember scratching my head over that too. form.clean_data is not available until after you call form.is_valid() and only if form.is_valid() returns true. Would it help if the form automatically called its validation the first time you a

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread medhat
Permissions for what exactly? That's what I can't figure out! If pwd is a builtin module, shouldn't this problem affect other builtin modules too?! But it doesn't -- Thanks, Medhat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Newforms clean_data

2006-12-29 Thread Waylan Limberg
On 12/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I just recently started out working with newforms and they generally seem to be a joy but I cannot seem to access form.clean_data... (I am using the most recent dev. version) I remember scratching my head over that too. form.clean_data

Re: What's the best way to learn newforms?

2006-12-29 Thread Waylan Limberg
On 12/29/06, Aaron Jacobs <[EMAIL PROTECTED]> wrote: On 12/28/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > If you're wanting an "official" way of learning the newforms library, > I'm afraid you'll have to wait until the APIs have solidified and the > documentation is done. This should be

Re: newforms validation

2006-12-29 Thread mojo
my bad, of course, the patch should be: Index: fields.py === --- fields.py (revision 4256) +++ fields.py (working copy) @@ -33,7 +33,7 @@ # Tracks each time a Field instance is created. Used to retain order. creation_cou

Re: Types of projects Django is not well suited for?

2006-12-29 Thread John Lenton
On 12/26/06, mamcxyz <[EMAIL PROTECTED]> wrote: - You can't do a single-exe deployment, except if discover a way to hack the thing very much I wouldn't be so sure. You could almost certainly use PyInstaller to build a sqlite-backed django app down to a single exe. -- John Lenton ([EMAIL PROTE

Re: newforms validation

2006-12-29 Thread mojo
I tried to implement what I want, please review (this example works for me): patch: Index: fields.py === --- fields.py (revision 4253) +++ fields.py (working copy) @@ -33,7 +33,7 @@ # Tracks each time a Field instance is cre

"include" wiping out rest of template

2006-12-29 Thread Rory Campbell-Lange
I'd like to hold the 'help' for each template in a block called 'helptext' within each html file. I'd like to include the relevant html files from the main /help/ template, so that /help/sites shows the help from the sites.html page, for example. I have two major problems. - I can't get help.

newforms validation

2006-12-29 Thread mojo
Hi, Is it possible to set list of validators for field? (looking through the code my guess is no). Should I implement my own field classes with custom validation (overloading clean()) or what? I think that validator_list argument in oldforms was quite convenient. Thanks. --~--~-~--~-

Newforms clean_data

2006-12-29 Thread [EMAIL PROTECTED]
I just recently started out working with newforms and they generally seem to be a joy but I cannot seem to access form.clean_data... (I am using the most recent dev. version) if request.method == 'POST': new_data = request.POST.copy() personal_form = UserPersonalF

Best pratice

2006-12-29 Thread dutche
Hi, I must pull data from Postgres and everything is ok ( I'm using generic views to show up my data in db) but beyond this, I must pull data from Oracle and compare with my Postgres data. So, what should I do?? Is a good practice create a module that pulls the Oracle data and put it in my "inf

Re: Crazy idea!

2006-12-29 Thread goodieboy
Wow, it gets worse... I had a tech support person tell me that they had the latest version of Python. That was a mistake and well, I'm going to have to go with this: http://www2.jeffcroft.com/blog/2006/jul/14/django-admin-your-php-app/ or nothing. Ugh! Thanks for your help! - matt On Dec 28, 4:

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread Pythoni
Check permissions on your Linux box L. --~--~-~--~~~---~--~~ 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 e

Newforms: Form inheritence

2006-12-29 Thread Felix Ingram
Hello all, Is it possible for a form to inherit from another form? I'd like to have a separate form for admin users but the majority of the fields are the same. Therefore I'd like to define something like the following: class AdminForm(JoUserForm): my_extra_field = forms.BooleanField() The

Re: How can i specify rows and cols in a TextField()?

2006-12-29 Thread Fabio Gomes
Hum... i don´t think it would be possible, also i don´t want to style all my textareas with the same size, and also i don´t want to write custom manipulators just to change it (yes i m lazy).. any ideas? On 12/28/06, Christian Joergensen <[EMAIL PROTECTED]> wrote: Fabio Gomes wrote: > I m like

Django and the magic reappearing debug flag

2006-12-29 Thread [EMAIL PROTECTED]
Evening folks, I have an issue on one of my sites where the debug mode keeps getting turned on when I want it off. I'm wondering what's going on and would love for someone to show me where I'm screwing up. Here's the setup - 1) I have a django application that's hosted in an svn repository. 2)