Hello,
> a have a charfield of 255 chars in a model but on the form, it
> consists of a smallish
You can use models.TextField and maxlength to 255 to display it as a
textarea.
xav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I Configure successfully the django template system in standalone mode
follow the document,
but how to use the filter in this standalon mode?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On 26-Oct-06, at 11:37 AM, Benedict Verheyen wrote:
> How can i increase the size of the form element?
size is hardcoded - if you change it for one, it will change for all
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~-
OK, here I go.
I'm running the following, from my project's dir. Note: the SQL server
is not local, I connect to it via a VPN, and testing it, it works OK,
but who knows.
D:\dev\eclipse\eclipse_workspace\ceneje>manage.py inspectdb
# This is an auto-generated Django model module.
# You'll have to
Hi,
a have a charfield of 255 chars in a model but on the form, it
consists of a smallish
inputfield instead of a textarea.
How can i increase the size of the form element?
Thanks
Benedict
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Giovanni Giorgi,
Thanks for ur help.!!
Reg,
Santosh.
"Nature creates, Man Imitates"
-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Giovanni Giorgi
Sent: Wednesday, October 25, 2006 9:18 PM
To: Django users
Subject: Re: Admin Inner Class
As soon as I get to the office I'll let you know... thanks for replying!
> Hmm. What's the exact error you are getting? I'm running the code on
> 3 different boxes (2 Win XP Pro and 1 Windows Server 2003) against
> MSDE and SQL Server 2000 without issues. What system and server are
> you using
Can you post the entire traceback? I don't see this behavior with SQL
Server 2000 or MSDE. I may have to get a copy of SQL Server 2005.
I'll also try using the latest Django version from the trunk - my
production installation is the current official Django release (0.95)
modified with the patch
Hello Sean,
I'm also trying this; I've updated from SVN recently (a week or so
ago), then applied ticket 2358 diff 5 (by hand, but I have checked it
more than once), and am running against SQL Server 2005.
Starting from scratch, I can run python manage.py syncdb, and get some
tables inserted int
Hi,Django or otherwise, null and the empty string are not equal. i.e.:print "" == None# orif ( "" == NULL ) { puts( "Huh?" ); }// orSELECT * FROM foo WHERE bar is NULL;
/* will usually return different results than */SELECT * FROM foo WHERE bar = "";Blank literally means "", a zero length string. N
On 10/25/06, yary <[EMAIL PROTECTED]> wrote:
> Seems that if someone says a field can be null, that implies the admin
> interface should let it be null.
I really, really, really don't like having a system assume that one
thing I've done "implies" another thing it should do. I also don't
like brea
A field specified like {{{foo=ForeignKey(Bar,null=True)}}} does not
allow blanks in the admin interface.
Specifying {{{foo=ForeignKey(Bar,null=True,blank=True)}}} allows
blanks.
Seems that if someone says a field can be null, that implies the admin
interface should let it be null.
If for some r
Hi Jay,Thanks, after working with django for a while and having a few nagging concerns it's nice to get good answers!
Essentially, for a long time, the last official release had been 0.91(ie before magic-removal), but probably 90% of people on the listswere just running out of SVN trunk, to get th
Tabblo is actually running a trunk from early September. No stability
complaints from us...
--Ned.
Adrian Holovaty wrote:
On 10/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
Jeremy Dunck schrieb:
LJWorld.com, Lawrence.com, Tabblo.com,
http://projects.washingt
On Wed, 2006-10-25 at 10:07 -0700, [EMAIL PROTECTED] wrote:
> I was in the exact same boat a while back. You may be interested in
> this thread:
>
> (http://groups.google.com/group/django-users/browse_thread/thread/69ad3da32daeb963/f54e6695f76fe73f#f54e6695f76fe73f).
>
>
> I have been trying
On Wed, 2006-10-25 at 10:01 +, [EMAIL PROTECTED] wrote:
> Hi,
> I want to store Chinese characters in my MySQL 4.1.11 through Django
> but unluckily, like most novices, I get totally mess characters when
> displaying them on utf-8 encoded templates.
> After some investigation I found that the
On Wed, 2006-10-25 at 14:58 +0200, patrickk wrote:
> thanks malcolm, I think we´re getting closer ...
>
> Am 25.10.2006 um 14:42 schrieb Malcolm Tredinnick:
>
> >
> > On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote:
> >> sorry for being a pain in the neck, but we´re about to go online with
> >
On 25-Oct-06, at 7:51 PM, Michael Radziej wrote:
> I'm curious: Are they all 0.95?
afaik they run from latest svn trunk
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you ar
On 10/25/06, Oliver Lavery <[EMAIL PROTECTED]> wrote:
> Interesting. Having used django for a while but only just now starting to
> read the lists, some of these discussions are a bit unsettling.
>
> Is Django suffering from featuritis?
>
> I'm working on a large project and we chose django becaus
Interesting. Having used django for a while but only just now starting to read the lists, some of these discussions are a bit unsettling.Is Django suffering from featuritis? I'm working on a large project and we chose django because it's very cool, as we all know, and because it's nearing
1.0. I'v
Thanks everyone! If those sites don't convince, I'm not sure what
would.
--~--~-~--~~~---~--~~
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 u
The best way to really understand sessions is to understand some of the underlying HTTP transport and the issues involved with simulating stateful client->server interactions over a stateless protocol. Might sound complicated but it really isn't.
Although django makes it easy to build apps without
Sorry, back from a trip.
Happy to see that some people tried it and that it works. Thanks!
> I've been looking at this as well. It appears that the ratings and
> comments are tied together and must be submitted together. Is this
> true? I'd like a user to submit a comment along OR rate it OR
On 10/25/06, Christian Joergensen <[EMAIL PROTECTED]> wrote:
> Daniel Roseman wrote:
> >>> Country.objects.all().extra(
> >>> where=['(SELECT COUNT(*) FROM appname_soccerteam WHERE
> >>> appname_soccerteam.country_id = appname_country.id) > 0']
> >>> )
> >> Great idea! I did not think about th
[EMAIL PROTECTED] wrote:
> This is already in the api, no need to write extra sql, try:
>
> c.soccerteam_set.count()
>
> http://www.djangoproject.com/documentation/db_api/#backward
I know of the FOO_set-property, but I need to use it as a filter
condition. As far as my Django experience goes, th
I had orginally heard that the book was due out in October - but when I
last looked at the Apress site it mentioned January. I also noticed
that the Archives had not been updated.
No criticism mind, I'm well aware that Django is a volunteer effort -
however, it's extremely reassuring to hear t
Daniel Roseman wrote:
>>> Country.objects.all().extra(
>>> where=['(SELECT COUNT(*) FROM appname_soccerteam WHERE
>>> appname_soccerteam.country_id = appname_country.id) > 0']
>>> )
>> Great idea! I did not think about the 'extra' method. Works perfectly.
>> Gave me a speedup factor of about 25
Couldn't register. Actually, it took a minute to find a path to
registration, but then the registration failed. Don't know why, it just
says "registration error"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
Hmm. What's the exact error you are getting? I'm running the code on
3 different boxes (2 Win XP Pro and 1 Windows Server 2003) against
MSDE and SQL Server 2000 without issues. What system and server are
you using?
You should be able to use either manage.py in the project directory or
django-a
I'm afraid I already applied that patch. Actually I tried many
combinations but no luck.
I'm running (from the project's directory, where settings.py is)
"manage.py inspectdb". Maybe that's the problem, and I must absolutely
run it from django-admin.py ?
I admin this just crossed my mind, when i
On 10/25/06, falcon <[EMAIL PROTECTED]> wrote:
> I also noticed that the last "Weeks in review" was on August 22...is
> this the quiet before the storm or have things slowed down as of late?
> There was talk of a book, and that the book was going to be available
> on the web, but there have been n
Hi all,I like the django session programming framework, but I would like a general (not just django) understanding of session programming do's and don'ts. Does anyone have any pointers to documents? Thanks.
-Darryl
--~--~-~--~~~---~--~~
You received this message bec
Patrick J. Anderson wrote:
> Here's one of the inclusion tags I wrote this morning for my blog date
> navigation:
>
> ---
>
> from django.template import Library,Node
> from project.apps.news.models import Article
>
> register
I was in the exact same boat a while back. You may be interested in
this thread:
(http://groups.google.com/group/django-users/browse_thread/thread/69ad3da32daeb963/f54e6695f76fe73f#f54e6695f76fe73f).
I have been trying to get some momentum started on this front, but
haven't had any luck. I
Here's one of the inclusion tags I wrote this morning for my blog date
navigation:
---
from django.template import Library,Node
from project.apps.news.models import Article
register = Library()
def articles_months(context):
Replying to my own post, I managed to make it work by taking these
steps:
1) in settings.py, your customized LANGUAGES dict needs to be in
ENGLISH (!!) You cannot not name elements in other languages there.
This means, however, that your language dropdown (as shown in the docu
http://www.djangopr
Thanks Don, I've now found it. As default, the setting file had not
been set up with an Email_host which is why I missed it.
MerMer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On Oct 25, 2006, at 6:50 AM, MerMer wrote:
>
> I've looked through the official docs regarding sending an email but I
> can't find any explanation on how to point to a particular SMTP
> server.
In your settings file, you need to override the global setting
EMAIL_HOST. Look in the file globa
On 10/25/06, millhouse99 <[EMAIL PROTECTED]> wrote:
> Greetings. What is the appropriate place/way to find Django developers
> who may want to work on a particular project? Direct posting your
> project and solicitation to this list ok, or is there a dedicated group?
Hi millhouse99,
It's OK to
On 10/25/06, millhouse99 <[EMAIL PROTECTED]> wrote:
>
> Greetings. What is the appropriate place/way to find Django developers
> who may want to work on a particular project? Direct posting your
> project and solicitation to this list ok, or is there a dedicated group?
>
People do occasionally
I want to be able to show a user their account information/stats on
each page in the site, without having to constantly hit the database to
retrieve the information.
I'm alittle unclear as to the best way to do this? Should I write
this info into a Session/Cookie and then retrieve it as require
Hi,
I want to store Chinese characters in my MySQL 4.1.11 through Django
but unluckily, like most novices, I get totally mess characters when
displaying them on utf-8 encoded templates.
After some investigation I found that the tables created by 'manage
syncdb' are actually encoded by 'latin-1'. A
I've looked through the official docs regarding sending an email but I
can't find any explanation on how to point to a particular SMTP server.
How to I set up the SMTP server so that the send_mail function works?
MerMer
--~--~-~--~~~---~--~~
You received this
Greetings. What is the appropriate place/way to find Django developers
who may want to work on a particular project? Direct posting your
project and solicitation to this list ok, or is there a dedicated group?
--~--~-~--~~~---~--~~
You received this message beca
Hi guys,
I have installed the i18n middleware in django, and it works nicely on
the objects I pass to the template, but for some reason the strings
inside the template remain untranslated despite {% load i18n %} and the
expected {% trans "foo" %} syntax.
I'm on a Windoze machine, but if anyone c
I have found some info here
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/409366
and here
http://www.brpreiss.com/books/opus7/html/page598.html
in python they name it "nested class"
http://www.google.com/search?hs=UuP&hl=en&lr=&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficia
I 'm a little bit sad about django has some part without document and
test.
we'd better add patch for them. and it's hard to refactor code in trunk
if you're not the main author.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
I 'm a little bit said about django has some part without document and
test.
we'd better add patch for them. and it's hard to refactor code in trunk
if you're not the main author.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
There is an option to manage.py
--adminmedia=ADMIN_MEDIA_PATH
that might just do what you need.
--~--~-~--~~~---~--~~
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
Take a look at this ticket: http://code.djangoproject.com/ticket/2358.
I combined that previous patch (2563) with 2358 because my patch was
dependent on it. Make sure that you've applied the latest patch
(mssql_update5.diff) to your Django installation. If you still have
problems, please let me
On 10/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
> Jeremy Dunck schrieb:
> > LJWorld.com, Lawrence.com, Tabblo.com,
> > http://projects.washingtonpost.com/congress/,
> > http://www.chicagocrime.org/
>
> I'm curious: Are they all 0.95?
I can vouch for my sites (chicagocrime.org and the vari
On 10/25/06, sansmojo <[EMAIL PROTECTED]> wrote:
> Any ideas of how I might offer a proof (or strong evidence) of 0.95's
> stability?
We have an aptly named "API stability" document:
http://www.djangoproject.com/documentation/api_stability/
Adrian
--
Adrian Holovaty
holovaty.com | djangoproje
On 10/25/06, falcon <[EMAIL PROTECTED]> wrote:
>
> I am working on my first Django app and it looks like I will need
> RowLevelPermissions (perhaps GenericAuthorization as well). Can anyone
> provide an estimate of its release (merge with the main branch)? I
> need to know if I can use it in my
I am working on my first Django app and it looks like I will need
RowLevelPermissions (perhaps GenericAuthorization as well). Can anyone
provide an estimate of its release (merge with the main branch)? I
need to know if I can use it in my project, which I hope will go live a
few weeks after I ha
Jeremy Dunck schrieb:
> LJWorld.com, Lawrence.com, Tabblo.com,
> http://projects.washingtonpost.com/congress/,
> http://www.chicagocrime.org/
I'm curious: Are they all 0.95?
Michael
--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49 911 9352-0 - Fax +49 911 9352-100
h
LJWorld.com, Lawrence.com, Tabblo.com,
http://projects.washingtonpost.com/congress/,
http://www.chicagocrime.org/
?
On 10/25/06, sansmojo <[EMAIL PROTECTED]> wrote:
>
> Thanks so much for the responses. I am not scared of the fact that
> Django is not at 1.0 - I need to convince others not to b
patrickk wrote:
> as far as I know, rating only works with submitting a comment. you
> could probably change this by hacking the comment-manipulator.
> nevertheless, since ratings are stored in the comments-table, you get
> the wrong numbers when you do "comment_count".
> for what you want to do
Look, there are two distinct things here:
a) The admin media, which physically resides on
django/contrib/admin/media and which the dev-server serves
automagically and
b) Your own media, which you are responsible of serving, either in
production or development mode
Here's what I do:
For admin me
Thanks so much for the responses. I am not scared of the fact that
Django is not at 1.0 - I need to convince others not to be :)
Any ideas of how I might offer a proof (or strong evidence) of 0.95's
stability?
Thanks!
--~--~-~--~~~---~--~~
You received this mes
On 10/25/06, Levi McCallum <[EMAIL PROTECTED]> wrote:
>
> Are applications aware of each other? I.E. Can they call each other?
Yes, with some minor restrictions.
Generally, they are just another python module, so a view from one
application can refer to a model from another, or a model can add a
Thanks, Malcolm. I should have know I'd overlooked the documentation
for that.
I really appreciate the help. I'm trying to learn programming and
Python and Django all at the same time. Hopefully one day it will all
click.
I'll get back to trying to find a way to convert my date_taken from
Flickr
Thanks, James. I should have know I had overlooked the documentation.
>From everything I had tried, I had realized that it was probably linked
to DateTimeFields, but wanted to make sure. Thanks again for the help.
--~--~-~--~~~---~--~~
You received this message be
Hey Sean, I'm trying to give this a go. Running into walls, I'm afraid.
I read 'introspection' and thought this patched "manage.py inspectdb"
to handle mssql servers. Unless I did something wrong (very possible),
that doesn't seem to work.
Could you explain how do I get to the 'full instrospect
Malcolm Tredinnick schrieb:
> On Tue, 2006-10-24 at 08:19 -0700, exdnc wrote:
>> Is there a 'proper' way to get the framework to add more than
>> num_in_admin related objects to both the Add/ChangeManipulator and to
>> the FormWrapper? Thanks!
>
> The short answer to your question is "no": the n
On 25-Oct-06, at 6:22 PM, Gábor Farkas wrote:
> so, to be sure we're talking about the same thing:
>
> you tried the same model?
we are talking of different things - i have not used slugfield, i
misunderstood what you had said. apologies for sidetracking
--
regards
kg
http://lawgon.livejou
thanks malcolm, I think we´re getting closer ...
Am 25.10.2006 um 14:42 schrieb Malcolm Tredinnick:
>
> On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote:
>> sorry for being a pain in the neck, but we´re about to go online with
>> our site and I desperately need to solve this problem.
>
> You al
Kenneth Gonsalves wrote:
>
> On 25-Oct-06, at 4:06 PM, Kenneth Gonsalves wrote:
>
>>> hmmm.. which db version?
>> postgresql 7.4.x on debian sarge
>
> and to add - my sqlall does not create an index for unique=True. It
> leaves it to postgresql
>
maybe it's a misunderstanding...
it also do
Sqlite ? In a production site ? Does anyone use this ? I sincerely
never heard of it.
--~--~-~--~~~---~--~~
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@googlegro
On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote:
> sorry for being a pain in the neck, but we´re about to go online with
> our site and I desperately need to solve this problem.
You already mentioned that you have solved it using lighttpd (or, at
least, that's what you seem to have mentioned)
sorry for being a pain in the neck, but we´re about to go online with
our site and I desperately need to solve this problem.
solutions I had so far:
1. hardcoding media-urls incl. the host (not nice)
2. symlink from /django/contrib/media/ to /media/ (problem with
django-updates)
short descri
On Wed, 2006-10-25 at 03:58 -0700, timc3 wrote:
> I have successfully managed to integrate the comments system into my
> Django application and its looking good (with some YUI ajax nonsense to
> top it off). But one thing that I would like is non-registered,
> non-logged in users to be able to po
Hi,
My ModelX is:
user = models.ForeignKey(User)
place = models.ForeignKey(Place)
date = models.DateTimeField()
taken = models.BooleanField()
Now I need to fetch all the ModelX records via Place
object.modelx_set.all
but I only want to fetch records with date now/in the future.
This would be:
I have successfully managed to integrate the comments system into my
Django application and its looking good (with some YUI ajax nonsense to
top it off). But one thing that I would like is non-registered,
non-logged in users to be able to post a comment.
I realise that this is the goal of the fr
On 25-Oct-06, at 4:06 PM, Kenneth Gonsalves wrote:
>> hmmm.. which db version?
>
> postgresql 7.4.x on debian sarge
and to add - my sqlall does not create an index for unique=True. It
leaves it to postgresql
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~-
On 25-Oct-06, at 3:57 PM, Gábor Farkas wrote:
> hmmm.. which db version?
postgresql 7.4.x on debian sarge
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Kenneth Gonsalves wrote:
>
> On 25-Oct-06, at 3:21 PM, Gábor Farkas wrote:
>
>> ===
>> Indexes:
>> "fileman_filemanager_pkey" PRIMARY KEY, btree (id)
>> "fileman_filemanager_name" UNIQUE, btree (name)
>> "fileman_filemanager_name_key" UNIQUE, btree (name)
>> ==
On 25-Oct-06, at 3:21 PM, Gábor Farkas wrote:
> ===
> Indexes:
> "fileman_filemanager_pkey" PRIMARY KEY, btree (id)
> "fileman_filemanager_name" UNIQUE, btree (name)
> "fileman_filemanager_name_key" UNIQUE, btree (name)
> ===
>
> fro
hi,
imagine the following model:
===
class FileManager(Model):
name = SlugField(maxlength=100,unique=True)
directory = CharField(maxlength=500)
=
the sqlall for it looks like this:
==
BEGIN;
CREATE TABLE "fileman_filemanager"
this what I have is running from USB under windows. So people I'm
thinking to make windows version of "Django on a stick". No idea how
easy/difficult is to do same thing for linux but sounds interesting!
Running on a CD can be tricky I think because of compiled python files
which are created on th
Christian Joergensen wrote:
> Jonathan Buchanan wrote:
> > You could use QuerySet's "extra" method to add the custom SQL
> > required, which might be something like the following in this case
> > (you'd need to replace "appname" with the name of the application the
> > models belong to, of course)
> also so in next few days I will be testing that. If you people are
> interested I can pack it and drop it somewhere on the web so you can
> also play with it.
I' defenitely interested, can you detail a little more or point to a
page on the wiki. I'm a linux user but I'd need this solution for
On Oct 25, 2006, at 3:44 PM, Perica Zivkovic wrote:
>
> People,
>
> movable python is cool but I think open should remain open without any
> fees. So, few days ago, just for experiment, I placed python 2.5 +
> django on a usb stick and it worked! :) now I'm able to carry my work
> setup all arou
orestis wrote:
> Anyway, I'm interested in minimizing memory usage.
>
>
>
> I'll have to figure out why I have 10 mysqld instances eating 45M out
> of 64M of memory.
maybe you could try to use sqlite as the database?
(no idea about it's memory usage, but i would expect it to be smaller
tha
Am 25.10.2006 um 10:41 schrieb orestis:
>
> I think you have confused some concepts. /django/contrib/admin/media/
> hosts the admin media files.
>
> You mention content uploaded by users... In what directory is this put
> under ?
/media/uploads/
>
> Static files are documented here:
> http://
Thanks all for the recommendations!
--~--~-~--~~~---~--~~
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
I think you have confused some concepts. /django/contrib/admin/media/
hosts the admin media files.
You mention content uploaded by users... In what directory is this put
under ?
Static files are documented here:
http://www.djangoproject.com/documentation/static_files/
--~--~-~--~~-
as far as I know, rating only works with submitting a comment. you
could probably change this by hacking the comment-manipulator.
nevertheless, since ratings are stored in the comments-table, you get
the wrong numbers when you do "comment_count".
for what you want to do I´d suggest to write
I made a symlink from /django/contrib/admin/media/ to my media-
directory to solve this issue.
it works, but it doesn´t seem clean - e.g., when I do "svn update" I
guess I´m losing the changes to the media-directory.
is there any better solution?
thanks,
patrick
Am 24.10.2006 um 19:22 schrie
This is already in the api, no need to write extra sql, try:
c.soccerteam_set.count()
http://www.djangoproject.com/documentation/db_api/#backward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
People,
movable python is cool but I think open should remain open without any
fees. So, few days ago, just for experiment, I placed python 2.5 +
django on a usb stick and it worked! :) now I'm able to carry my work
setup all around... didn't tested it much but I created django test
site and it s
Are applications aware of each other? I.E. Can they call each other?
Levi
On Oct 24, 5:58 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 10/25/06, Levi McCallum <[EMAIL PROTECTED]> wrote:
>
>
>
> > Ok then,
>
> > I might just ask some questions.
>
> > I'm not quite familiar with the w
91 matches
Mail list logo