Error : Circula import

2022-03-03 Thread Ruzindana Kent
Hello everyone, I'm new to django and also new in the group, I wanted to know how to solve circula import errors. here is a screenshot of the error from the terminal. Any reply about that will be helpful, thank you -- You received this message because you are subscribed to the Google Groups "

Re: [Tutor] Encoding question

2009-09-09 Thread Kent Johnson
se Pass or > failed) resp.content.decode('string_escape') will convert it to encoded bytes. Then another decode() with the correct encoding will get you Unicode. I'm not sure what the correct encoding is for the second decode(), most likely one of 'utf-8', 'utf_1

Re: Using Django with appengine - Port of the django tutorial for appengine

2008-04-10 Thread Kent Johnson
shabda wrote: > I have tried to write a Django tutorial for Appengine. > A live install of this can be seen at http://blogango.appspot.com I get a 403 Forbidden when I try to vote... Kent --~--~-~--~~~---~--~~ You received this message because y

Re: Anybody successfully deployed Django to appengine? Having some problems

2008-04-08 Thread Kent Johnson
/imported, so it gives a NameError. log_exception is defined immediately above the line you quote: def log_exception(*args, **kwds): logging.exception('Exception in request:') Kent --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Is it necessary to impliment tearDown to clean up database when using django.test.TestCase?

2008-03-09 Thread Kent Johnson
should be created, or is all this done behind the > scenes when using TestCase? Using unittest.TestCase I do this in setUp(), rather than tearDown, so I know the test starts with a clean table. Kent --~--~-~--~~~---~--~~ You received this message becaus

Re: Recovering from Postgres errors

2008-03-05 Thread Kent Johnson
rking in the shell, or when performing multiple updates that don't have to succeed or fail as a group - no effect when inside an explicit (managed) transaction Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Recovering from Postgres errors

2008-03-04 Thread Kent Johnson
y own model's save(), as indicated above? Thanks, Kent --~--~-~--~~~---~--~~ 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 unsubsc

Re: Negation in queries

2007-12-13 Thread Kent Johnson
Jan Rademaker wrote: > There is an undocumented class called QNot which resides in > django.db.models.query. That is just what I was looking for. Thanks! Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Negation in queries

2007-12-13 Thread Kent Johnson
ve either of the above examples. Kent --~--~-~--~~~---~--~~ 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 grou

Negation in queries

2007-12-13 Thread Kent Johnson
do this in the docs. Hopefully I am just overlooking something! I'm using Django 0.96 if it matters... Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: How to add to DjangoResources?

2007-12-06 Thread kent
On Dec 6, 5:29 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Register yourself as a user and try Thank you. In case anyone else has the same problem, I didn't actually register and log in, I clicked "Settings" and put in my name and email there. --~--~-~--~~~---~--~

How to add to DjangoResources?

2007-12-06 Thread Kent Johnson
* [http://blogcosm.com/media/blogmaker/release/README.html Blogmaker] A full-featured, production-quality blogging application with support for trackback, ping and comment honeypots Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to

ANN: Blogmaker blogging application

2007-12-06 Thread Kent Johnson
blogs at http://blog.blogcosm.com/ and http://prefabcosm.com/blog/. Full announcement: http://blog.blogcosm.com/2007/12/06/ Release page with the full feature list, download link and (limited) documentation: http://blogcosm.com/media/blogmaker/release/README.html Kent

Re: Combating submission form Spam

2007-12-06 Thread Kent Johnson
work on the part of real humans. Today or tomorrow the company I work for (PreFab Software) will be releasing a blogging app for Django that includes a comment app implementing your honeypot ideas. Stay tuned here or at http://blog.blogcosm.com for an announcement. Kent > > --Ned. >

Re: Painful deployment | shared hosting | Need your advice

2007-10-21 Thread Kent Johnson
ot personal >> experience). > > +1 from personal experience - though I just found that they dont have > pg_dump on their server. I use pg_dump at WF: /usr/local/pgsql/bin/pg_dump Kent --~--~-~--~~~---~--~~ You received this message because you ar

Re: Newbie Question - How do I get my burger and fries from BK and not Mickey D's?

2007-06-24 Thread Kent Johnson
rm. Then attach whatever behaviour you want to the form elements. Personally I find jQuery very helpful with this but you can use a different JS library or write it all yourself. Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Graphs and django

2007-06-21 Thread Kent Johnson
always too easy to understand so you have to do some digging and experimenting but it is very flexible and powerful and the resulting charts are good quality. A recipe here shows how to return a matplotlib image in a Django response: http://www.scip

Re: Django DbMigration 0.03 released

2007-06-10 Thread Kent Johnson
load link is not working (404). Kent --~--~-~--~~~---~--~~ 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, s

Re: Model Method Regular Expressions

2007-06-09 Thread Kent Johnson
te fields, then call the inherited save(). Kent --~--~-~--~~~---~--~~ 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 th

Re: unique and core with edit_inline breaks admin

2007-06-06 Thread kent
This is a bug, see http://code.djangoproject.com/ticket/565 Kent --~--~-~--~~~---~--~~ 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

Re: Search tables related by a foreign key in admin

2007-05-16 Thread Kent Johnson
he poll appears in the join once for each choice. Is there a way to get this to work correctly? Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: First impression of django

2007-05-12 Thread Kent Johnson
table. Updates can be defined in SQL or Python functions. I have been using it for about three weeks with a database under pretty frequent modification (10 schema changes in those 3 weeks) and I am very pleased with it. It includes a patch to syncdb so updates run with syncdb. Kent --~--~---

Re: Hacking admin changes

2007-04-04 Thread Kent Johnson
Kent Johnson wrote: > Enrico wrote: >> Can't you just override the 'save' method of your model? > > Maybe I can. I think I once had a reason not to do that but I can't > remember it :-) Yes, this is fine, thanks for nu

Re: Hacking admin changes

2007-04-04 Thread Kent Johnson
Thanks, Kent --~--~-~--~~~---~--~~ 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 PRO

Re: Hacking admin changes

2007-04-04 Thread Kent Johnson
Enrico wrote: > Can't you just override the 'save' method of your model? Maybe I can. I think I once had a reason not to do that but I can't remember it :-) Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are s

Hacking admin changes

2007-04-04 Thread Kent Johnson
the modified version - call the original admin view with the modified request My questions: - Is it OK to replace request.POST this way? - Is there a better way to accomplish this? BTW the reason I don't just save the new value is, I want the changed value to show up in the admin

Re: How to enter all model-related data on one form?

2006-03-13 Thread Mike Kent
Thanks for the reply, Adrian. Yep, I have already got the admin interface to my model enabled, that's how I got my initial data into the database. However, for the end-user interface, I wanted to go with a different look. I probably worded what I wanted badly: the key concept is that, for a Bo

How to enter all model-related data on one form?

2006-03-12 Thread Mike Kent
I want to create a form for entering data and all of its related data, on one form. Here's a simplified model to illustrate: class Author(meta.Model): name = meta.CharField(maxlength=40) class Book(meta.Model): title = meta.CharField(maxlength=40) authors = meta.ManyToManyField(Auth

Can I pass a python iterator to a template?

2006-03-09 Thread Mike Kent
= [] 88. if values is None: 89. values = [] 90. len_values = len(values) So, am I completely off base here? Is what I want to do not possible, or is there another way I can tackle this? Thanks, Mike Kent --~--~-~--~~~---~--~~ You received this message becau

Re: Problem and fix with ado_mssql

2006-02-28 Thread kent
same changes. Would you be interested in having two working adapters if I can get adodbapi to work? Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Problem and fix with ado_mssql

2006-02-27 Thread kent
Cheng Zhang wrote: > On Feb 28, 2006, at 5:48 AM, kent wrote: > > > PS I tried submitting this as a patch in the tracker but I didn't see > > any 'attach file' button... > > The 'attach file' button will appear after you create the ticket. :-) Ah

Problem and fix with ado_mssql

2006-02-27 Thread kent
-43,6 +47,7 @@ return int(res) # If float but int, then int. return res Database.convertVariantToPython = variantToPython +Database.adodbapi.convertVariantToPython = variantToPython class DatabaseWrapper: def __init__(self): Kent PS I tried submitting this as a patch in th