Hi,
I just updated to the latest django version (5925) and ran syncdb and
get the following error.
Any suggestions?
$ ./manage.py syncdb
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating t
On Fri, 2007-08-17 at 20:50 +, [EMAIL PROTECTED] wrote:
> I'm using USStateField, but am running into Canadian addresses.
> Is there maybe a NorthAmericanStateOrProvinceField?
>
> I guess I could add the provinces and their abbreviations to the list
> of states, but I hate to do that.
>
> Sh
On 8/18/07, Ramdas S <[EMAIL PROTECTED]> wrote:
> http://www.djangoproject.com/documentation/models/
>
> link is having problem
This is known problem, and has been reported multiple times.
http://code.djangoproject.com/ticket/4853
Yours,
Russ Magee %-)
--~--~-~--~~~
On 8/17/07, Michal PL <[EMAIL PROTECTED]> wrote:
>
> I'm new here so let me say hello and sorry for my English to
> everybody.
>
> I got a problem with MS SQL 2000 and (probably) adodbapi library. When
> django tries to get session information from django_session table it
> asks for records with t
As far as I know it's for the life the the queryset variable. So if
you create a queryset at module level, it lasts until the module is
reloaded. If you define a queryset in one of your views it will hit
the database everytime that view function is accessed.
QS1=Model.objects.all()
def view(re
Thanks for the responses.
> Why not use relative paths in yourcssfiles? They're relative to thecssfile,
> not the html file, so you can do url(../images/diag.gif).
> I'm assuming that all media files are on the same host and that only
> the base media directory name is adapted to the svn version
We've developed a similar sort of capability for Satchmo. You can browse
the source here-
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
I'm using USStateField, but am running into Canadian addresses.
Is there maybe a NorthAmericanStateOrProvinceField?
I guess I could add the provinces and their abbreviations to the list
of states, but I hate to do that.
Should I extend USStateField somehow?
Or should I throw my hands up and jus
Hi!
I'd like my customer to be able to deploy my Django application at
http://host/some/custom/path/. Deployment is going to use Apache, not
yet decided between mod_python and (more likely) FastCGI.
One option I see is to use a configurable prefix for all regexp's in
top-level url.py, then use {
Err.. great suggestion... :) In fact the code you asked me about is a
view code. I added import of ugettext as _ to this view and voila! It
works. I misunderstood something and I thought that I have to put this
import somewhere to the test.
Thanks
Jakub
On 17 Sie, 15:46, Malcolm Tredinnick <[EMA
How long is the cache lifetime?
On Aug 17, 5:41 pm, Doug B <[EMAIL PROTECTED]> wrote:
> The caching is intentional, and designed to save you expensive
> database queries. You can reset the cache in the shell by doing
> something like this:
>
> qs=ModelName.objects.all()
> # do stuff with your qu
I am Only Search Engine Optimizations (SEO) Expert/Specialist at
Karachi in Pakistan that put your Business Profile with your Website
link (URL) and/or Business Ad on TOP-10 Ranking/Positions in Google,
Yahoo and/or MSN in 1-to-3 Months. For more Details and ORDER Now
Please Call/SMS at 0333-23031
Hi ! I have a problem whit the hosting of my application :
I have followed the guide of the hosting
and imported my db about django in the hosting mysql
Thanks
the site say :
Unhandled Exception
An unhandled exception was thrown by the application
whit this error :
Traceback (most recent c
On 8/17/07, Derek Anderson <[EMAIL PROTECTED]> wrote:
> this means 16 mailer threads (or 32, if two machines). but i only want
> one mailer thread running at a time. (to avoid sending duplicate emails
> during a race condition) but apache kills and restarts processes, so i
> can't just randoml
http://www.djangoproject.com/documentation/models/
link is having problem
--~--~-~--~~~---~--~~
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 un
i guess i should have done a better job of explaining myself. :)
am using a very typical apache setup - yes w/ multiple processes.
picture this:
1 (or more) apache server, one (or more) physical machine.
- each spawns say 16 server processes
- each process contains one thread, named "mail
David,
I haven't seen this one before. I just tried a syncdb against the
current trunk (rev 5918) with no problems. Would you please create a
bug report with an example we can use to reproduce this?
Thanks,
Ian
On Aug 16, 6:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Anyone gettin
Thanks everyone!
On Aug 16, 9:12 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 17-Aug-07, at 6:35 AM, James Bennett wrote:
>
> >> So how do I do it?
>
> >http://www.google.com/search?hl=en&q=sql+alter+table&btnG=Google
> > +Search
>
> an example:http://www.djangosnippets.org/snippets/188/
I'm working on a sort of integrated email system where an
OutboundEmail can be sent to any number of Users. So naturally my
OutboundEmail model has an m2m relationship to User.
Today I've been fiddling with permissions on the User model. To my
amazement I need "change" permissions on OutboundEmai
I'm not sure how you're deploying, but most people use multiple
processes rather than a single process. Given that, an in-process
mutex will do you no good.
If you really are single-process, Django does not have a built-in
mutex, but maybe you want:
http://docs.python.org/lib/module-mutex.html
The caching is intentional, and designed to save you expensive
database queries. You can reset the cache in the shell by doing
something like this:
qs=ModelName.objects.all()
# do stuff with your queryset
# do your external database manipulation
qs._result_cache=None # setting _result_cache non
no, not trying to farm out many threads. already have many threads
running. (from apache) and (obviously) there is no master thread to do
the coordination. see: http://en.wikipedia.org/wiki/Mutual_exclusion
just want to make sure no two threads are entering the same critical
section at the
I'm new here so let me say hello and sorry for my English to
everybody.
I got a problem with MS SQL 2000 and (probably) adodbapi library. When
django tries to get session information from django_session table it
asks for records with the where clause: expire_date > %s (in my case
%s is '2007-08-1
Hi. I already posted about a realted issue but I thought I'd rephrase
the question in the hope that someone could help.
I beleive newforms-admin will allow you to restrict access of certain
records to certain users by the use of hooks. I am hoping that this
will allow me to use the admin interfac
On 8/17/07, eXt <[EMAIL PROTECTED]> wrote:
>
> Thanks for valuable hints. I submitted a ticket with a patch:
> http://code.djangoproject.com/ticket/5189.
Fantastic! I've just committed this as [5916].
Thanks for your work on this.
Yours,
Russ Magee %-)
--~--~-~--~~~
Hi Michael,
You mentioned the following:
> [*] the version of MySQLdb is an older version that do not get messy
> with my character set
Note that there is a problem with older versions of MySQLdb with
connections not being gargage collected.
See:
http://www.modpython.org/FAQ/faqw.py?quer
On Fri, 2007-08-17 at 06:33 -0700, eXt wrote:
> Hi!
>
> Here it is: http://code.djangoproject.com/ticket/2920
>
> I've got a doctest that raises:
>
> (part of traceback)
> ...
> msg = _('Password changed successfully.')
> TypeError: 'bool' object is not callable
Is this line part of the doctes
I think you want gearmand:
http://www.danga.com/gearman/
It has a 'uniq' property that ensures only one job with a given name is running.
On 8/17/07, Derek Anderson <[EMAIL PROTECTED]> wrote:
>
> i have a number of background threads in my app, and for a few of them i
> want to make sure only on
No problem. Glad to be of help 'round here instead of just asking
stupid questions.
On Aug 16, 5:11 pm, MikeHowarth <[EMAIL PROTECTED]> wrote:
> Thats absolutely it. Validated and no errors found. Great stuff.
>
> I was sure I'd searched for Teacher and couldn't find anything.
>
> Thanks again fo
i have a number of background threads in my app, and for a few of them i
want to make sure only one of them exist. (not one per server thread)
for instance, my bigram indexeror my notification mailer.
Jeremy Dunck wrote:
> On 8/16/07, Derek Anderson <[EMAIL PROTECTED]> wrote:
>> hey,
>>
>
b3n wrote:
> Thanks,
>
> OK, but if a field value is only ever going to be 0 or 1, why make it
> signed? It's misleading.
Signed is MySQL default. Use e.g. PositiveSmallIntegerField if you want
it unsigned.
> And what is the purpose of INT(11), why should it be that instead of
> INT(10) ?
Agai
Hi!
Here it is: http://code.djangoproject.com/ticket/2920
I've got a doctest that raises:
(part of traceback)
...
msg = _('Password changed successfully.')
TypeError: 'bool' object is not callable
I tried adding this:
>>> from django.utils.translation import gettext as _
1. directly to my doc
Thanks,
OK, but if a field value is only ever going to be 0 or 1, why make it
signed? It's misleading.
And what is the purpose of INT(11), why should it be that instead of
INT(10) ?
After looking at the created tables, I'm going off Django! =/
Cheers,
On Aug 17, 1:07 pm, Michal Ludvig <[EMAI
Hello all,
I have a problem with queries seeming to be cached. If I start, for
example, manage.py shell and execute:
>>> import webinterface.blade.models as models
>>> print models.ActualBlock.objects.order_by('beginTime')
[,...
Then I change one of the fields externally (for example, I change
1
On 8/18/07, Peter Melvyn <[EMAIL PROTECTED]> wrote:
>
>
> On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > But how do I pass the 'user' object to the Form so I can use it in
> > filter() or run .groups.all() on it?
>
> I do it this way:
>
> self.fields['emails'].queryset =
> BIZEmail.
I am using 0.97-pre. I also am using new forms with a similar date field at
work for a different website and I do not encounter the error, though I am
using the form_for_model instead I am using the custom form. But, I will try
and compare the two and see where the differences might be.
Thanks
On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> But how do I pass the 'user' object to the Form so I can use it in
> filter() or run .groups.all() on it?
I do it this way:
self.fields['emails'].queryset =
BIZEmail.objects.filter(owner=oa_request.user.id)
self.fields['emails'].widget.
HI,
Where I can find a sample where a view pass a query and other models to a
template and the temmplate show them.
I need that for undestand how this part work
Thanks
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
b3n wrote:
> Why doesn't Django create primary key integer and tinyint integer
> database fields as UNSIGNED?
Assuming you're talking about MySQL ...
> Especially where a field is used as a flag. e.g. auth_user
>
> is_staff = tinyint(1)
> is_active = tinyint(1)
> is_superuser = tinyint(1)
>
>
And some table have very crazy indexes:
TABLE auth_permission
PRIMARY
- PRIMARY id
content_type_id
- UNIQUE content_type_id, codename
auth_permission_content_type_id
- INDEX content_type_id
"UNIQUE and INDEX keys should not both be set for column
`content_type_id`"
--~--~-~--~~
Why doesn't Django create primary key integer and tinyint integer
database fields as UNSIGNED?
Especially where a field is used as a flag. e.g. auth_user
is_staff = tinyint(1)
is_active = tinyint(1)
is_superuser = tinyint(1)
Doesn't seem very optimised.
And why does it create primary key inte
Hi all,
I have a newform GroupSelectionForm with:
group_id = forms.ModelChoiceField(Group.objects.all())
where users are supposed to choose their primary group.
However I only want to offer them groups in which they have
membership. I.e. instead of Group.objects.all() do something like
Group
On 17 Sie, 01:58, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> The new form looks something like:
>
> >>> from django.core.management import call_command
> >>> call_command('flush', verbosity=0, interactive=False)
> >>> call_command('load_data', ['test_data'], verbosity=0)
To be clear the l
On Fri, 2007-08-17 at 01:58 -0700, patrickk wrote:
> thanks. I did a search for tickets before, but I didn´t find one (I
> probably used the wrong keywords).
I initially bailed on giving you numbers for that reason, too. In the
interim I remembered how to find them. Tickets #1840 and #3694 are
re
thanks. I did a search for tickets before, but I didn´t find one (I
probably used the wrong keywords).
patrick.
On 17 Aug., 10:54, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2007-08-17 at 10:43 +0200, patrickk wrote:
> > I just used the integrated documentation (/admin/doc/) with do
On Fri, 2007-08-17 at 10:43 +0200, patrickk wrote:
> I just used the integrated documentation (/admin/doc/) with docutils
> for the first time.
> from my point of view, that´s a really cool feature.
>
> however, I´m having some problems with views and decorators.
> e.g., the url /admin/filebrow
On Fri, 2007-08-17 at 08:22 +, james_027 wrote:
> hi,
>
> while learning and experimenting with forms ... one should use
> ModelChoiceField in order to let newforms bind the value on a
> foreignkey field of a model. My concern is that in the real world, you
> usually don't use to let the us
I just used the integrated documentation (/admin/doc/) with docutils
for the first time.
from my point of view, that´s a really cool feature.
however, I´m having some problems with views and decorators.
e.g., the url /admin/filebrowser/ points to a view with this decorator:
index = staff_
2 days ago I made some major updates to my live site including
modifications in models. I did the necessary schema modifications in
the database, and everything seemed to be running well at first.
Then I start receiving error notifications of 2 types, occasionally:
1. DB error: Programming error,
Hey! No problem here. Thank you both for directions.
Jakub Wiśniowski
On 17 Sie, 01:58, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 8/17/07, eXt <[EMAIL PROTECTED]> wrote:
>
> > >>> from django.core import management
> > >>> management.flush(verbosity=0, interactive=False)
> > >>> mana
hi,
while learning and experimenting with forms ... one should use
ModelChoiceField in order to let newforms bind the value on a
foreignkey field of a model. My concern is that in the real world, you
usually don't use to let the user chose the value
to be filled especially if the list of choice
Will do, thanks for your patience Malcolm
On Aug 17, 5:52 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-08-16 at 11:03 -0700, MikeHowarth wrote:
> > Malcolm
>
> > Thanks for your comments, indeed changing to use the sitemap view,
> > then returns a template does not exist error
Thanks for valuable hints. I submitted a ticket with a patch:
http://code.djangoproject.com/ticket/5189.
Jakub Wiśniowski
On 16 Sie, 16:55, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 8/16/07, eXt <[EMAIL PROTECTED]> wrote:
>
>
>
> > Ok, I've got a logout method that should (IMHO) be a
53 matches
Mail list logo