Re: Open source Django websites

2011-07-02 Thread Kenneth Gonsalves
On Thu, 2011-06-30 at 22:57 +0200, Gerhard Hoogterp wrote: > Did you actually manage to get any of those sites to work? (and if > yes,which > one?) I have only tried mine. Try this one: https://bitbucket.org/lawgon/ipss/overview a small site, but up and running. -- regards KG http://lawgon.l

Re: Django AJAX polling: Best practice?

2011-07-02 Thread Shawn Milochik
On 07/01/2011 05:05 PM, Andreas Pfrengle wrote: Thanks so far for showing me that I was on the completely wrong track ;-) I found that there is really not much official information available about Hookbox:. That doesn't make an easy decision for Hookbox. Has anyone experienc

Re: create open office docs with django - best way to format text?

2011-07-02 Thread Andre Terra
This is a python question, really. Whether you are running a cli script or coding logic for your django form, the code will most likely use a python library to do the doc writing, much like xlwt is used for writing excel spreadsheets. Try not including django as a keyword for your google search.

Re: Problem with select_related

2011-07-02 Thread Matthew Gardner
Thanks for the suggestion, but I do that and I still see the same problem. This is pretty weird to me, because it seems like this should work, and I'm pretty sure I've done this in other projects and it worked just fine. I have no idea why it's not working now. On Sat, Jul 2, 2011 at 7:42 PM, Ja

Re: error on django-admin.py startproject

2011-07-02 Thread Andre Terra
As always, please post the full traceback. Do you get different results if you add/remove "python" to the start of the command? Cheers, André Terra On 7/2/11, Phil wrote: > Hi, > > I recently installed the latest development version of Django from > subversion. I followed all steps on site, go

Re: Implementing a User Search Feature

2011-07-02 Thread Andre Terra
You can use Alex Gaynor's great app called django-filter available at https://github.com/alex/django-filter It's the best app for the job, hands down. Sincerely, André Terra On 7/2/11, raj wrote: > Thanks, when I get back to my production comp, ill give this a try. > Did know about this query

Re: Problem with select_related

2011-07-02 Thread Javier Guerra Giraldez
On Sat, Jul 2, 2011 at 8:07 AM, Matthew Gardner wrote: > a = A.objects.get(pk=some_id) > b_set = a.b_set.select_related().all() # recommended in the Django > documentation for some queries > And b_set comes up empty, for some reason that I can't explain. a.b_set isn't a QuerySet; it's a Related

Re: Implementing a User Search Feature

2011-07-02 Thread Doug Ballance
**filters is python for expand the dict 'filters' into keyword arguments. ie filters={'foo':1} model.objects.filter(**filters) is the same as model.objects.filter(foo=1) The filters variable is just temporary dictionary for building the keyword arguments from the form data, electing to omit any

Re: error on django-admin.py startproject

2011-07-02 Thread Phil
Well I already have subversion installed, that's how I got django in the first place. When I type "import functools" into the python interpreter I get no errors back either. I can't make it out. On Jul 2, 7:31 pm, ravinder singh wrote: > @ >   plz try this >     sudo apt-get install subversion >

Re: error on django-admin.py startproject

2011-07-02 Thread ravinder singh
@ plz try this sudo apt-get install subversion than django-admin.py startproject mysite.ok -- 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 g

Re: Weird join conditions

2011-07-02 Thread peroksid
Thank you, Gianluca. Unfortunately, filter() has no direct impact on joins configuration and conditions described in filter() go to WHERE clause. When you refer another table it will be joined somehow but with only one equality expression in the condition. We were discussing join consitions here,

error on django-admin.py startproject

2011-07-02 Thread Phil
Hi, I recently installed the latest development version of Django from subversion. I followed all steps on site, got no errors. When I type "import django" in Python interpreter I get no errors. But when I try run "django-admin.py startproject mysite" I get the following error... "ImportError: N

Re: Weird join conditions

2011-07-02 Thread peroksid
I do not really get what you mean under reusable raw query factory. But object manager's method raw() returns RawQueryManager, which is pretty useless. When you first mentioned raw SQL I considered it and made method I write to get SQL query after all join() and extra() calls were done and return r

Re: Setting up EC2 for Django

2011-07-02 Thread Soviet
Yeah, I guess I did posted it with a bit of bitterness, since I couldn't find exactly what i was looking for :). I'll keep trying on my own! ty for help Cal :). On Jul 2, 7:02 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > Hi OP, > > Is this requirement for a client, or some sort of paid work

Re: Setting up EC2 for Django

2011-07-02 Thread ravinder singh
plz try it http://www.basicconfig.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 group, send email to django-users+unsubscr...@googlegroups.com. F

Re: Setting up EC2 for Django

2011-07-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi OP, Is this requirement for a client, or some sort of paid work? If so, quit the job and find something else. If this requirement is for your own learning, then do exact that, and figure these things out for yourself (django-users is not your personal tutor, but Google is). For example, would

Re: Implementing a User Search Feature

2011-07-02 Thread raj
Thanks, when I get back to my production comp, ill give this a try. Did know about this queryset thing. Thanks again. Just a quick question, the **filters thing u placed, i would put something like first_name last_name or something right? On Jun 30, 11:25 pm, Doug Ballance wrote: > If you just wa

csrf token not working

2011-07-02 Thread Bobby Roberts
I'm looking at the docs at https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ for CSRF implementation. I've got steps 1 and 2 done but the csrf token is not even showing in the form even though i have {%csrf_token %} within the form html any ideas what would cause it not to create a toke

Setting up EC2 for Django

2011-07-02 Thread Soviet
Hello I need to set up EC2 instance to run Django+Python+PostgreSQL+Apache +Solr+nginx+Mercurial etc. This is all black magic for me - I was only using shared hosting like webfaction, where everything is dumb- friendly :). But you know, "the customer is always right", and I have to run it on Amazon

Problem with select_related

2011-07-02 Thread Matthew Gardner
Hi all, I'm seeing some funny behavior when using select_related to try to speed up my code, and I'm wondering if I'm just misunderstanding something. The basics of my code: class A(models.Model): # some stuff class B(models.Model): a = models.ForeignKey('A') c = models.ForeignKey('

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-07-02 Thread Cal Leeming [Simplicity Media Ltd]
Oops, sorry guys, I pasted the wrong link. Here you go: https://spreadsheets0.google.com/spreadsheet/viewanalytics?formkey=dENyOVFSSkhSYnhBLVZGTktiN1Z3Y2c6MQ On Sat, Jul 2, 2011 at 11:35 AM, Cal Leeming [Simplicity Media Ltd] wrote: > Hi guys, > Alright, vote is closed and here are the results:

create open office docs with django - best way to format text?

2011-07-02 Thread andreas
Hi all, i am trying to generate open office docs (bulk letters) from my django app. I am using django-webodt (http://pypi.python.org/pypi/django-webodt) and basically it works really smooth. The only point i am unsure about is how to 'transfer' the text formatting from django to an odt doc. Curre

Re: Weird join conditions

2011-07-02 Thread Gianluca Sforna
On Thu, Jun 30, 2011 at 5:19 PM, peroksid wrote: > > I need to have for the "ON" expression slighlty more complex > expression, something like > "left_table.left_column=right_table.right_column AND > right_table.another_column=42". Method join() obviously  can not be > used for this purpose becau

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-07-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi guys, Alright, vote is closed and here are the results: https://spreadsheets.google.com/spreadsheet/gform?key=0AiciLOVZqDWqdENyOVFSSkhSYnhBLVZGTktiN1Z3Y2c&hl=en_GB&gridId=0#chart It looks like I might have to do two separate webcasts to cater for all timezones, but we'll see. I'll post up a

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

2011-07-02 Thread Cal Leeming [Simplicity Media Ltd]
+1 on Piotr's post. Although I do see the benefits of Andres's ideas, I do agree that some things really should be kept separate. Cal On Sat, Jul 2, 2011 at 7:49 AM, Piotr Zalewa wrote: > Everything has its place. For me it looks like that: > > direct help - IRC > searching for solutions - tut