Is the lack of composite key support a detriment to django?

2009-06-12 Thread Daniel Koepke
I am a new django user, and so far, am loving the experience. I am still fairly new to web development as well, and was hoping someone might have the time to comment on an issue I have with django: the lack of composite key support. I know it's in the works, but I've noticed that it's an old is

Re: Hi, im new with Django

2009-06-12 Thread urukay
why Django go into "site-package" ? - it's directory for 3rd party packages, Django is python framework For all your other questions, if you're running WINDOWS, the solution is to setup your Enviromental Variables-System variables or you have to write whole path to django-admin.py file R.

Re: Is the lack of composite key support a detriment to django?

2009-06-12 Thread Kenneth Gonsalves
On Friday 12 June 2009 11:31:43 Daniel Koepke wrote: > I am a new django user, and so far, am loving the experience. I am still > fairly new to web development as well, and was hoping someone might have > the time to comment on an issue I have with django: the lack of composite > key support. uni

floatformat tag and cmemcache

2009-06-12 Thread Jurie-Jan Botha
It feels ridiculous to me but we've got a filter tag that's making a mess of our cache. Here's the deal: * We cache lots of stuff on our site using low level cache api and cmemcache. * We've got a float field on a model that we cache. * When we use this float field in a template it works fine. B

RE: Is the lack of composite key support a detriment to django?

2009-06-12 Thread Daniel Koepke
Yes it does! Thank you for responding! I kept looking for soutions and finally came across unique_together just a bit ago. My apologies for not combing harder, I figured this would be a common enough problem that if there was an easy solution, it would be easy to find. Again, thank you! --k

Re: Cannot use the save() correctly

2009-06-12 Thread lvs
On Jul 9 2006, 3:26 pm, "william" wrote: > Thanks Malcome, > > I was thinking of a kind of dispatch.connect "related-pre-save" and > "related-post-save" for the manytomany related data. > A bit like the existing "pre-save" and "post-save". please see the ticket http://code.djangoproject.com/tic

Re: Hi, im new with Django

2009-06-12 Thread Tomasz Zieliński
On 12 Cze, 08:23, urukay wrote: > why Django go into "site-package" ? > - it's directory for 3rd party packages, Django is python framework > > For all your other questions, if you're running WINDOWS, the solution is to > setup your Enviromental Variables-System variables or you have to write >

Re: Processing Forms in HTML docs

2009-06-12 Thread Tomasz Zieliński
On 12 Cze, 06:33, Abhishek Nanda wrote: > any ideas? I'm not sure if I understood you correctly, but if your problem is how to maintain some date between server and client, then you have at least two choices: 1. use Django sessions: http://docs.djangoproject.com/en/dev/topics/http/sessions/ 2.

Re: getting the latest story is too slow

2009-06-12 Thread James
I would explore some database indexes. Is that publish date column indexed in any way? I've seen MySQL batch scripts drop from 30 mins plus to a minute or two with the right index, it's worth looking into. James --~--~-~--~~~---~--~~ You received this message beca

strange database issue, values getting saved correctly, but not appearing through querysets

2009-06-12 Thread Andrew Ingram
I'm having a problem with a manytomany relationship in Django.. The items in the relationship (no intermediate model) are being saved successfully through the admin (I've checked the database after saving), but the queries that fetch the items aren't returning the new additions. This only seems

Re: Memory usage

2009-06-12 Thread Miles
On Jun 12, 4:43 am, Graham Dumpleton wrote: > > On Jun 12, 11:51 am, Miles wrote: > > If someone has an idea how to get memory usage at about the same with > > lower cpu cost than a full GC every request, please tell. > > In Python, garbage collecting is not real garbage collection like > other

Weird URL problem

2009-06-12 Thread Lars Stavholm
Hi All, got a problem that's slowly driving me crazy: http://mbf takes me to my apache+mod_python+django application. However, if I click a link, e.g. http://mbf/jobs, I get the following exception: TypeError at jobs/ 'NoneType' object is not iterable Request Method: GET Request URL: h

need to understand some basics on facebook

2009-06-12 Thread gganesh
Hi, I'm not going to integrate my application into facebook platform I just registered my app to get the api key In that case what are all the facilities i can avail from facebook apart from using facebook for authentication 1. Can i get users friends list 2. will my application be allowed to send

Re: need to understand some basics on facebook

2009-06-12 Thread Rama Vadakattu
have a look at the below link http://uswaretech.com/blog/2009/02/how-to-build-a-facebook-app-in-django/ this may help you in understanding the integration of your application into facebook platform On Jun 12, 5:11 pm, gganesh wrote: > Hi, > I'm not going to integrate my application into faceboo

Re: Weird URL problem

2009-06-12 Thread Lars Stavholm
Lars Stavholm wrote: > Hi All, > > got a problem that's slowly driving me crazy: > > http://mbf takes me to my apache+mod_python+django application. > > However, if I click a link, e.g. http://mbf/jobs, I get the > following exception: > > TypeError at jobs/ > 'NoneType' object is not iterable

Modifying Django's User Model

2009-06-12 Thread LeeRisq
I am interested in changing the primary key of the User model to email and also use that as the username. I would like to maintain the admin interface as well. I am uncertain about the ramifications of doing this. I understand this change will need to be reflected in other models and some views,

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Wiiboy
Do you think I would have problems if I disabled the checking for spaces? When I register users, I have it done automatically (user fills out a form), and Django doesn't have a problem with a space there. It's just in the Admin interface. --~--~-~--~~~---~--~~ You

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Marco Louro
As long as you trim start and trailing spaces, there shouldn't be any problem, but personally I wouldn't use spaces in usernames at all. On Jun 12, 2:42 pm, Wiiboy wrote: > Do you think I would have problems if I disabled the checking for > spaces? > > When I register users, I have it done auto

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Wiiboy
On Jun 12, 6:55 am, Marco Louro wrote: > As long as you trim start and trailing spaces, there shouldn't be any > problem, but personally I wouldn't use spaces in usernames at all. Why not? --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: how to override ordering in date-based generic views

2009-06-12 Thread Justin Myers
On Jun 11, 6:35 pm, Joseph Brown wrote: > Hi Justin - Thanks & sorry I missed your email until just now.  I did try > that, and it's interesting: it worked for any of the date based generic > views that took a datepart parameter in the url, i.e. archive_year, > archive_month, and archive_day.  Bu

how to define this model

2009-06-12 Thread bernddasbrot
I have two classes with the same set of fields. But class B should have this set exactly two times: class A(models.Model): fieldA = models.IntegerField() fieldB = models.IntegerField() class B(models.Model): fieldA = models.IntegerField() fieldB = models.IntegerField() anothe

accessing author and creation-date in admin.ModelAdmin

2009-06-12 Thread bernddasbrot
How can I list informations about creation-date and author in admin view? I think i don't have to define these fields in the model, because i can get this information with the django.auth/ history thing. --~--~-~--~~~---~--~~ You received this message because you ar

admin access in https redirect in http

2009-06-12 Thread Francis
Hi folks, I have set to instance of my server, one serving in http with admin disable and another one accessible throu https with admin enable. But this config cause me some trouble, each time I save something in the administration interface, it redirect me to http instead of https. (which throw

Re: Permission Denied: /tmp/python.cache_root

2009-06-12 Thread joshm
Graham, Thanks for your help. I will try to gather more information (hopefully a full trace) for this over the weekend. Sorry for being a bit "informal" on my responses. I had hoped this was a common issue, but as I have found it probably is not so common and depends upon a number of factors.

Re: strange database issue, values getting saved correctly, but not appearing through querysets

2009-06-12 Thread Andrew Ingram
I've now resolved this issue, it was caused by a combination of a database config error and using the wrong model manager Regards, Andrew Ingram On 12 June, 12:09, Andrew Ingram wrote: > I'm having a problem with a manytomany relationship in Django.. > > The items in the relationship (no interm

Re: Determining the type of a form field within a template

2009-06-12 Thread Jashugan
On Jun 11, 8:49 pm, "thsut...@gmail.com" wrote: > > This has been trivial in every other framework I've used and I'm sure > it is in Django as well, but I'm completely stumped. Is there any way > to do this which doesn't require that I write custom code for every > form and/or checkbox in my pro

django nginx fastcgi and flup

2009-06-12 Thread Matt Davies
Hello everyone I'm going to write down a quite complex problem I'm having that I'm having trouble debugging, but before I start has anyone noticed any strange behaviour using django nginx fastcgi and flup recently? If there is an obvious problem that I haven't heard about then any links I"d be gra

Re: django nginx fastcgi and flup

2009-06-12 Thread Dhruv Adhia
Hello Matt, Couple of days back I tried firing django app on fcgi server through runfcgi command. As indicated I installed flup packages and did python path settings as usual and when I run it I dont get any message that its running on so and so server and neither does it runs the server. Is it so

Re: floatformat tag and cmemcache

2009-06-12 Thread Michael
On Fri, Jun 12, 2009 at 4:15 AM, Jurie-Jan Botha wrote: > > It feels ridiculous to me but we've got a filter tag that's making a > mess of our cache. > > Here's the deal: > * We cache lots of stuff on our site using low level cache api and > cmemcache. > * We've got a float field on a model that w

Re: django nginx fastcgi and flup

2009-06-12 Thread Matt Davies
Hello Dhruv I've been using this configurement for ages, and we recently updated our django code. The app runs almost %100, but there's a certain part that calls a number of tags out of the database and displays the, and this section is intermittently failing. To make it even wierder it works if

Re: how to define this model

2009-06-12 Thread Rajesh D
Hi, > class A(models.Model): > fieldA = models.IntegerField() > fieldB = models.IntegerField() > > class B(models.Model): > fieldA = models.IntegerField() > fieldB = models.IntegerField() > anotherfieldA = models.IntegerField() > anotherfieldB = models.IntegerField() > > I

Re: Modifying Django's User Model

2009-06-12 Thread Rajesh D
On Jun 12, 9:29 am, LeeRisq wrote: > I am interested in changing the primary key of the User model to email > and also use that as the username. > > I would like to maintain the admin interface as well. > > I am uncertain about the ramifications of doing this. I understand > this change will ne

Re: Wired integers displayed instead of Friends List in facebook connect

2009-06-12 Thread Rajesh D
On Jun 12, 12:51 am, gganesh wrote: > hi, > My app connects to Facebook and as user logins in with facebook > connect ,i intent to display users friends list .I the process of > doing so i have written a code as pasted below > > script> > >