Re: Where'd my error go?

2008-05-11 Thread [EMAIL PROTECTED]
This should probably be filed as a bug since the docs(http:// www.djangoproject.com/documentation/custom_model_fields/) show an example of raising a TypeError. On May 11, 2:42 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > Hi gang (especially Malcolm, if you're listening), > > I was recently

Mindfreak Criss Angel's levitation secret revealed:

2008-05-11 Thread Isaiah
Mindfreak Criss Angel's levitation secret revealed: http://www.vcxd.com/e/ --~--~-~--~~~---~--~~ 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

Re: Caching get_profile

2008-05-11 Thread phillc
get_profile is useful for being able to change the model name or being able to reuse an app. if that doesnt matter, you can just do it the normal way... foreign key to the auth model (from django.contrib.auth.models import User) On May 11, 4:17 pm, Szymon <[EMAIL PROTECTED]> wrote: > Hello, > >

Re: Getting back to the same page after completing a task in another page

2008-05-11 Thread Ronny Haryanto
On Sun, May 11, 2008 at 11:55 AM, M.Ganesh <[EMAIL PROTECTED]> wrote: > I am displaying a list of records in a page. I have a link in that page > which will take me to a form for adding one more record. How do I come > back to the previous page after adding a record? If the "previous page" is

Problem in PIL with filename having chinese characters

2008-05-11 Thread Mayank Dhingra
Hi All, I am facing a problem while trying to accept an uploaded image in PIL whose name has some chinese characters . error = "No such file or directory" on line 1400 i.e fp = __builtin__.open(fp, "wb") of Image.py in PIL Is it a bug or something that I am missing. Files with names in

Re: Problem regouping date list

2008-05-11 Thread Jason K
Beautiful, works perfectly! Thanks, Jason On May 11, 4:57 pm, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > Hi, Jason, > > On 11.05.2008, at 16:46, Jason K wrote: > > > > > Hi, having a little trouble regrouping a date list. > > I have an simple inclusion tag to get a unique list of months, as >

Re: mod_python vs. mod_wsgi

2008-05-11 Thread Pigletto
> Obviously be aware that in daemon mode you will still have multithread > issues to contend with if they run with multiple threads. To avoid it > you would need a config such as: > > ... processes=5 threads=1 > > Ie., use prefork model with mod_wgsi daemon mode. This isn't going to > get you

XHR Request Headers

2008-05-11 Thread Szaijan
I'm rewriting my scratch built Javascript AJAX layer for my Django site using MochiKit, primarily due to cross-browser incompatibility issues. Previously, I would construct a default XHR request, set the headers to "Content-Type":"application/x-www-form-urlencoded" and send it. This worked fine

Re: Problem regouping date list

2008-05-11 Thread Adi Jörg Sieker
Hi, Jason, On 11.05.2008, at 16:46, Jason K wrote: > > Hi, having a little trouble regrouping a date list. > I have an simple inclusion tag to get a unique list of months, as > follows: > > def show_month_list(): >month_list = Article.objects.dates('pub_date', 'month', > order='DESC') >

Caching get_profile

2008-05-11 Thread Szymon
Hello, I know this is lame question, but - is there way to override somehow get_profile? I want to implement memcache caching in there, so how can I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Where'd my error go?

2008-05-11 Thread Marty Alchin
Hi gang (especially Malcolm, if you're listening), I was recently trying to test out a few things with field subclassing, and I made a PickleField just to see if I could. Basically, it pickles arbitrary Python objects for storage into the database, then unpickles them back into Python when

Use Django with already existing Java code?

2008-05-11 Thread paokoutsa
Hi, I recently joined a team that is building a web application and we are examining the possibilities of using Django to implement it. The core of this application is already written in Java and until now Java servlets were used for client-server communication. We have no previous experience in

Re: Auto-increment a integer column in admin?

2008-05-11 Thread Tomás Garzón Hervás
Hi, but position? is no self.position? Brandon Taylor escribió: > Hi everyone, > > I want to add an integer field to a table callled "position" to do > ordering by. I would like the field to auto-increment based on the > count of objects. > > I've tried overriding the save() method of the model,

Re: tutorial part 4 - vote problem

2008-05-11 Thread Aragorn son of Arathorn
You are absolutely right - I didn't !! Thanks for the tip. I'll see if that solves it. On May 11, 4:44 pm, Scott SA <[EMAIL PROTECTED]> wrote: > On 5/11/08, Aragorn son of Arathorn ([EMAIL PROTECTED]) wrote: > > > > >I am using the svn version of django and have worked through the > >tutorials

Auto-increment a integer column in admin?

2008-05-11 Thread Brandon Taylor
Hi everyone, I want to add an integer field to a table callled "position" to do ordering by. I would like the field to auto-increment based on the count of objects. I've tried overriding the save() method of the model, but this doesn't seem to work with the admin. Here's some simple test code

Home Based Typist/Data Entry Needed £250 - £750 per week

2008-05-11 Thread John Philips
*http://www.skyhighrecruit.info* Skyhigh Recruit UK are seeking only honest, self-motivated people with a desire to work in the home typing and data entry field, from the comfort of their own homes. The preferred applicants should be at least 18 years old with Internet access. No experience is

Re: Setting request-parameters per default

2008-05-11 Thread phillc
i second the template tag approach On May 11, 3:32 am, mwebs <[EMAIL PROTECTED]> wrote: > Thanks Alex, thats a good idea. > > But I want to have a more generic solution for this problem. There > must be an other way than to write custom template tags. I think the >

Re: tutorial part 4 - vote problem

2008-05-11 Thread Scott SA
On 5/11/08, Aragorn son of Arathorn ([EMAIL PROTECTED]) wrote: >I am using the svn version of django and have worked through the >tutorials without any problem. I have run into a problem on tutorial 4 >- last section - using generic views. I am able to bring up a detail >poll by going to

tutorial part 4 - vote problem

2008-05-11 Thread Aragorn son of Arathorn
I am using the svn version of django and have worked through the tutorials without any problem. I have run into a problem on tutorial 4 - last section - using generic views. I am able to bring up a detail poll by going to http://127.0.0.1:8000/1/ and then i can select a choice and vote. However

Problem regouping date list

2008-05-11 Thread Jason K
Hi, having a little trouble regrouping a date list. I have an simple inclusion tag to get a unique list of months, as follows: def show_month_list(): month_list = Article.objects.dates('pub_date', 'month', order='DESC') return {'month_list': month_list}

Re: newforms and views.generic.create_update.create_object

2008-05-11 Thread M.Ganesh
Karen Tracey wrote: > On Sun, May 11, 2008 at 5:55 AM, M.Ganesh <[EMAIL PROTECTED] > > wrote: > > > Hi all > > I am a django rookie. > > Is it true that "views.generic.create_update.create_object" generate a > oldform? (the documentation says so!) > > >

Re: undetermined behaviour of manage.py

2008-05-11 Thread Николай Бульба
Thanks a lot, Russell! --~--~-~--~~~---~--~~ 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

Re: newforms and views.generic.create_update.create_object

2008-05-11 Thread Karen Tracey
On Sun, May 11, 2008 at 5:55 AM, M.Ganesh <[EMAIL PROTECTED]> wrote: > > Hi all > > I am a django rookie. > > Is it true that "views.generic.create_update.create_object" generate a > oldform? (the documentation says so!) > The docs are generally accurate. Searching the in the ticket tracker

Re: undetermined behaviour of manage.py

2008-05-11 Thread Russell Keith-Magee
On Sun, May 11, 2008 at 4:36 PM, Николай Бульба <[EMAIL PROTECTED]> wrote: > > > 2008/5/11 Peter Melvyn <[EMAIL PROTECTED]>: > > > > On 5/11/08, phactor <[EMAIL PROTECTED]> wrote: > > > > > no keyword REFERENCES. Where is it? > > > > AFAIK, SQLite engine 'per se' does not support reference

newforms and views.generic.create_update.create_object

2008-05-11 Thread M.Ganesh
Hi all I am a django rookie. Is it true that "views.generic.create_update.create_object" generate a oldform? (the documentation says so!) I have a template which renders a newform created with 'forms.Modelform' to my satisfaction. However when I try to use the same template in

Re: undetermined behaviour of manage.py

2008-05-11 Thread Николай Бульба
2008/5/11 Peter Melvyn <[EMAIL PROTECTED]>: > > On 5/11/08, phactor <[EMAIL PROTECTED]> wrote: > > > no keyword REFERENCES. Where is it? > > AFAIK, SQLite engine 'per se' does not support reference integrity, see: > > - http://www.sqlite.org/lang_createtable.html > -

Re: undetermined behaviour of manage.py

2008-05-11 Thread Peter Melvyn
On 5/11/08, phactor <[EMAIL PROTECTED]> wrote: > no keyword REFERENCES. Where is it? AFAIK, SQLite engine 'per se' does not support reference integrity, see: - http://www.sqlite.org/lang_createtable.html - http://www.sqlite.org/omitted.html HTH, Peter

Re: Setting request-parameters per default

2008-05-11 Thread mwebs
Thanks Alex, thats a good idea. But I want to have a more generic solution for this problem. There must be an other way than to write custom template tags. I think the passing-default-request-parameters approach is the solution, but I dont know how and where to realize it elegant. Toni On 11

Re: Setting request-parameters per default

2008-05-11 Thread Alex Morega
On May 11, 2008, at 09:58 , mwebs wrote: > > In my application I need to build a dynamic menu. For this purpose I > have to pass a dict that contains the menu-entries that will be > displayed at my index.html > > The not elegant way to do this, is to pass the menu-entries in every >

Re: IIS 6 PyISAPIe problems

2008-05-11 Thread rcs_comp
This should fix the problem: * Make sure the Http module from the PyISAPIe is installed in c: \Python25\Lib\site-packages * Stop IIS * Move PyISAPIe.dll file out of C:\Python25 and into c:\PyISAPIe (create the directory if you need to) * Remap the .py handler to the new location of the dll *

Django Performance using PyISAPIe on IIS Rocks

2008-05-11 Thread rcs_comp
I decided to do a some tests (they probably shouldn't be called benchmarks b/c they are not real-world examples) to see how well PyISAPIe performance compared to other options on Windows. The big surprise for me was the difference between Symfony and Django (almost 10x more requests per second).

undetermined behaviour of manage.py

2008-05-11 Thread phactor
Hello everyone! I've got a strange behaviour of manage.py. Main thing is: not always my models that use models.ForeignKey as field can be right transformed to sql query for sqlite3. I've checked versions 0.96 and subversion. Simple steps to reproduce: 1. django-admin.py startproject testproject