Re: Speed of search question

2011-07-06 Thread Benedict Verheyen
On 6/07/2011 12:28, Malcolm Box wrote: > I think this should work: > > Calendar.objects.filter(appointment__owner = request.user) > > Try it and see. > > Malcolm > Thanks, I'll see if I can make a test script to test this. It's actually a good idea to put in a performance test of some sorts.

Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
You hit the nail on the head. The command import django executed in the Python interpreter. Getting started seems like a giant uphill battle, but fortunately I am quite determined. It also helps to have helpful people like you supporting my learning. Thanks again! -Ed On Jul 6, 2:44 pm, And

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 9:40 AM, Roberto De Ioris wrote: > http://cloudsilverlining.org/ > This looks more like a deployment configuration script than compiling into a binary. I would be very much interested in the latter. Thanks for sharing though. -V -- You received this message because you

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Roberto De Ioris
Il giorno 06/lug/2011, alle ore 21.03, Cal Leeming [Simplicity Media Ltd] ha scritto: > Hi all, > > After seeing the Facebook video about how their development team > compiles everything into a single binary for easy distribution between > thousands of servers, I totally fell in love with the i

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
I am doing some bechmarking on the performance of both the versions of the query: 1. Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_list('org')) and 2. Items.objects.extra(where=['created_by_id in (select e.user_id from myapp_employees e, myapp_organization o where

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread CareerDhaba tech
Stack Overflow: http://stackoverflow.com On Thu, Jul 7, 2011 at 9:00 AM, Kenneth Gonsalves wrote: > On Thu, 2011-07-07 at 00:10 +0100, Cal Leeming [Simplicity Media Ltd] > wrote: > > I'm going to ask a really stupid question... > > > > What's "SO"? > > I was just going to ask that. > -- > regard

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Kenneth Gonsalves
On Thu, 2011-07-07 at 00:10 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > I'm going to ask a really stupid question... > > What's "SO"? I was just going to ask that. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message b

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Kenneth Gonsalves
On Wed, 2011-07-06 at 19:55 -0300, Andre Terra wrote: > IRC is too outdated actually it is highly effective - cannot count the number of deadlines I would have missed but for IRC. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this me

Django Knowledge Strorehouse

2011-07-06 Thread Venkatraman S
Hi All, Probably i am jumping the gun, but i am very much ready to volunteer to develop and host a django article repository. The repository would be HIGHLY curated and store extremely useful articles and snippets. We already have djangosnippets - so was wondering if we can index this and use it

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 8:17 AM, Venkatraman S wrote: > I would recommend having a repository of django articles which can be > searched upon easily with good features added to it (for eg facets etc) - > ideally if this is hosted at djangoproject - then it would be ideal. > And IRC has a bot whic

Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Hi André, Thanks for the feedback. Here is the relevant code: registration_form view: http://dpaste.com/564165/ my views.py file directly from the django_registration app code: http://dpaste.com/564166/ Here is my form class: http://dpaste.com/564167/ - Harshil On Thu, Jul 7, 2011 at 3:52

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 1:43 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > I've created a place holder on Github for this. > > Unsure what to call it yet, so it's temporary name is Jennifer. > > https://github.com/foxx/jennifer > > Future name suggestions a

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Andy McKay
On 2011-07-06, at 3:55 PM, Andre Terra wrote: > This is precisely the problem, imo. IRC is too outdated, and the folks IRC may be outdated yet it persists as a completely awesome chat tool used by tons of developers every day. No disrespect to Convore or Stack Overflow, but one day when they ar

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:17 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Tbh, it would be easy enough to create a web front end, similar to SO, > which uses django-users archive as a backend. Sure it'd be read only to > begin with.. and im not sure how yo

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Tbh, it would be easy enough to create a web front end, similar to SO, which uses django-users archive as a backend. Sure it'd be read only to begin with.. and im not sure how you'd handle quoted / inline messages.. but food for thought at least. On 7 Jul 2011 00:38, "Andre Terra" wrote: > I'm wil

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Andre Terra
I'm willing to bet 80% of the emails are newbie questions, and the remaining 20% are group communication and collaboration, specially considering how the more experienced developers are pretty much only on convore.com these days. If we could move the questions to a specific site, everyone would be

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Ahh, makes sense. Stack Overflow specifically for Django would be kick ass. If the core web team aren't happy about hosting one, there is no reason why the community can't fork one off, and have it endorsed on the wiki and in the mailing list replies?? On Thu, Jul 7, 2011 at 12:12 AM, Petite Ab

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Petite Abeille
On Jul 7, 2011, at 1:10 AM, Cal Leeming [Simplicity Media Ltd] wrote: > I'm going to ask a really stupid question... > > What's "SO"? WIld guess... stack overflow? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
I'm going to ask a really stupid question... What's "SO"? On Wed, Jul 6, 2011 at 11:55 PM, Andre Terra wrote: > Don't forget SO! > > This is precisely the problem, imo. IRC is too outdated, and the folks > who built convore seem to agree there is room for improvement. And the > number of emails

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Javier Guerra Giraldez
On Wed, Jul 6, 2011 at 5:55 PM, Andre Terra wrote: > Maybe it's just a matter of endorsing SO more adamantly. When compared > to the other solution, none is as flexible and complete. newbie questions is one thing, collaboration is another, group communications is another one. for the first one,

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Andre Terra
Don't forget SO! This is precisely the problem, imo. IRC is too outdated, and the folks who built convore seem to agree there is room for improvement. And the number of emails on this list is unmanageable without a specialized tool, not to mention the fact that we answer the same questions repeate

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jul 6, 2011 at 10:35 PM, Andre Terra wrote: > It happens to the best of us... > > I still believe we could offer a better solution than a simple mailing list, > specially considering the possibility of moderating messages and closing > open questions. Any suggestions?? We already have mai

Re: Generic ModelAdmin class

2011-07-06 Thread Andre Terra
And if you were planning on hard coding a mapping of your model classes, use get_model() instead. www.b-list.org/weblog/2007/nov/03/working-models/ Cheers, Andre Terra On 7/6/11, gontran wrote: > >> Do you mean, "in a ModelAdmin subclass instance, how do I get the >> model class that instance

Re: Issue with saving user information during django_registration

2011-07-06 Thread Andre Terra
Start by pasting relevant code. Views, forms and possibly the backend logic. Use dpaste.com And quit bumping or you'll never get an answer, not from most of us. Regards, André Terra On 7/6/11, CareerDhaba tech wrote: > Bumping once more. Can anyone shine some light on this issue? Would be > ext

Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread Michał Sawicz
Dnia 2011-07-06, śro o godzinie 14:40 -0700, galgal pisze: > Full code: > class UserProfileAdmin(UserAdmin): > inlines = [UserProfileInline,] > list_filter = ('userprofile__type','userprofile__cities',) > search_fields = ['userprofile__type', 'username', > 'userprofile__cities__name', '

Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Andre Terra
Hello, Ed A few tips to get you going on the right track: 1) If *Python can't find Django*, it's because it's *not on your PYTHONPATH*. If you have multiple Python installs, it gets even more complex as *> manage.py* can yield different results from* > python manage.py*, depending on how your fi

Odp: Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread galgal
Environment: Request Method: GET Request URL: http://localhost:8000/admin/auth/user/2/ Django Version: 1.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'djan

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Andre Terra
It happens to the best of us... I still believe we could offer a better solution than a simple mailing list, specially considering the possibility of moderating messages and closing open questions. Cheers, André On Wed, Jul 6, 2011 at 5:55 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@si

Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread Michał Sawicz
Dnia 2011-07-06, śro o godzinie 13:16 -0700, galgal pisze: > Any idea how to overwrite it dynamically? > def get_form(self, request, obj=None, **kwargs): > self.exclude = ('user_permissions',) > return super(UserProfileAdmin, self).get_form(request, > obj=None, **kwargs) > Throws: >

Re: Vs: how to override a ModelChoiceField in order to add FKs directly in a TextInput?

2011-07-06 Thread snfctech
Hi, Martin. Thanks for your reply. I wound up using IntigerFields and getting around the "relation must be an instance" error by adding clean methods that returned instances, e.g. def clean_myfield(self): data = self.cleaned_data['myfield'] data = MyRelatedClass.objects.

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
So, I think I may have to add one of my own threads into the "bad threads" example: http://groups.google.com/group/django-developers/browse_thread/thread/3173871a08585c54?hl=en :( On Thu, Jun 30, 2011 at 10:04 PM, Cal Leeming [Simplicity Media Ltd] wrote: > @gamesbook / @Shawn > Looks good! > +

Re: Thread lifetime in Django/Apache environment

2011-07-06 Thread bruno desthuilliers
On 6 juil, 21:12, John wrote: > In my application I need to be able to overlap some processing, > collecting summary information from the database between HTTP > requests.  If I start a thread and then return a HTTP response I > presume that the process that was serving the request will continue >

Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
This is the error I get when trying to install Django: error: could not create 'C:\Program Files\Python\Lib\site-packages \django': Access is denied Python 2.7 is installed. I tried manually copy the django site-packages folder and while the folder copies ok, django will still not run in python

Odp: Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread galgal
Any idea how to overwrite it dynamically? def get_form(self, request, obj=None, **kwargs): self.exclude = ('user_permissions',) return super(UserProfileAdmin, self).get_form(request, obj=None, **kwargs) Throws: TemplateSyntaxError at /admin/auth/user/2/ Caught KeyError while rende

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
I've created a place holder on Github for this. Unsure what to call it yet, so it's temporary name is Jennifer. https://github.com/foxx/jennifer Future name suggestions are very much welcome lol. Cal On Wed, Jul 6, 2011 at 8:46 PM, Brian Bouterse wrote: > I write a lot of automation on RHEL /

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Brian Bouterse
I write a lot of automation on RHEL / CentOS systems and would like to see the built process to look at potentially porting it. Let me know how I can follow the development. Brian On Wed, Jul 6, 2011 at 3:29 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: >

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jul 6, 2011 at 8:15 PM, Shawn Milochik wrote: > It definitely sounds interesting. I'd like to hear more about it as it > develops. The only quibble I'd add is to not limit it to Ubuntu. I use > and love Ubuntu, but I suspect that a lot of people who would want the > ability to obfuscate co

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
(sorry for the double post - should have included this in the original thread) http://www.facebook.com/video/video.php?v=10100259101684977 It's *well* worth watching though.. Put an hour aside, make a cup of tea etc :) Cal On Wed, Jul 6, 2011 at 8:18 PM, Brian Bouterse wrote: > What is "the Fa

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jul 6, 2011 at 8:14 PM, Thomas Weholt wrote: > Anything that can make django/python-based webapps easier to deploy is > interesting. That's been the huge thing for all my PHP-friends; the > ease of deployment. Now if we had something similar for django/python > ... it would rock! :-) Used

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Brian Bouterse
What is "the Facebook video" you speak of? I didn't see it. On Wed, Jul 6, 2011 at 3:03 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > > After seeing the Facebook video about how their development team > compiles everything into a single binary

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Shawn Milochik
It definitely sounds interesting. I'd like to hear more about it as it develops. The only quibble I'd add is to not limit it to Ubuntu. I use and love Ubuntu, but I suspect that a lot of people who would want the ability to obfuscate code and deploy easily to client servers would be using RHEL or C

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Thomas Weholt
Anything that can make django/python-based webapps easier to deploy is interesting. That's been the huge thing for all my PHP-friends; the ease of deployment. Now if we had something similar for django/python ... it would rock! :-) Used java for some years and war-files worked ok as well. And isn'

Thread lifetime in Django/Apache environment

2011-07-06 Thread John
In my application I need to be able to overlap some processing, collecting summary information from the database between HTTP requests. If I start a thread and then return a HTTP response I presume that the process that was serving the request will continue until the thread completes. This makes i

Re: download-list app

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Hi Gour, Can you please read the following article before posting again on the mailing list. https://code.djangoproject.com/wiki/UsingTheMailingList Thanks Cal On Wed, Jul 6, 2011 at 8:04 PM, Gour-Gadadhara Dasa wrote: > On Wed, 6 Jul 2011 10:19:55 -0700 (PDT) > francescortiz wrote: > >> I d

Re: download-list app

2011-07-06 Thread Gour-Gadadhara Dasa
On Wed, 6 Jul 2011 10:19:55 -0700 (PDT) francescortiz wrote: > I don't want to be rude, but your question is so bague that I think > that you should start by reading some python and django books/ > documentation. Ahh...my mistake for not explaining better. Here is the demo: http://demo.smartwe

Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, After seeing the Facebook video about how their development team compiles everything into a single binary for easy distribution between thousands of servers, I totally fell in love with the idea. Although their approach is to compile PHP into C, the same principle applies. The end result

Re: ANN : Kolibri v.0.2.0 - framework for background processing built on celery

2011-07-06 Thread Andre Terra
Hi, Thomas I may have said this before, but this sounds absolutely amazing. Together with DSE, you have built two great apps that I'm looking forward to use in production. Thanks a lot and keep up the good work! Cheers, André Terra (airstrike) On Wed, Jul 6, 2011 at 3:53 PM, Thomas Weholt wro

ANN : Kolibri v.0.2.0 - framework for background processing built on celery

2011-07-06 Thread Thomas Weholt
Just released Kolibri v.0.2.0 - NB! alpha/proof-of-concept status. pypi entry http://pypi.python.org/pypi/Kolibri/0.2.0a source at https://bitbucket.org/weholt/django-kolibri Modified BSD license. What is it? A framework for creating background processes and workflows using celery. Now with the o

Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Bumping once more. Can anyone shine some light on this issue? Would be extremely helpful. On Wed, Jul 6, 2011 at 6:24 PM, CareerDhaba tech wrote: > Bump - anyone has any insight into this? > > I am happy to post my code, just not sure where I am going wrong. > > On Wed, Jul 6, 2011 at 2:35 PM, C

Re: Looking for recomendation on using popup like admin "+" widget

2011-07-06 Thread GKR
Thanks Peter -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/018S1QL0-qMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscrib

Re: download-list app

2011-07-06 Thread francescortiz
I don't want to be rude, but your question is so bague that I think that you should start by reading some python and django books/ documentation. On Jul 6, 11:44 am, Gour-Gadadhara Dasa wrote: > Hello! > > I'm starting with Django trying to migrate all my sites from PHP apps to > Django > apps..

Re: Django vs Sproutcore

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 10:06 PM, Graeck wrote: > On Jul 6, 9:21 am, Shawn Milochik wrote: > > My limited understanding of Sproutcore is that it isn't an alternative > > to a Web framework, but more a way to create pretty front ends for > > your Web applications. > > Ok, so sounds like Sproutcore

Re: Django vs Sproutcore

2011-07-06 Thread Graeck
On Jul 6, 9:21 am, Shawn Milochik wrote: > My limited understanding of Sproutcore is that it isn't an alternative > to a Web framework, but more a way to create pretty front ends for > your Web applications. Ok, so sounds like Sproutcore wouldn't actually replace Django. I just started reading ab

Re: Django vs Sproutcore

2011-07-06 Thread Javier Guerra Giraldez
On Wed, Jul 6, 2011 at 11:05 AM, Graeck wrote: > some "if you app needs to do A, then Django is better" type > stuff? what about this one: "if you app needs to work on the server, then Django is better" -- Javier -- You received this message because you are subscribed to the Google Groups "D

Re: Django vs Sproutcore

2011-07-06 Thread Shawn Milochik
I think that if your app needs to have data then you need server-side validation. My limited understanding of Sproutcore is that it isn't an alternative to a Web framework, but more a way to create pretty front ends for your Web applications. So instead of writing a lot of jQuery and AJAX and thi

Django vs Sproutcore

2011-07-06 Thread Graeck
We've been looking at Django for a new web app project, but Sproutcore seems to be pretty nice as well. I like the idea of a client side mvc. I was wondering for anyone familiar with both. What are the advantages of Django over a client side mvc like Sproutcore? We know python and javascript, so

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
You can download the code here: http://77.43.75.110/temp/cinquestelle.tar.gz you need sorl as dependencies too: http://pypi.python.org/pypi/sorl-thumbnail/3.2.5 On 6 Lug, 15:57, Björn Lindqvist wrote: > 2011/7/6 drakkan : > > > Bruno, I'm talking about an high level framework such as play (ht

Re: Generic ModelAdmin class

2011-07-06 Thread gontran
> Do you mean, "in a ModelAdmin subclass instance, how do I get the > model class that instance is associated with?"? If so, self.model. Yes I do. Thank you Tom. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 8:09 PM, Marc Aymerich wrote: > I swear this time it will work! > > Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_list('org')) > > I cried on seeing this ;) Thanks a tonne. Guess this will go into the django hall of fame! But i have a Q :

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Marc Aymerich
On Wed, Jul 6, 2011 at 2:46 PM, Venkatraman S wrote: > > > On Wed, Jul 6, 2011 at 2:10 PM, Marc Aymerich wrote: >> >> This one should work: >> Items.objects.filters(created_by__employee__org=A.org) > > Nope. Emp has a FK for User, not the other way round. I swear this time it will work! Item.obj

Re: Generic ModelAdmin class

2011-07-06 Thread Tom Evans
On Wed, Jul 6, 2011 at 3:22 PM, gontran wrote: > Hello everyone, > > I have an abstract class that defines a base Model. > Given the fact that the extended models are quite identical, in order > to administrate these models, I use a generic ModelAdmin class. > > To sum up: > > class BaseClass(mode

Generic ModelAdmin class

2011-07-06 Thread gontran
Hello everyone, I have an abstract class that defines a base Model. Given the fact that the extended models are quite identical, in order to administrate these models, I use a generic ModelAdmin class. To sum up: class BaseClass(models.model): ...some fields... class Meta: abstra

Re: django/python performance vs play/java

2011-07-06 Thread Björn Lindqvist
2011/7/6 drakkan : > Bruno, I'm talking about an high level framework such as play (http:// > www.playframework.org/). Develop an application with play is as simple > as a django one, until now I used django and I like python more than > java and I want to understand if I'm doing something wrong or

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Tom Evans
On Wed, Jul 6, 2011 at 2:40 PM, akaariai wrote: > Maybe this? > > user = current_user > user_org_employees = Employees.objects.filter(org=user.org) > user_org_items = > Items.objects.filter(created_by__in=user_org_employees) > No, users can belong to multiple organizations, so no using user.org.

Re: django/python performance vs play/java

2011-07-06 Thread akaariai
On Jul 6, 4:33 pm, drakkan wrote: > using pgpool I get a 2,5x performance improvement thanks! I'll try on > intel atom again to see if there I have more improvements The best way to check where your performance problems come from is using profiling. In my experience, the most likely things to ca

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread akaariai
On Jul 5, 10:06 pm, Venkatraman S wrote: > I tried asking around in IRC, and stumbled on a few possible solutions, > would be great if someone shed some more light: > > I have the following models: > > class Organization(models.Model): >   name                = models.CharField(max_length=100, bla

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
On 6 Lug, 14:03, akaariai wrote: > On Jul 5, 10:54 pm, drakkan wrote: > > > so play is outperforming django! obviously django is not in debug mode > > ecc..., is there something wrong in my test setup (I already tried to > > adjust the uwsgi launch line I tryed more process or 1 process with > >

Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Bump - anyone has any insight into this? I am happy to post my code, just not sure where I am going wrong. On Wed, Jul 6, 2011 at 2:35 PM, CareerDhaba tech wrote: > Hey folks, > > Django newbie here and I need some help. I am using django_registration > v0.8 and using the docs here: > http://rea

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Venkatraman S
On Wed, Jul 6, 2011 at 2:10 PM, Marc Aymerich wrote: > This one should work: > Items.objects.filters(created_by__employee__org=A.org) > Nope. Emp has a FK for User, not the other way round. -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: django/python performance vs play/java

2011-07-06 Thread Shamail Tayyab
Pretty interesting.. So, I've an idea here.. Why don't you log this output in some file.. (and share) def page (request): start = time.time() # function definition elapsed = (time.time() - start) return HttpResponse() This way, see if its the framework that's taking the time, or its

Re: django/python performance vs play/java

2011-07-06 Thread akaariai
On Jul 5, 10:54 pm, drakkan wrote: > so play is outperforming django! obviously django is not in debug mode > ecc..., is there something wrong in my test setup (I already tried to > adjust the uwsgi launch line I tryed more process or 1 process with > threads ecc with no relevant improvement) or d

Re: django/python performance vs play/java

2011-07-06 Thread Uros Trebec
Hi, Have you tried any kind of DB connection pooling with Django? I find Jacob's Deployment Workshop [0] to be a treasure chest of tips and tricks for Django deployment. Also take a look at the code/config he uses [1]. [0] http://ontwik.com/python/django-deployment-workshop-by-jacob-kaplan-moss/

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
On 6 Lug, 12:46, Thomas Guettler wrote: > Hi, > > I would choose the framework, that you like. You can optimize later. And > this would be the same for all frameworks: You need a good cache strategy. > > Are you expecting several hundred requests per minute? > > I guess there is something wrong

Re: Flatpages do not work

2011-07-06 Thread Paul van der Vlis
Op 06-07-11 12:21, CareerDhaba tech schreef: > Hi Paul, > > As described in the error, Django couldn't find the url test/ in the > URLconf because its not there. > > Go to the urls.py of your app and add the appropriate link, and view to > the URLconf. > > Go through this link, it should be help

Re: ImportError: No module named sh_csv_importer

2011-07-06 Thread Shawn Milochik
If you can't find it then search the server where the application is/was running. It's likely a module that the previous developer wrote themselves. It's even possible that you have it already in the codebase, but that you'll have to edit your PYTHONPATH setting so Python will import it. If all el

Re: django/python performance vs play/java

2011-07-06 Thread Thomas Guettler
Hi, I would choose the framework, that you like. You can optimize later. And this would be the same for all frameworks: You need a good cache strategy. Are you expecting several hundred requests per minute? I guess there is something wrong with your benchmark. I don't think django/python is muc

Re: Speed of search question

2011-07-06 Thread Malcolm Box
On 6 July 2011 08:17, Benedict Verheyen wrote: > > I have these models (not really but it's to explain my question :)) > > class Calendar(models.Model): >name = models.CharField(max_length=60) >description = models.TextField(blank=True) >appointment = models.ManyToManyField(Appointmen

Re: Questions on markdown

2011-07-06 Thread Benoit Perdu - TransMékong
Leo, If you want to wrap without the end of a paragraph, you should end your lines with 2 or more spaces then do a single new line. This is as per the standard Markdown behaviour. Also, make sure you parse all the text you need parsed in one go, not line by line. All the best Benoit On 11-07-

Re: ANN: django-iadmin

2011-07-06 Thread Björn Lindqvist
2011/7/4 sax : > Django iAdmin > > iAdmin is a replacement of standard django admin application. It is more of an extension of the standard django admin, rather than a replacement, isn't it? There are certain limitations in admin that are hard to work around such as different permission levels for

ImportError: No module named sh_csv_importer

2011-07-06 Thread prabesh shrestha
I am trying to run a project in Django that was coded 3-4 years before. I have installed most of the modules required by the project but could not locate one of the module required to run the project. I am getting ImportError: No module named sh_csv_importer I have tried to search it , installed it

[ANN] Onion HTTP server C library 0.4.0

2011-07-06 Thread David Moreno Montero
Coralbits is proud to announce the inmediate availability of Onion 0.4.0. Onion is a lightweight library that provides HTTP server functionality to embed on your projects. It has some ideas borrowed from Django, and tries to have a future proof API. Key features of onion 0.4.0 -

Re: Flatpages do not work

2011-07-06 Thread CareerDhaba tech
Hi Paul, As described in the error, Django couldn't find the url test/ in the URLconf because its not there. Go to the urls.py of your app and add the appropriate link, and view to the URLconf. Go through this link, it should be helpful - https://docs.djangoproject.com/en/1.3/topics/http/urls/

Re: Dreamhost Virtualenv Question

2011-07-06 Thread DrBloodmoney
On Wed, Jul 6, 2011 at 3:31 AM, i...@webbricks.co.uk wrote: > oh yeah > http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/ > > that page is my goto reference on building a virtualenv, you might > have already found it, but if not... > > On Jul 5, 10:28 pm, Jeremy wrote:

Flatpages do not work

2011-07-06 Thread Paul van der Vlis
Hallo! I am a real beginner in Django, I try to install a new chat application called HelpIM, you will not know it. My problem is that the flatpages do not work. I can create a flatpage in the admin-interface, but when I go to it, I always see a "page not found" message from HelpIM: https://testc

Re: change values in "select list"

2011-07-06 Thread Malcolm Box
On 6 July 2011 09:48, Geoff Kuenning wrote: > > And in any case, this forum would be greatly improved if the general > snarkiness herein departed for Antarctica and never returned. > > Hear, hear! (For non-native speakers, that means "I agree"). The Django-users list has always been distinguishe

Re: Help How to append or join db.StringProperty(required=True) + string or global variable

2011-07-06 Thread ddghl
yeh yeh a moment ago I realized that this is a google engines as well also thanks :working: -- View this message in context: http://old.nabble.com/Help-How-to-append-or-join--db.StringProperty%28required%3DTrue%29-%2B-string-or-global-variable-tp31996850p32003633.html Sent from the django

download-list app

2011-07-06 Thread Gour-Gadadhara Dasa
Hello! I'm starting with Django trying to migrate all my sites from PHP apps to Django apps... I'd like to have Download page to display list of available (mp3) files for download: Filename | Size | Number of downloads | Last updated Is there some django apps providing similar functionality a

Re: django/python performance vs play/java

2011-07-06 Thread bruno desthuilliers
On Jul 6, 10:35 am, drakkan wrote: > Bruno, I'm talking about an high level framework such as play > (http://www.playframework.org/). > Develop an application with play is as simple as a django one, The framework might be fine (I'll give the doc a read), but the language still sucks ;) But anyw

Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Hey folks, Django newbie here and I need some help. I am using django_registration v0.8 and using the docs here: http://readthedocs.org/docs/django-registration/en/latest/index.html I have successfully installed the app, and I am using the default backend for my registration purposes. I have tes

Re: change values in "select list"

2011-07-06 Thread Geoff Kuenning
On Jul 6, 2:03 am, Tom Evans wrote: > On Tue, Jul 5, 2011 at 12:53 PM, Geoff Kuenning wrote: > > > On Jul 4, 11:10 pm, Tom Evans wrote: > > >> All of this is explained in the docs. Read the docs. > > > He did; he said he did in his previous posting.  But although the docs > > are far better th

Re: Complex Query help - get items from the org to which the user belongs

2011-07-06 Thread Marc Aymerich
On Wed, Jul 6, 2011 at 4:46 AM, Venkatraman S wrote: > > On Wed, Jul 6, 2011 at 2:26 AM, Marc Aymerich wrote: > >> Say there are 3 Users in an org : A, B and C with each creating 3,4,5 >> items respectively, and 'A' is the current user; then i need a query which >> returns all these items(i.e, 1

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
On 5 Lug, 22:57, bruno desthuilliers wrote: > On 5 juil, 21:54, drakkan wrote: > > (snip) > > > or django/python is simply much slower than java? > > According to most benchmarks, Python (that is: current canonical > implementation of...) is indeed way "slower" than Java (idem), that's > a fact

Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread Michał Sawicz
Dnia 2011-07-06, śro o godzinie 00:31 -0700, galgal pisze: > Ok but like I said in previous post, exclude = ('groups',) etc doesn't > work :/ It does, you just need to override both exclude / fields _and_ fieldsets. The exception you've mentioned resulted from the fact that you've excluded the f

Re: Dreamhost Virtualenv Question

2011-07-06 Thread i...@webbricks.co.uk
Jeremy, there's a concept you need to understand to progress here. its on that took me while to properly understand, but which i think is natural to someone in a foss development role, which i hadn't previously been. the python path is the all important config item. it defines where python look s

Re: Dreamhost Virtualenv Question

2011-07-06 Thread i...@webbricks.co.uk
oh yeah http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/ that page is my goto reference on building a virtualenv, you might have already found it, but if not... On Jul 5, 10:28 pm, Jeremy wrote: > AHHH, that makes a little more sense.  I'm trying to install apps from

Odp: Re: Django admin - how to hide some fields in User edit?

2011-07-06 Thread galgal
Ok but like I said in previous post, exclude = ('groups',) etc doesn't work :/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/-exygvWEN9UJ. To post to thi

Speed of search question

2011-07-06 Thread Benedict Verheyen
Hi, I have these models (not really but it's to explain my question :)) class Calendar(models.Model): name = models.CharField(max_length=60) description = models.TextField(blank=True) appointment = models.ManyToManyField(Appointment, related_name='appointment_set') class Appointmen