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 django-us
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:
>
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
David Larlet wrote:
>
>
> Thanks for your suggestion, I've just done that:
>
> class FakeObject(object):
> def __init__(self, url):
> self.url = url
>
> class MainSitemap(Sitemap):
> priority = 0.8
>
> def items(self):
> return [FakeObject('/'),
> FakeOb
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:
> fin
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, blank=Tr
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 d
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()
> m
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 -- tr
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 have
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 t
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 models
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, how
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),
widget=widgets.CheckboxSelec
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
>
>
> >
>
--~--~-~--~~~-
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.
--~--~-~--~~~---~--~~
You
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/, /section/bar/slug/,
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 P
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 dif
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
(r'^section/[^/]+/(?P
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 rec
> 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 Googl
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 beca
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 exp
generally invoking "svnversion" is the easiest way to get this.
i.e.
"svnversion ./trunk" return the subversion version # for the directory "trunk".
-joe
On 6/15/07, David Reynolds <[EMAIL PROTECTED]> wrote:
> Gabor,
>
> On 15 Jun 2007, at 9:18 am, Gábor Farkas wrote:
>
> >
> > hi,
> >
> > in
Hi,
I have received an error mail which I couldn't quite understand. I
think someone was POSTed some bad data that caused the error, because
in the mod_python request, it says:
GET:,
POST:,
The posted data was so bad that it couldn't be parsed at all. Do you
have an idea, what kind of request c
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.
>
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 time
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 o
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 sense
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 affordable
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.
>
> So
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" gr
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)
set
> 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:
>
> http://
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:
http://www.djang
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 pro
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 beauti
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 change
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 o
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 is
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 http://dja
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':
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 A
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
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 ex
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, uniqu
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 django-users
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 sol
49 matches
Mail list logo