Re: Django + views like a threads

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 11:18 -0700, pako wrote: > It is possible to run view method in new thread? > For example if i have > > (r'^items/(?P\d)/$', 'cyber.core.views.list_items') > > and function list_items do sleep(10) a new requests to django > application will not be acceptable, cause main thr

Re: no action logging in admin panel

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 17:17 +, [EMAIL PROTECTED] wrote: > Is there a way to disable logging of actions in the admin panel > (add/edit/changed entries of models-apps) ? Not without hacking the source, no. Regards, Malcolm --~--~-~--~~~---~--~~ You received t

Re: Caching with cache middleware disabled?

2006-10-13 Thread RajeshD
> Any other ideas? Yes. You mention that you "use some available Django generic views". Can you show us your urls.py? It's possible that your QuerySet is being cached. For example, if you happen to be using the QuerySet through the extra_dict parameter of your generic views instead of as part o

Re: Model-level DB cache

2006-10-13 Thread nara
wasn't a DB cache issue in my case, just a bug in my model code. The first run of unittest silently failed, and subsequent ones showed the above stack trace. Running stuff in the python interpreter helped find the problem. I do a connection._rollback() at the start of my unittest now, as insuranc

Re: What IDE do you use? (semi-OT)

2006-10-13 Thread David Sissitka
I think RadRails was created because of the hype that Rails generated, everyone wanted to try it out and a lot of people aren't comfortable with a terminal. Either way, it's more then a Rails aware editor. What features would you like to see, what couldn't be accomplished from an existing Python ID

Re: What IDE do you use? (semi-OT)

2006-10-13 Thread Norjee
Rob Hudson schreef: > Should Django look at creating something like what RadRails is for RoR? > http://www.radrails.org/ > > It's built on top of Eclipse. The screencasts look pretty cool. > > -Rob Imho it would be a waste of ressourceries better spend on Django itself. As you can already see i

Re: Caching with cache middleware disabled?

2006-10-13 Thread [EMAIL PROTECTED]
It doesn't seem to be timezone related because if I restart the server as soon as I post the blog entry the main page includes that post. Any other ideas? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: email_user with text/html type

2006-10-13 Thread Guillermo Fernandez Castellanos
Hi, This might help you get going (see at the end). I modified a bit the function that sends the mail in Django. It is probably very far from as good as it could be. I am actually surprised as well that there's no function for that. Hope it helps, G # Use this module for e-mailing. from djan

Re: Paginator Overhall

2006-10-13 Thread sago
Adrian Holovaty wrote: > I love the idea of a Paginator class that knows what page it's on. Maybe a solution is to get a 'page' object back from the original paginator. So you can still call its methods to get individual morsels of data, or call a get_page_info method to get a PageInfo object bac

Re: email_user with text/html type

2006-10-13 Thread Don Arbow
On Oct 13, 2006, at 2:58 PM, sdm wrote: > > Hi, I look in the documentation, but don't have found how can I > send an > email with html content, how can I do it? That's because it's not a Django question, but a Python one. Here's a link to a page showing how to send HTML emails using the Py

email_user with text/html type

2006-10-13 Thread sdm
Hi, I look in the documentation, but don't have found how can I send an email with html content, how can I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: [tool] Autodoc (a script to grap and generate django documentation at html format)

2006-10-13 Thread Jyrki Pulliainen
On 10/13/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Jyrki Pulliainen wrote: > > > Script seems to work. However: Python-docutils package (at least on my > > Ubuntu Dapper) ships with buildhtml.py-script, which can be found in > > /usr/share/python-docutils/ directory. That recurses throu

Re: [tool] Autodoc (a script to grap and generate django documentation at html format)

2006-10-13 Thread Nicolas Steinmetz
Jyrki Pulliainen wrote: > Script seems to work. However: Python-docutils package (at least on my > Ubuntu Dapper) ships with buildhtml.py-script, which can be found in > /usr/share/python-docutils/ directory. That recurses through > directories converting all .txt files to .html. Recursive conver

Re: [tool] Autodoc (a script to grap and generate django documentation at html format)

2006-10-13 Thread Jyrki Pulliainen
On 10/13/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > New to django/python, and as I work often in the train, I was interested in > reading the djando doc offline. > > So I wrote my first python script that : > * grap last version of the doc on the svn > * generate html version of all files

new site, satellite internet, and the django admin

2006-10-13 Thread rp
here's a sporadic after work project motivated by my cousin, she and her partner are avid poker players travelling in an airstream trailer/using the django admin . . . http://www.thepokeratlas.com (no links/connections to online poker) e.g. of tournament data: http://www.thepokeratlas.com/ve

Re: Django + views like a threads

2006-10-13 Thread pako
orestis wrote: > Why do you sleep(10) ? I can't think of any possible reason... It's only example which is simulating very big system load. I want to create application which will be creating threads with nonblocking tasks list (in queue). If application has new request - he's adding new task to

[tool] Autodoc (a script to grap and generate django documentation at html format)

2006-10-13 Thread Nicolas Steinmetz
Hi, New to django/python, and as I work often in the train, I was interested in reading the djando doc offline. So I wrote my first python script that : * grap last version of the doc on the svn * generate html version of all files (via rst2html). autodoc is available here :

Re: Django + views like a threads

2006-10-13 Thread orestis
Why do you sleep(10) ? I can't think of any possible reason... --~--~-~--~~~---~--~~ 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

Re: What IDE do you use? (semi-OT)

2006-10-13 Thread Rob Hudson
Should Django look at creating something like what RadRails is for RoR? http://www.radrails.org/ It's built on top of Eclipse. The screencasts look pretty cool. -Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

wsgi server

2006-10-13 Thread hv @ Fashion Content
Does anyone use the wsgi server? in particular with ajp binding? I continue to get an access forbidden message, but see nothing in the logs. Any ideas of how I can debug it ? Henrik --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Django + views like a threads

2006-10-13 Thread pako
It is possible to run view method in new thread? For example if i have (r'^items/(?P\d)/$', 'cyber.core.views.list_items') and function list_items do sleep(10) a new requests to django application will not be acceptable, cause main thread is currently sleeping by list_items function. So any idea

Re: AttributeError thrown by Validator

2006-10-13 Thread RajeshD
> if request.FILES: > new_data = new_data.update(request.FILES) > Change that to: if request.FILES: new_data.update(request.FILES) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

AttributeError thrown by Validator

2006-10-13 Thread Paul Childs
I am sure that I have read everything there is available in the newsgroup and docs concerning uploading files. If I missed something I apologize in advance. Right now all I am trying to do is upload a file and use the manipulator to validate that it is not missing. Everything seems to be working

Re: Extending the user model

2006-10-13 Thread Stefán Freyr Stefánsson
Sorry to "fork" this thread. And thank you to Dirk for pointing out the article and verifying that it is the "right thing to do"(tm).I have to do this as well (that is, enhance the User object a bit) but not quite in the same way as this is intended I believe. The thing is that I'm using mod_auth_m

no action logging in admin panel

2006-10-13 Thread [EMAIL PROTECTED]
Is there a way to disable logging of actions in the admin panel (add/edit/changed entries of models-apps) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: mod_python

2006-10-13 Thread doug
test server is running at http://oviparo.us with configs listed- Doug On Oct 13, 12:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > http://oviparo.us/redirects tohttp://oviparo.us/ > > please post here your VirtualHost config. also, 1st thing to make sure, > you are > coming to right Vir

Re: mod_python

2006-10-13 Thread Serg Kovrov
Note, that you have to restart apache after you make changes in your python source files. On Oct 13, 4:04 am, "doug" <[EMAIL PROTECTED]> wrote: > I am setting up mod_python on test server and having some problems. I > am getting 'it worked!' initially- I am able to access admin and set up > flatp

Re: mod_python

2006-10-13 Thread [EMAIL PROTECTED]
http://oviparo.us/ redirects to http://oviparo.us/ please post here your VirtualHost config. also, 1st thing to make sure, you are coming to right VirtualHost (so place some file in your htdocs to see if you can fetch it) 2nd step is make sure you have your directives point to right place. --

Re: Custom Template Tag - What do I need in my actual template?

2006-10-13 Thread MerMer
Tim, Many thanks - that works a treat. I was getting myself very confused about where and how to use the context. Cheers MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

How can I inspect the content of bound_related_object in admin/edit_inline_tabular.html ?

2006-10-13 Thread [EMAIL PROTECTED]
Hi I make some hack on admin/edit_inline_tabular.html template but I don't know the content of bound_related_object. In general, how can I inspect (debug ?) this objects ? Thanks for your help. Stephane --~--~-~--~~~---~--~~ You received this message because you

mod_python

2006-10-13 Thread doug
I am setting up mod_python on test server and having some problems. I am getting 'it worked!' initially- I am able to access admin and set up flatpages. But I hit a wall when just trying to do 'polls' app ... getting 404s only . No problem when using development server. test server with settings

Re: Birthday

2006-10-13 Thread Guillermo Fernandez Castellanos
Hi, I think I am going to go to the DateField solution. I did not want to store the year because: 1) I do not know the years of all my friends, although I know the days. 2) Not everyone likes everybody to see how old they are :-) Thanks all for your answer. G On 10/13/06, Antonio Cavedoni <[EM

Re: Custom Template Tag - What do I need in my actual template?

2006-10-13 Thread Tim Shaffer
Your code looks valid as it is right now. The get_latest_polls function should return a QuerySet of the three latest polls. When you call this function it will get the polls and assign the QuerySet to the "polls" variable for use in your template. In order to display the polls, you would need to

Re: Paginator Overhall

2006-10-13 Thread Adrian Holovaty
On 10/12/06, sago <[EMAIL PROTECTED]> wrote: > So I suggest, its time to see what people need from Paginator and make > a serious joint contribution to a complete system. Thanks for bringing this up. I'd like to make some big improvements to the paginator class, and you touched on most (all?) thi

Custom Template Tag - What do I need in my actual template?

2006-10-13 Thread MerMer
I'm steadily working through the excellent custom template tag tutorial:- http://www.b-list.org/weblog/2006/06/07/django-tips-write-better-template-tags I've got the following code to create a template tag. However, I'm unclear as to what I need to put into my actual template. The author stat

Re: Extending the user model

2006-10-13 Thread Dirk Eschler
Am Freitag, 13. Oktober 2006 13:58 schrieb Malcolm Tredinnick: > Yes. Is there something you are trying to do that isn't accomplished by > that method? Ok now that i have tried, there is indeed something i can't accomplish. :) Here's a simplified version of my model: class UserProfile(models.Mo

Re: Paginator Overhall

2006-10-13 Thread sago
Malcom, Yes, I agree that it is better to have a generally useful framework, rather than an all singing and dancing solution to everybody's solution but yours. I also agree with a lot of your post. > Pagination is something that can and is presented in many > different ways. This is a subtext o

Re: mod_python help needed

2006-10-13 Thread doug
1-link above 'is' the test server/ 2-source is linked to svn code directly as described on djangoproject.com 3- 404 is django's see it here: http://oviparo.us/polls - Thanks Doug On Oct 13, 7:57 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2006-10-13 at 11:30 +, doug

Re: Birthday

2006-10-13 Thread Antonio Cavedoni
On 13 Oct 2006, at 0:24, Guillermo Fernandez Castellanos wrote: > I am trying to keep a birthday field in the database. But i am only > interested in the day and month. Is there a way of using a DateField > but only with day and month fields? Or should I use another solution? A DateField looks li

Re: Auth and flash

2006-10-13 Thread olive
This is a question you should also ask to openlaszlo.org users. Openlaszlo is a framework which helps in building rich Flash GUI in a XUL fashion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Extending the user model

2006-10-13 Thread Dirk Eschler
Am Freitag, 13. Oktober 2006 13:58 schrieb Malcolm Tredinnick: > On Fri, 2006-10-13 at 13:20 +0200, Dirk Eschler wrote: > > Hello, > > > > is the method described at the below link still the recommended one? > > http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model > > Yes. Is t

Re: Rich Text Fields in Admin

2006-10-13 Thread comechao
See that: http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html --~--~-~--~~~---~--~~ 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@googlegroup

Re: Extending the user model

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 13:20 +0200, Dirk Eschler wrote: > Hello, > > is the method described at the below link still the recommended one? > http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model Yes. Is there something you are trying to do that isn't accomplished by that method?

Re: mod_python help needed

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 11:30 +, doug wrote: > I am setting up mod_python on test server and having some problems. I > am getting 'it worked!' initially- I am able to access admin and set up > flatpages. But I hit a wall when just trying to do 'polls' app ... > getting 404s only . No problem whe

mod_python help needed

2006-10-13 Thread doug
I am setting up mod_python on test server and having some problems. I am getting 'it worked!' initially- I am able to access admin and set up flatpages. But I hit a wall when just trying to do 'polls' app ... getting 404s only . No problem when using development server. test server with settings

Extending the user model

2006-10-13 Thread Dirk Eschler
Hello, is the method described at the below link still the recommended one? http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model -- Dirk Eschler http://www.krusader.org --~--~-~--~~~---~--~~ You received this messag

Re: Relation query stops working when moving to Linux (from Mac)

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 03:16 -0700, mrstone wrote: > I'm getting a strange error that I have not been able to sort out. > > When moving my project to the production server the below query stops > working. (It works fine on Mac) > > I noticed that using CamelCase in fieldnames is an issue when mov

Re: How can I inspect the content of bound_related_object in admin/edit_inline_tabular.html ?

2006-10-13 Thread Malcolm Tredinnick
On Fri, 2006-10-13 at 12:01 +0200, KLEIN Stéphane wrote: > Hi > > I make some hack on admin/edit_inline_tabular.html template but I don't > know the content of bound_related_object. In general, how can I inspect > (debug ?) this objects ? Look in the render() method of the EditInlineNode class i

Relation query stops working when moving to Linux (from Mac)

2006-10-13 Thread mrstone
I'm getting a strange error that I have not been able to sort out. When moving my project to the production server the below query stops working. (It works fine on Mac) I noticed that using CamelCase in fieldnames is an issue when moving code, but that doesn't seem to be the problem here. Any o

Auth and flash

2006-10-13 Thread Roodie
Hi, I am working on a web application at the moment, and I have a question about the authentication mechanism. The interface of the application will be a flash app. No page reloading, no redirects - only a big flash file which will send the requests using post and get back the responses in a c

Re: How can I inspect the content of bound_related_object in admin/edit_inline_tabular.html ?

2006-10-13 Thread KLEIN Stéphane
Hi I make some hack on admin/edit_inline_tabular.html template but I don't know the content of bound_related_object. In general, how can I inspect (debug ?) this objects ? Thanks for your help. Stephane --~--~-~--~~~---~--~~ You received this message because you

Re: 'bool' object has no attribute 'get' ??

2006-10-13 Thread Nicolas Steinmetz
Russell Keith-Magee a écrit : > Sorry for the long delay in responding to this message. no problem, it happens ;) > Django models can have multiple foreign keys; however, there are some > known issues with manipulators on models with self-referential foreign > keys that give the error message y

Re: When to

2006-10-13 Thread MerMer
I can see that I could use inclusion tags or template tags. I've read the documentation however, I'm still unclear when you would use one over the other. What would be the appropriate use case for a template tag versus an inclusion tag? MerMer --~--~-~--~~~---~--~