Re: error after updating from svn (v5479): unexpected keyword argument 'max_digits'

2007-06-15 Thread hotani
Thanks. It is on a dev server so no biggie. I changed the models to DecimalFields and all is well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: error after updating from svn (v5479): unexpected keyword argument 'max_digits'

2007-06-15 Thread Todd O'Bryan
On Fri, 2007-06-15 at 22:40 +, hotani wrote: > Full error: > [__init__() got an unexpected keyword argument 'max_digits'] > > Just updated from svn today and when I tried a syncdb that is what > happened. Is 'max_digits' not allowed anymore? > > Here is an example straight from the model: >

rendering fields in newforms

2007-06-15 Thread [EMAIL PROTECTED]
Say we have class MyForm with IntegerField called 'year'. When we instantiate MyForm, say a = MyForm() we can get it rendered in html before passing to template - a.as_table(); This will contain all errors, previously entered data - if we instantiate MyForm from request.POST. The question is, how

Re: error after updating from svn (v5479): unexpected keyword argument 'max_digits'

2007-06-15 Thread Ramiro Morales
On 6/15/07, hotani <[EMAIL PROTECTED]> wrote: > > Full error: > [__init__() got an unexpected keyword argument 'max_digits'] > > Just updated from svn today and when I tried a syncdb that is what > happened. Is 'max_digits' not allowed anymore? > > Here is an example straight from the model: >

error after updating from svn (v5479): unexpected keyword argument 'max_digits'

2007-06-15 Thread hotani
Full error: [__init__() got an unexpected keyword argument 'max_digits'] Just updated from svn today and when I tried a syncdb that is what happened. Is 'max_digits' not allowed anymore? Here is an example straight from the model: fine = models.FloatField(max_digits=9, decimal_places=2,

Re: Odd behaviour from Signals - dispatcher.connect

2007-06-15 Thread Malcolm Tredinnick
On Fri, 2007-06-15 at 03:17 -0700, Tipan wrote: > > On Jun 14, 10:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > See django/db/models/loading.py, in the register_models() function. > > > > I'm not 100% certain that will be the right fix, but from reading the > > ticket and the model

Re: signals vs. save()

2007-06-15 Thread Malcolm Tredinnick
On Fri, 2007-06-15 at 14:53 +, Robert wrote: > Hi, > > What is a benefit of using django signals instead of modifying the > save() method ? > > Reading some code, I've noticed that many use counters columns in > Models, > and update with post_save() signal instead of doing this in save() >

Re: Is it possible to give a verbose name to my projects ?

2007-06-15 Thread Malcolm Tredinnick
On Fri, 2007-06-15 at 13:43 +, olive wrote: > Hello, > > I can't remember if it is possible or not. > > Is possible to have a different name for my projects in the admin Site > Management panel ? Not at the moment, no. There's an open ticket in Trac (which I can't immediately hunt out --

Re: ForeignKey reverse admin

2007-06-15 Thread Malcolm Tredinnick
On Fri, 2007-06-15 at 02:37 -0700, endi wrote: > I have a little problem with ForeignKey's. It's easy to explain. > My database model involves a many-to-one relationship which i would > like to admin reversely. > > ie. Articles and Authors, one Articles can have one Author, one > Authors can

Re: Admin: Hiding fields from certain user groups

2007-06-15 Thread James Bennett
On 6/15/07, andyhume <[EMAIL PROTECTED]> wrote: > Other than writing a new view for the change form, is there anything I > can do to stop certain users or user groups from being able to edit a > particular field of the model in the admin? Not at the moment, no. Please remember when considering

Re: Admin: Hiding fields from certain user groups

2007-06-15 Thread Bryan Chow
We have done this before by creating a second model with a different fields definition in the Admin class, and then assigning the model to the same database table by specifying db_table in the Meta class. This allowed us to specify separate access permissions on each model, even though both

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/15, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > >> David Larlet wrote: > >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I've been playing with the sitemap stuff and am finding it to be quite > slick. I do,

CheckboxSelectMultiple error: Select a valid choice. That choice is not one of the available choices.

2007-06-15 Thread Gabriel Farrell
I've just replaced the RadioSelect widget with CheckboxSelectMultiple for one field in my view. Here's the relevant code: self.fields['patron_type'] = forms.ChoiceField(choices=( (pt.id, pt.name) for pt in patron_type_choices),

Re: get subversion revision-number in a django-project

2007-06-15 Thread Joseph Heck
I don't know about Gabor, but I actually use it in a dashboard view on my site to know what version of the software is deployed at any given time. Very handy that way. -joe On 6/15/07, Udi <[EMAIL PROTECTED]> wrote: > > Mind if I ask why? > > Udi > > > > >

Re: Any new for MS SQL Server???

2007-06-15 Thread Jeremy Dunck
On 6/15/07, Bruno Tikami <[EMAIL PROTECTED]> wrote: > I've > already read the hole old bunch of topics and dicussions about this matter, > jsut want to know if there is come news. As far as I know, just what's been discussed on this list. --~--~-~--~~~---~--~~

Re: why won't my wildcard url work?

2007-06-15 Thread [EMAIL PROTECTED]
Weird.. I cut and pasted the slug part from another URL that does work. Anyways, that got it. Thanks! On Jun 15, 2:00 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > On Fri, 2007-06-15 at 11:44 -0700, [EMAIL PROTECTED] wrote: > > I've got urls that could be /section/foo/slug/,

Re: get subversion revision-number in a django-project

2007-06-15 Thread Udi
Mind if I ask why? Udi --~--~-~--~~~---~--~~ 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

Re: why won't my wildcard url work?

2007-06-15 Thread Todd O'Bryan
On Fri, 2007-06-15 at 11:44 -0700, [EMAIL PROTECTED] wrote: > I've got urls that could be /section/foo/slug/, /section/bar/slug/, / > section/whatever/slug/, so I'm trying to use a wildcard selector > (http://www.djangobook.com/en/beta/chapter03/#s-wildcard-urlpatterns) > > I've tried lots of

why won't my wildcard url work?

2007-06-15 Thread [EMAIL PROTECTED]
I've got urls that could be /section/foo/slug/, /section/bar/slug/, / section/whatever/slug/, so I'm trying to use a wildcard selector (http://www.djangobook.com/en/beta/chapter03/#s-wildcard-urlpatterns) I've tried lots of different ways, but the most promising seems to be

Any new for MS SQL Server???

2007-06-15 Thread Bruno Tikami
Hi Django folks! Does anyone have any news about Django supports to MS SQL Server? I've already read the hole old bunch of topics and dicussions about this matter, jsut want to know if there is come news. Best regards my friends! Tkm --~--~-~--~~~---~--~~ You

Re: CSS on dev server, same old problem

2007-06-15 Thread alg
> I can see the css files code on the web browser > through:http://145.23.6.135:8000/manager/appsmedia/css/css1.css You're using an absolute path in the link element's href. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Admin: Hiding fields from certain user groups

2007-06-15 Thread andyhume
Hello all, Other than writing a new view for the change form, is there anything I can do to stop certain users or user groups from being able to edit a particular field of the model in the admin? Cheers, Andy. --~--~-~--~~~---~--~~ You received this message

Re: Hosting for Django

2007-06-15 Thread Jay Parlar
On 6/15/07, arthur debert <[EMAIL PROTECTED]> wrote: > In the end I've settle of webfaction. They have a very good setup with > you own apache instance + mod_python, and it's very affordable. Great > support as well. I'll second that. I recently deployed a customer site on Webfaction, and the

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread John DeRosa
David Larlet wrote: > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>: >> David Larlet wrote: >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: I've been playing with the sitemap stuff and am finding it to be quite slick. I do, however, have some questions about some unusual cases.

signals vs. save()

2007-06-15 Thread Robert
Hi, What is a benefit of using django signals instead of modifying the save() method ? Reading some code, I've noticed that many use counters columns in Models, and update with post_save() signal instead of doing this in save() method ? I understand them as it avoids of doing counts all the

Re: Path problems

2007-06-15 Thread Todd O'Bryan
I figured out the problem. I had missed adding the top-level module to one of my import settings lines. The problem was that even with the debugging output, the actual problem line never showed up in the exception trace. I actually found it by using django-admin.py shell and then importing one

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Forest Bond
On Fri, Jun 15, 2007 at 09:48:02AM -0400, Forest Bond wrote: > Do note that it must be symmetric, since you need to be able to decrypt the > answer. Sorry, this is not true. It must not be a hash, anyway, and I don't see the benefit of using public key crypto here. To me, it makes the most

Re: Hosting for Django

2007-06-15 Thread arthur debert
Hi Christian. I've tried a few hosting setups in the paste year with various degrees of success too. I've never been able to get a good, stable fcgi setup myself. In the end I've settle of webfaction. They have a very good setup with you own apache instance + mod_python, and it's very

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Forest Bond
On Fri, Jun 15, 2007 at 09:55:30AM +0200, Martin Winkler wrote: > > Am Thu, 14 Jun 2007 15:51:10 -0400 > schrieb Forest Bond <[EMAIL PROTECTED]>: > > > You can do it without external persistence (sessions and/or database > > table) by encrypting the correct response in the image filename. > >

Is it possible to give a verbose name to my projects ?

2007-06-15 Thread olive
Hello, I can't remember if it is possible or not. Is possible to have a different name for my projects in the admin Site Management panel ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Path problems

2007-06-15 Thread Todd O'Bryan
Hey all, I'm trying to deploy a project I've been developing for a long time and, in preparation, have tried to move everything (including settings.py, etc.) into one overarching module. So, here's my setup: /dmi __init__.py manage.py (which I realize I now can't use)

Re: Hosting for Django

2007-06-15 Thread Christian M Hoeppner
> Christian, > > I would think that the 'best way' is whatever suits you. If you're > used to mod_python/mysql/apache, then use those. If you're more > comfortable with a tinyhttpd/fcgi setup then use that. > > You'll find links on how to use these two setups on the main django > site: > >

Re: Hosting for Django

2007-06-15 Thread David Reynolds
Christian, I would think that the 'best way' is whatever suits you. If you're used to mod_python/mysql/apache, then use those. If you're more comfortable with a tinyhttpd/fcgi setup then use that. You'll find links on how to use these two setups on the main django site:

Hosting for Django

2007-06-15 Thread Christian M Hoeppner
Hi there! This is a message for all those that have been successful in deploying django. It is not that I find myself unable to get a django project to show up in a web browser, but I'm wondering about "best practises", "the right way", and all that stuff. It's been hard to find a hosting

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >> I've been playing with the sitemap stuff and am finding it to be quite > >> slick. I do, however, have some questions about some unusual cases. > >> > >> 1)It works

Re: Odd behaviour from Signals - dispatcher.connect

2007-06-15 Thread Tipan
On Jun 14, 10:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > See django/db/models/loading.py, in the register_models() function. > > I'm not 100% certain that will be the right fix, but from reading the > ticket and the model dispatching code, it looked like the right idea. > Not a

Re: new forms and read-only rendering

2007-06-15 Thread eXt
On 14 Cze, 09:06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I think your expectations are a little different than what Django > provides. Django gives you a framework for hndling the pieces of a > project that can be automated most of the time. Laying out the > information on a page is not

CSS on dev server, same old problem

2007-06-15 Thread AnaReis
Hi, I still don't understand if the Djangos' dev server allows the usage of css files on a web page or if it only allows accessing the files directly (for ex. http:something:8000/proj/appsmedia/css1.css shows the css code on the browser). If it does allow the usage of css on templates then here

Re: Generic Views: "Could not parse the remainder: % object.title %"

2007-06-15 Thread Martin Winkler
Am Thu, 14 Jun 2007 14:53:42 -0700 schrieb "Evan H. Carmi" <[EMAIL PROTECTED]>: > {{% object.title %}} > {{% object.body %}} this is a syntax error and should be: {{ object.title }} {{ object.body }} They are variables, and not tags. just check

Generic Views: "Could not parse the remainder: % object.title %"

2007-06-15 Thread Evan H. Carmi
I am trying to use generic views for a hand built weblog app. I am getting a template error of "Could not parse the remainder: % object.title %" My blog/urls.py is: - from django.conf.urls.defaults import * from binarymanipulations.blog.models import Entry info_dict = { 'queryset':

ForeignKey reverse admin

2007-06-15 Thread endi
I have a little problem with ForeignKey's. It's easy to explain. My database model involves a many-to-one relationship which i would like to admin reversely. ie. Articles and Authors, one Articles can have one Author, one Authors can have many Articles. I would like to admin the thing from the

Re: get subversion revision-number in a django-project

2007-06-15 Thread David Reynolds
Gabor, On 15 Jun 2007, at 9:18 am, Gábor Farkas wrote: hi, in my project i need to get the svn-revision-number of the project somehow. in other words, i need to be able to find out my project's revision number in python (i am not talking about django's revision-number. i'm talking about

get subversion revision-number in a django-project

2007-06-15 Thread Gábor Farkas
hi, in my project i need to get the svn-revision-number of the project somehow. in other words, i need to be able to find out my project's revision number in python (i am not talking about django's revision-number. i'm talking about my own revision number) the best way i could find is to

Re: App.objects.get(user='John') error

2007-06-15 Thread Vincent Nijs
Thanks! That works. Vincent On 6/14/07 3:32 PM, "Iapain" <[EMAIL PROTECTED]> wrote: > > Of course it'll give you error, suppose your User is > > class User(models.Model): > first_name = models.CharField(maxlength=256) > > class App(models.Model): >user = models.ForeignKey(User,

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Martin Winkler
Am Fri, 15 Jun 2007 14:53:59 +0800 schrieb "Nimrod A. Abing" <[EMAIL PROTECTED]>: > I will be downloading your module and testing it out soon. Cool! I'd love to get some feedback especially with different setup than I have. > If I have patches for your module, do I send it here on

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Martin Winkler
Am Thu, 14 Jun 2007 15:51:10 -0400 schrieb Forest Bond <[EMAIL PROTECTED]>: > You can do it without external persistence (sessions and/or database > table) by encrypting the correct response in the image filename. So when the request to get the image is sent to django, we have to decrypt the

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Nimrod A. Abing
On 6/15/07, Martin Winkler <[EMAIL PROTECTED]> wrote: > > Am Thu, 14 Jun 2007 12:00:11 +0800 > schrieb "Nimrod A. Abing" <[EMAIL PROTECTED]>: > > > Are you planning to implement a configuration to allow in-memory > > images? > > One thing that annoys me with in-memory images is that you have to >