Re: Remote developer opportunity

2009-11-01 Thread Kashif Azeem
Hi, I am interested. If you can write a little bit about yourself, type of work, how to apply? -Kashif On Mon, Nov 2, 2009 at 7:05 AM, morab007 wrote: > > Currently seeking a talented, self-motivated and passionate python/ > django developer to join an already

Re: Display a value from another table

2009-11-01 Thread Rishabh Manocha
On Mon, Nov 2, 2009 at 1:43 PM, Denis Bahati wrote: > Hi All, > Am developing an application where by it links two tables author and book, > the id of author is a foreign key to book table. How can i display the name > of the author when am displaying the book list. > > > >

Display a value from another table

2009-11-01 Thread Denis Bahati
Hi All, Am developing an application where by it links two tables author and book, the id of author is a foreign key to book table. How can i display the name of the author when am displaying the book list. --~--~-~--~~~---~--~~ You received this message because

Re: Legacy database - does every table need an id column?

2009-11-01 Thread James Bennett
On Sun, Nov 1, 2009 at 10:56 PM, Nick Arnett wrote: > As I ask the question, it now seems clear to me that the column is > needed. There must be a field on the model with "primary_key=True". If a model is defined without such a field, Django assumes an implicit

Legacy database - does every table need an id column?

2009-11-01 Thread Nick Arnett
I'm hoping to use Django with a legacy database and I'm suspecting that things are not working as they should because the database has tables that lack the "id" column that Django generates from the same model. Searching the documentation, I don't see anything that indicates this is required,

Re: solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 9:36:23 am Graham Dumpleton wrote: > > these are usually user generated - they love to put spaces. I can handle > > spaces, but would like to know how the spaces become %20 and how to > > prevent this. > > As someone else pointed out, likely from the browser. it is not

Re: solving the %20 problem

2009-11-01 Thread Graham Dumpleton
On Nov 2, 2:04 pm, Kenneth Gonsalves wrote: > On Monday 02 Nov 2009 8:14:22 am Mike Ramirez wrote:> > hi, > > > when I switched from apache to nginx, I found that all my spaces in urls > > >  were being replaced with '%20' which caused the urls to fail and > > > database

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
On Sunday 01 November 2009 19:04:06 Kenneth Gonsalves wrote: > these are usually user generated - they love to put spaces. I can handle > spaces, but would like to know how the spaces become %20 and how to prevent > this. > Firefox usually encodes them to %20 when it's copied and pasted from the

Re: solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 8:14:22 am Mike Ramirez wrote: > > hi, > > when I switched from apache to nginx, I found that all my spaces in urls > > were being replaced with '%20' which caused the urls to fail and > > database lookup also to fail. I used urllib.unquote in views and a \S in > > urls to

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
On Sunday 01 November 2009 17:27:08 Kenneth Gonsalves wrote: > hi, > when I switched from apache to nginx, I found that all my spaces in urls > were being replaced with '%20' which caused the urls to fail and database > lookup also to fail. I used urllib.unquote in views and a \S in urls to >

Remote developer opportunity

2009-11-01 Thread morab007
Currently seeking a talented, self-motivated and passionate python/ django developer to join an already establish firm specialising in Django-based development. This position is 100% remote/virtual, using communication tools such as Co-op, Assembla, email, IM. We're smart, idealistic, and

solving the %20 problem

2009-11-01 Thread Kenneth Gonsalves
hi, when I switched from apache to nginx, I found that all my spaces in urls were being replaced with '%20' which caused the urls to fail and database lookup also to fail. I used urllib.unquote in views and a \S in urls to work around this. Is there some cleaner solution to this? -- regards

Can't use ModelForm, basic template and ajax to submit a form, over and over...can I?

2009-11-01 Thread robinne
I'm giving up on something I was so close to getting to work...just want to make sure there isn't a simple solution. I have ModelForm and I have a simple template that iterates and creates the form fields. I update the form using YUI.io ajax submit. It works great. I am able to post the data to

Distributing a Django site along with Apache and MySQL

2009-11-01 Thread kRON
I have a web application developed as a Django site that I'd like to distribute along to my clients on Windows; their production environment won't have Apache and MySQL preinstalled. To avoid having to manually deploy Apache and MySQL and look silly if I run into any hiccups whilst configuring

Re: debug toolbar problem

2009-11-01 Thread Antoni Aloy
2009/11/1 bax...@gretschpages.com : > > I finally installed the django debug toolbar, which looks like a very > nice piece of work, but it's not reporting sql queries for me. Every > page: 0 queries, 0 seconds. > > Any suggestions on where the problem may lie? Are you

Rendering Group Labels for Checkboxes and Radio Groups

2009-11-01 Thread mviamari
Hi, When I render a CheckBoxGroup or a Radiobox group and I apply a label to whole widget (independent of the labels for each of the choices), I get something like this: Group Label The problem is that because the top label has the attribute "for='element_0'" if you click on it, it

Django admin stops showing all apps

2009-11-01 Thread Greg
Hi all, I have a very strange problem with one of my django sites - when I start apache, everything works fine, but after a while, all of my site- specific apps will stop showing in the admin site. Library apps and django's built in apps are still there. Does anyone have any ideas as to why this

Re: Django Model inheritance and foreignkeys

2009-11-01 Thread Andew Gee
That works great...thanks bruno desthuilliers wrote: > On 29 oct, 23:49, Andew Gee wrote: > > Hi, > > > > I have the following models > > > >     class Person(models.Model): > >       name = models.CharField(max_length=100) > > > >     class Employee(Person): > >      

debug toolbar problem

2009-11-01 Thread bax...@gretschpages.com
I finally installed the django debug toolbar, which looks like a very nice piece of work, but it's not reporting sql queries for me. Every page: 0 queries, 0 seconds. Any suggestions on where the problem may lie? --~--~-~--~~~---~--~~ You received this message

Re: GROUP results in views.py

2009-11-01 Thread TiNo
On Fri, Oct 30, 2009 at 22:10, Javier Guerra wrote: > > On Fri, Oct 30, 2009 at 4:05 PM, TiNo wrote: > > SQL's GROUP BY is made for this isn't it? > > no, it's not. > > SQL's GROUP BY discards 'individual' rows off the result, showing only > 'grouping'

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2009-11-01 Thread David
thank you very much. very interesting answers that will help me! David On 31 Okt., 17:54, Ethan Jucovy wrote: > Hey, > > I actually just did 5-star ratings for a project I'm working on, and have > been trying to figure out if I have anything reusable worth releasing as a

Re: Bad Marshal Data error

2009-11-01 Thread Jeff
That did the trick, thank you! On Nov 1, 6:52 am, Karen Tracey wrote: > Try deleting all your .pyc files and it might go away. > > Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Making the case for Django (vs. Drupal)

2009-11-01 Thread Preston Holmes
On Oct 31, 8:44 am, shacker wrote: > At the university where I work, there is a LOT of momentum behind > Drupal. A large and active users group, and dozens of departmental > sites running it. I've succeeded in building a few departmental sites > with Django but still

Re: Many-toMany with list_display in Admin-Site with django 1.1

2009-11-01 Thread Tobias Kabbeck
Like described in this thread: http://groups.google.com/group/django-users/browse_thread/thread/1f97ae29f23f71d4 with the method def get_authors(self): return self.authors.all() --~--~-~--~~~---~--~~ You received this message because you are subscribed to

RE: Paginate huge file

2009-11-01 Thread Angel Talavera
thanks _ From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Karen Tracey Sent: Sunday, November 01, 2009 7:59 AM To: django-users@googlegroups.com Subject: Re: Paginate huge file On Sun, Nov 1, 2009 at 7:14 AM, Angel Talavera

Re: file-download question

2009-11-01 Thread Birkin James Diana
Karen, > ...It sounds like the problem is you have set up the results from > this view to be cached, yet this response cannot be cached as it > contains a file... Got it; thanks so much. You were exactly right. Not only had I forgotten that I'd set up project-wide caching for this testbed

Re: file-download question

2009-11-01 Thread Karen Tracey
On Sun, Nov 1, 2009 at 8:44 AM, birkin wrote: > > I forgot to note that the referenced mod_wsgi error is from the apache > error log; it is *not* a django exception. But because of the nearly > identical working code, I am suspecting my issue is with my django > code. > >

Re: file-download question

2009-11-01 Thread birkin
I forgot to note that the referenced mod_wsgi error is from the apache error log; it is *not* a django exception. But because of the nearly identical working code, I am suspecting my issue is with my django code. -Birkin On Nov 1, 7:21 am, birkin wrote: > ... > The

file-download question

2009-11-01 Thread birkin
I expect the following views.py file-download code to work, but am getting an error, and would like feedback. The function: def item( request, item_id ): from django.http import HttpResponse, HttpResponseNotFound ## valid-item check if not item_id == '123': return

Re: Unrelated Inline admin objects

2009-11-01 Thread Daniele Procida
On Sun, Nov 1, 2009, Karen Tracey wrote: >> But what if there were no relation? How does the admin know which inline >> items belong to it? >> >> >You can't list an unrelated model inline with another. I believe you'll get >an error about no ForeignKey pointing to the

Re: Paginate huge file

2009-11-01 Thread Karen Tracey
On Sun, Nov 1, 2009 at 7:14 AM, Angel Talavera wrote: > How can I create a view to paginate thru a huge table? > > You could use a generic view ( http://docs.djangoproject.com/en/dev/ref/generic-views/) -- these allow you to specify how many items per page. If you want

Re: Bad Marshal Data error

2009-11-01 Thread Karen Tracey
Try deleting all your .pyc files and it might go away. Karen --~--~-~--~~~---~--~~ 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: Unrelated Inline admin objects

2009-11-01 Thread Karen Tracey
On Sun, Nov 1, 2009 at 6:48 AM, Daniele Procida wrote: > > Every example discussing inline admin objects invovles (naturally) > models that are related to one another, for example, a books model > placed inline on an authors model admin: > >

Paginate huge file

2009-11-01 Thread Angel Talavera
How can I create a view to paginate thru a huge table? --~--~-~--~~~---~--~~ 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

Unrelated Inline admin objects

2009-11-01 Thread Daniele Procida
Every example discussing inline admin objects invovles (naturally) models that are related to one another, for example, a books model placed inline on an authors model admin: But what if there were no relation?

Re: Django crash when accessing User instance containing ManyToMany field only through request.user

2009-11-01 Thread nostradamnit
Hi, I'm not sure what's causing your error, but it appears that using User.add_to_class is not the recommended approach for extending the user model. James Bennet explains it very well here -