Re: Sorting product

2007-09-26 Thread jake elliott
hi francis - Francis Lavoie wrote: > I have a page that list products. These products are in different > categories, some belongs to other products (like addons). But I need to > sort them as the most important product is at the top. The problem is > that I can't come up with a good solution. I

Re: Two newform best practice questions

2007-09-26 Thread Joseph Kocherhans
On 9/26/07, Mark Green <[EMAIL PROTECTED]> wrote: > > I say thanks for the pointer, too. > A quick question (since you seem to be involved with this), is there any > reason to have django not prefix the form fields by default with, say, > the model-name (so prefix='' or prefix='somethingelse' can

Re: It's Django for bussines/financial apps??

2007-09-26 Thread Russell Keith-Magee
On 9/27/07, ringemup <[EMAIL PROTECTED]> wrote: > > One of the limitations of the Django ORM that I'd imagine would be a > big deal for financial reporting is that it doesn't have the best > support for grouping and aggregate functions. Is there any plan to > deal with that in the future?

Re: Two newform best practice questions

2007-09-26 Thread Mark Green
Hi Joseph, I say thanks for the pointer, too. A quick question (since you seem to be involved with this), is there any reason to have django not prefix the form fields by default with, say, the model-name (so prefix='' or prefix='somethingelse' can still be used if someone doesn't want it that

Re: How would I construct this query using Django?

2007-09-26 Thread Michael
Thanks Jonathan, this information has been helpful setting me on right track :-) On Sep 25, 2:27 am, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On 9/25/07, Michael <[EMAIL PROTECTED]> wrote: > > > > > Using SQLite I can pull out the data I want using a query along the > > line of: > > >

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
On Sep 26, 10:02 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > user = models.ForeignKey(auth.models.User) > > > It appears that the django.contrib.auth is missing the models > > attribute. > > No, it's not. Most likely there's a bad

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread James Bennett
On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > user = models.ForeignKey(auth.models.User) > > It appears that the django.contrib.auth is missing the models > attribute. No, it's not. Most likely there's a bad import statement in your models file, or no import statement, or you've got two

great new site

2007-09-26 Thread [EMAIL PROTECTED]
http://spielwelt6.knightfight.de/?ac=vid=121044096 --~--~-~--~~~---~--~~ 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

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
On Sep 26, 9:36 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error > > was: 'module' object has no attribute 'models' > > Something in your views module is trying to

Hot jobs openings - Apply now

2007-09-26 Thread kamini thakur
Hot jobs openings - Apply now All India job bank offers high flying career placement now for top notch call centers in Delhi and outside with 100% placement guarantee. Software Developer Category : Software, Hardware/ EDP , Role : Software Engineer/ Programmer Key Skills : COBOL, DB2,

Hot jobs openings - Apply now

2007-09-26 Thread kamini thakur
Hot jobs openings - Apply now All India job bank offers high flying career placement now for top notch call centers in Delhi and outside with 100% placement guarantee. Software Developer Category : Software, Hardware/ EDP , Role : Software Engineer/ Programmer Key Skills : COBOL, DB2,

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread James Bennett
On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error > was: 'module' object has no attribute 'models' Something in your views module is trying to import from a 'models' module that either doesn't exist, or isn't where your

Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
I have been working on trying to deploy a simple app that I created and works fine with the development server. Deployed it using apache and mod_wsgi. After working through a few initial permissions issues I am left with the following error: ViewDoesNotExist: Tried index in module

Re: It's Django for bussines/financial apps??

2007-09-26 Thread James Bennett
On 9/26/07, ringemup <[EMAIL PROTECTED]> wrote: > One of the limitations of the Django ORM that I'd imagine would be a > big deal for financial reporting is that it doesn't have the best > support for grouping and aggregate functions. Is there any plan to > deal with that in the future? There

Re: It's Django for bussines/financial apps??

2007-09-26 Thread ringemup
One of the limitations of the Django ORM that I'd imagine would be a big deal for financial reporting is that it doesn't have the best support for grouping and aggregate functions. Is there any plan to deal with that in the future? --~--~-~--~~~---~--~~ You

Re: Validation after form.save(commit=False) - newforms

2007-09-26 Thread Richard Dahl
Off the top of my head, how about something like this: form_data = request.POST form_data['domain_id'] = domain_id form = DNSRecordForm(form_data) if form.is_valid(): form.save() I think you should get the idea. Obviously the DNSRecordForm will have to have the domain field in it.

Sorting product

2007-09-26 Thread Francis Lavoie
Hi, I have a question related to sorting items. I have a page that list products. These products are in different categories, some belongs to other products (like addons). But I need to sort them as the most important product is at the top. The problem is that I can't come up with a good

Re: Multiple Django Projects Under One Directory

2007-09-26 Thread kidormb
On Sep 26, 6:23 pm, Chris Brand <[EMAIL PROTECTED]> wrote: > kidormb wrote: > > When I restart Apache2 and invoke an application in mysite, the > > response is correct. If I then > > invoke an application in testsite, there are errors with the url since > > it is apparently still using the > >

Re: It's Django for bussines/financial apps??

2007-09-26 Thread Russell Keith-Magee
On 9/27/07, olivier <[EMAIL PROTECTED]> wrote: > > I must say I was rather disappointed lately about the limitations of > the django ORM, which doesn't let you have any control of the joins > used internally [1]. Doesn't let you have control of joins _yet_. This is one of the goals of the

Re: It's Django for bussines/financial apps??

2007-09-26 Thread Ben Ford
There's always the option of using django ORM for the declarative stuff and your models and then if you need to do anything more complicated introspecting the DB (or the models themselves) and creating some SA Table models from that... I'm not sure if it's the most elegant but ithis approach seems

منتديات المزاد

2007-09-26 Thread www.almzaad.net/vb
http://www.almzaad.net/vb/index.php --~--~-~--~~~---~--~~ 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

Re: Multiple Django Projects Under One Directory

2007-09-26 Thread Chris Brand
kidormb wrote: > When I restart Apache2 and invoke an application in mysite, the > response is correct. If I then > invoke an application in testsite, there are errors with the url since > it is apparently still using the > mysite settings. > > I have to restart Apache2 to correctly invoke an

Multiple Django Projects Under One Directory

2007-09-26 Thread kidormb
I am a Django newbie and I am sure there is a simple answer to this problem. I have 2 dnajgo projects under 1 directory (i.e. /home/xxx/django/ mysite and /home/xxx/django/testsite) My httpd.conf file contains the following: SetHandler python-program PythonHandler

Re: Add field in models django 0.96

2007-09-26 Thread DJango Fett
Here are the steps I would use to add a field to an existing model without having to write your own SQL and without the risk of getting your model code out of sync with your database table. This code uses the same objects in the Tutorial on

Re: It's Django for bussines/financial apps??

2007-09-26 Thread olivier
> Thank you very much, you just save a lot of work. > > I will take a look to TurboGears. > > BTW, I have been trying django for 2 days and it's very nice, may be for > other project I'm not sure you should make a decision that fast ;o) I don't know where pylons and TG are heading now

Re: It's Django for bussines/financial apps??

2007-09-26 Thread Santiago Videla
> I must say I was rather disappointed lately about the limitations of > the django ORM, which doesn't let you have any control of the joins > used internally [1]. > This doesn't seem to be a problem for most users, but if you have a > complex data model, and need to do some complex joins,

Re: It's Django for bussines/financial apps??

2007-09-26 Thread akonsu
On Sep 26, 2:38 pm, olivier <[EMAIL PROTECTED]> wrote: > > Sure, but you're losing newforms integration, generic views, > admin, ... > Not sure it's still django at the end of the day ;o) > > Olivier i agree with you here. i did not know about the integration problems, thanks. what has been

Re: disguising a django app as php?

2007-09-26 Thread Matt Davies
if omat is going to try and create a wrapper to pass django through php then omat will be flushing how own time and his clients money down the toilet web2.7, as you say omat, it's your job as a web2.5 developer to convince the client that django is the way to go in fact, you could just build

Re: It's Django for bussines/financial apps??

2007-09-26 Thread olivier
> > This doesn't seem to be a problem for most users, but if you have a > > complex data model, and need to do some complex joins, out-of-the-box > > django may not be the best tool for the job, and anything based on > > sqlAlchemy (pylons ? turbogears ?) would be a better bet. > > i think one

Re: It's Django for bussines/financial apps??

2007-09-26 Thread akonsu
On Sep 26, 2:17 pm, olivier <[EMAIL PROTECTED]> wrote: > This doesn't seem to be a problem for most users, but if you have a > complex data model, and need to do some complex joins, out-of-the-box > django may not be the best tool for the job, and anything based on > sqlAlchemy (pylons ?

Re: It's Django for bussines/financial apps??

2007-09-26 Thread olivier
Hi, > The company offers several services to their clients. I this way, the > app must be able to manage all the related to clients accounts, > debts, payments, invoicing (print). I must say I was rather disappointed lately about the limitations of the django ORM, which doesn't let you have

Re: disguising a django app as php?

2007-09-26 Thread akonsu
i woul say do it in php. the reason why they want php might be because they want to be sure that the app is written in a language that can be understood by more people than python. konstantin On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote: > A client requires a web application to be

Re: disguising a django app as php?

2007-09-26 Thread Doug B
I agree with Nicolas. Some fights aren't worth the effort or risk. Even if it works flawlessly from a technical aspect, it may not go well for you. Here in the sue happy states it would probably open you up to quite a bit of legal liability, they least of which would result in you not getting

Re: It's Django for bussines/financial apps??

2007-09-26 Thread James Bennett
On 9/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The question is: what do you think? can I use django for this? I think perhaps you should read the Django documentation; Django isn't a product that "can do" or "can't do" certain types of things, it's a set of libraries for you to use

It's Django for bussines/financial apps??

2007-09-26 Thread [EMAIL PROTECTED]
Hi there, I have been working with python in zope/plone and now I trying to find out if django can help me I have a to develop a web app for a small / medium company The company offers several services to their clients. I this way, the app must be able to manage all the related to clients

Re: i18n/setlang no longer support GET

2007-09-26 Thread Antoni Aloy
2007/9/21, James Bennett <[EMAIL PROTECTED]>: > The HTTP specification says that GET requests should not take any > action other than retrieving a resource; in other words, a GET request > which modifies state on the server or has other side effects should > not be allowed. That's true, but this

Re: Django Flatpages With Memcache as storage location

2007-09-26 Thread Peter Pluta
Ross Poulton wrote: > > > Try creating a template called '404.html' (Even if it's empty for > starters; but you should put a useful message in there before go-live) > and see if your flatpages work with Debug turned off. > > > > > > I have the 404.html in approot/templates/ and it still

Re: dictionary access in templates

2007-09-26 Thread AO'R
As far as I know, the tour_dict.tour approach does not work because "template variable dictionary lookups use arguments as strings not as variable names" ( http://code.djangoproject.com/ticket/1495 ) I use a solution like this: {% for tour in tourset %} {% for dict_item in tour_dict.items %} {%

Re: One-To-Many Ordering ?

2007-09-26 Thread Henning Hraban Ramm
Am 2007-09-26 um 17:47 schrieb Nabuco: > I have two tables (video, videokeyword) involved in a many2many > relationship which results in a 3rd table (video_keywords_list). A > video element can have many keyword elements, and otherwise, a keyword > element can have (be present) in many video

Re: many-to-many query

2007-09-26 Thread Tim Chase
> So I need to get the videos that match ALL the keywords that I provide > in the query, like "give me all the videos that contain the keywords > 'horse', 'country' and 'green'". These videos may contain another > keywords or not, but I need them to contain at least ALL the keywords > provided. >

Re: One-To-Many Ordering ?

2007-09-26 Thread Richard Dahl
Within the Meta class of the Model you can set the default ordering of objects when getting a list of them. class Meta: ordering = ['field_to_order_by'] -richard On 9/26/07, Vitaliy <[EMAIL PROTECTED]> wrote: > > > For example i have this model: > > class Post(models.Model): >#some

color picker widget?

2007-09-26 Thread Henning Hraban Ramm
Does anyone know of a color picker widget & field for django? I mean something where you can select and adjust a color and get the usual hex code back. Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer)

One-To-Many Ordering ?

2007-09-26 Thread Vitaliy
For example i have this model: class Post(models.Model): #some fileds class Comment(models.Model): post = models.ForeignKey(Post) #some fields to get all comments for Post I use this: somePostObject.comment_set.all is there any posibiliy to set default commet set ordergin ?

Re: custom sql portability

2007-09-26 Thread Tim Chase
> an obvious one is to check whether the query uses standard syntax and > features. and if not, rewrite it so it does. > > also, try to test it on different databases. For those items that aren't quite so portable, it's helpful to follow the Django examples like you'll find in

Re: custom sql portability

2007-09-26 Thread akonsu
hello, an obvious one is to check whether the query uses standard syntax and features. and if not, rewrite it so it does. also, try to test it on different databases. cheers konstantin On Sep 26, 10:29 am, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using some custom sql which

Re: Add field in models django 0.96

2007-09-26 Thread Derek Anderson
if you want any help, feel free to pm me. Xan wrote: > Thanks, what the equivalent in mysql? > > Meanwhile, I think I will try patch to 0.96 found in > http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation > > Thanks another time, > Xan. > > > On Sep 26, 12:27 am, Joe <[EMAIL

object_list and select_template

2007-09-26 Thread akonsu
hello, is there a way to make django.views.generic.list_detail.object_list invoke django.template.loader.select_template when searching for template? i have a set of items with tags. i want to use object_list generic view to show items with a specific tag, and i want to use different templates

Re: disguising a django app as php?

2007-09-26 Thread r
On Sep 26, 11:15 am, "Matt Davies" <[EMAIL PROTECTED]> wrote: > sorry omat, web2.6 is how and what > > wont be long > > :-) web 2.7 then is where, upon receiving word of a mandated solution, developers simply recommend the customer flush their money down the toilet because it'll be better for

Re: disguising a django app as php?

2007-09-26 Thread Nicolas Steinmetz
omat a écrit : > Any ideas / suggestions? It sounds ridiculous for me and if you do not host the app, you'll have trouble with the hosting company for which the customer required a LAMP with a P like PHP whereas you need a LAMP with P like Python. Being honest is imho the best way. So just

Re: disguising a django app as php?

2007-09-26 Thread Matt Davies
sorry omat, web2.6 is how and what wont be long :-) On 26/09/2007, r <[EMAIL PROTECTED]> wrote: > > On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote: > > I am just trying to find a > > hack and I'd rather not do it at all then do it in PHP. > > As a code janitor, I'd rather you not do it

django get a wrong value after I change my Models.

2007-09-26 Thread jeff jie
hello.I am ran in truble.I change my Model,also database,but the query result is unchange.. my BlogEntry model is: class Entry(models.Model): title = models.CharField('title',maxlength=100) content = models.TextField('content') catelog =

Re: Add field in models django 0.96

2007-09-26 Thread Xan
Thanks, what the equivalent in mysql? Meanwhile, I think I will try patch to 0.96 found in http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation Thanks another time, Xan. On Sep 26, 12:27 am, Joe <[EMAIL PROTECTED]> wrote: > The easiest way to to this is look at the create table SQL

Re: Making Django Easier For New Users

2007-09-26 Thread staff-gmail
Russell Keith-Magee wrote: > On 9/25/07, staff-gmail <[EMAIL PROTECTED]> wrote: > >> Just some perspectives from a new user starting to use Django from Rails >> and PHP. I really like the organization of Django (great job guys). >> But due to some of the newness, here are some lack of

Re: disguising a django app as php?

2007-09-26 Thread r
On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote: > I am just trying to find a > hack and I'd rather not do it at all then do it in PHP. As a code janitor, I'd rather you not do it at all if you're going to float a hack downstream... Look at code igniter, it's a handy framework. There's a

custom sql portability

2007-09-26 Thread Filipe Correia
Hi, I'm using some custom sql which isn't probably very portable across SGBDs. I'm wondering, what strategies do django users recommend to keep an app portable, even if custom sql is absolutely needed. any pointers? thanks, Filipe Correia --~--~-~--~~~---~--~~

Re: disguising a django app as php?

2007-09-26 Thread omat
:)) it is ok for the client to tell "what", but mostly not "how". it is like wanting a package to be delivered but also force it to be delivered on foot. i am seeking a solution that will save me from being "completely lying", even with 1% ... On 26 Eylül, 16:37, "Matt Davies" <[EMAIL

Re: url config problem

2007-09-26 Thread swati
I have configured httpd.conf, you can look at it at http://82.165.180.35:8088/djproject/ I can see the first django page. Could not run any application when I try to do that by editing urls.py file. Thanks, Swati On Sep 26, 1:27 pm, Dushyant Sharma <[EMAIL PROTECTED]> wrote: > i think you have

weird "can't adapt" error

2007-09-26 Thread Sandro Dentella
Hi, I'm meeting a weird problem in a django application. It works w/o any problem from my pc connecting remotely to my customer's apache but is not working inside the lan. I'm connecting from firefox/ubuntu they're connecting from firefox/XP. the weird part is that: 1. they

Re: disguising a django app as php?

2007-09-26 Thread Matt Davies
I like ridiculous, and this certainly is. web2.5 is approaching, it's all about developers telling the clients what it is they want not the other way around oMat, as you'll be completely lying to them anyway, why not show them a totally different php site? they wont know the difference On

Re: Making Django Easier For New Users

2007-09-26 Thread Russell Keith-Magee
On 9/25/07, staff-gmail <[EMAIL PROTECTED]> wrote: > > Just some perspectives from a new user starting to use Django from Rails > and PHP. I really like the organization of Django (great job guys). > But due to some of the newness, here are some lack of examples that > still make Django kind of

Re: How to use SplitDateTimeWidget (getting TypeError)

2007-09-26 Thread Will
On Sep 25, 1:15 pm, Kyle Fox <[EMAIL PROTECTED]> wrote: > I'm trying to use a SplitDateTimeWidget for a forms.DateTimeField > field, but keep getting TypeError: "expected string or buffer" > > The traceback leads to `strptime.py`, which has `found = > format_regex.match(data_string) `. The local

Validation after form.save(commit=False) - newforms

2007-09-26 Thread Paddy Joy
Is there a way I can validate form data after doing form.save(commit=False)? I am using (commit=False) because I want to set the model ForeignKey after the data has been posted, for example here is my view: def domain_dnsrecords(request, domain_id): DNSRecordForm =

Patch for 'mysql_old' users... (unicode error)

2007-09-26 Thread Jens Diemer
On my SharedWebspace i have only a old MySQLdb version (v1.2.1g2) :( So i must use mysql_old and i trapped into unicode errors. The Problem is: The database results are not unicode. There exists a ticket: http://code.djangoproject.com/ticket/4741 In this combination there is probably a problem

Re: Starting up with django

2007-09-26 Thread [EMAIL PROTECTED]
Thank you for fast response... What I mean in 2. was for databrowse with some editable columns. My software is for school management, is a distributed software that let administrative, students and teachers interact with each other. It tracks all the classes, grades... For example it is very

Re: disguising a django app as php?

2007-09-26 Thread omat
Thanks for the replies. I want to be able to show some PHP code. Maybe just one function that maps every request to Django. This way I can say something like "Here is your PHP (although, only one wrapper function), and it uses a library called Django written in Python, just like the image

Great deals on Laptop computers

2007-09-26 Thread John Travolta
Find cheap laptop http://cheaphardware.blogspot.com/ --~--~-~--~~~---~--~~ 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

Re: disguising a django app as php?

2007-09-26 Thread Kenneth Gonsalves
On 26-Sep-07, at 5:43 PM, omat wrote: > I know this is stupid, but it is theirs. I am just trying to find a > hack and I'd rather not do it at all then do it in PHP. you can make your urls look like php urls -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: disguising a django app as php?

2007-09-26 Thread Jarek Zgoda
omat napisał(a): > A client requires a web application to be developed in php. Although I > convinced the technical staff for using Django, management of that > highly bureaucratic organization did not show any flexibility. > > Then I had a stupid idea. PHP is a mechanism to wrap libraries

disguising a django app as php?

2007-09-26 Thread omat
A client requires a web application to be developed in php. Although I convinced the technical staff for using Django, management of that highly bureaucratic organization did not show any flexibility. Then I had a stupid idea. PHP is a mechanism to wrap libraries written in different languages.

cool!!

2007-09-26 Thread [EMAIL PROTECTED]
http://www.fav.co.il/index.php?dir=app_misc=homepage=2012 --~--~-~--~~~---~--~~ 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

Re: Starting up with django

2007-09-26 Thread Thomas Guettler
Am Mittwoch, 26. September 2007 12:09 schrieb [EMAIL PROTECTED]: > I'm a completely new user, I've a lot of experience in Delphi, C++ > programming, and some on Python, but now I 've the challenge to conver > entirely an application from Delphi to web. The application has in the > magnitude of

Starting up with django

2007-09-26 Thread [EMAIL PROTECTED]
I'm a completely new user, I've a lot of experience in Delphi, C++ programming, and some on Python, but now I 've the challenge to conver entirely an application from Delphi to web. The application has in the magnitude of 1000 tables. I'm evaluating Django and TurboGears. I've a few initial

Re: Permission denied

2007-09-26 Thread Henning Hraban Ramm
2007/9/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I'm getting this error and don't understand why: > Error: Unable to execute port: ln: /opt/local/var/macports/sources/ > rsync.macports.org/release/ports/python/py-psycopg2/work: Permission > denied That's obviously a Mac ports / Darwin ports

Re: GoFlow: a workflow engine for django, available now as a django contrib

2007-09-26 Thread Henning Hraban Ramm
2007/9/25, Michael Radziej <[EMAIL PROTECTED]>: > > You can here dowload the workflow engine contrib; a demo django > > project is included > > http://django-goflow-en.blogspot.com/ > Oops, French-- > It would be very nice to have an English description, at least a short > description. I can read

DB API - filter/exclude bug ?

2007-09-26 Thread gilles . bassiere
Hi folks! Is this possible ? In [2]: Place.objects.filter(usual_users__id=1) Out[2]: [, , ] In [3]: Place.objects.exclude(usual_users__id=1) Out[3]: [, ] AFAIU, exclude() generates an SQL clause like '... where not()' whereas filter() generates '... where '. So my object '' can't

Re: url config problem

2007-09-26 Thread Dushyant Sharma
i think you have not configured httpd.conf and this is why apache can not identify the request. read this page http://www.djangoproject.com/documentation/modpython/ also make entry in httpd.conf LoadModule python_module /usr/local/apache2/modules/mod_python.so (for linux) for windows use your

Re: multithreading in web request

2007-09-26 Thread Derek Anderson
> Are there any restrictions on multithreading with mod_python or just > regular multithreading code will work. yep. and regular multithreading code will work. no special setup. (i do it myself) Adrian-Bogdan Andreias wrote: > Hi, > > This is a rather python on web question then a

Re: django_comment_utils broken since #6399

2007-09-26 Thread Michael
On Sep 26, 5:22 pm, Michael <[EMAIL PROTECTED]> wrote: > Just a note for anyone using django_comment_utils: > > As far as I can tell, the current svn checkout of django_comment_utils > template tag get_public_comment_count isn't compatible with django-svn > since revision 6399, in particular,

django_comment_utils broken since #6399

2007-09-26 Thread Michael
Just a note for anyone using django_comment_utils: As far as I can tell, the current svn checkout of django_comment_utils template tag get_public_comment_count isn't compatible with django-svn since revision 6399, in particular, this change:

Re: Two newform best practice questions

2007-09-26 Thread Przemek Gawronski
> Try this: >f1 = Form1(request.POST, prefix='form1') >f2 = Form2(request.POST, prefix='form2') > That should solve your problem. The prefix argument is prepended to > every field name in the html, thus preventing name clashes between > forms. That should be in the 0.96 release. No docs

Re: Two newform best practice questions

2007-09-26 Thread Joseph Kocherhans
On 9/26/07, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > > I'm using several forms (newforms) to build one html form. One thing to > watch out for is common field names in your django form classes. So if > you have two django forms and they both have a field 'date' for example, > then handling

Re: Two newform best practice questions

2007-09-26 Thread Przemek Gawronski
> Use form_for_model or form_for_instance using the fields argument. Make > one form object for each model with the field subset you'd like to use. > There's nothing stopping you from using several form objects in the same > html form. Just remember to validate them all. I'm using several forms

Permission denied

2007-09-26 Thread [EMAIL PROTECTED]
Hey everyone, I'm getting this error and don't understand why: Error: Unable to execute port: ln: /opt/local/var/macports/sources/ rsync.macports.org/release/ports/python/py-psycopg2/work: Permission denied Thanks, J --~--~-~--~~~---~--~~ You received this