Re: postgesql commit problem?

2007-03-14 Thread omat * gezgin.com
By the way, when I try to commit using transaction.commit(), I get a TransactionManagementError saying "This code isn't under transaction management", which makes sense, as the cursor is not in a transaction context. On 14 Mart, 17:36, "omat * gezgin.com" <[EMA

ordering on a ForeignKey field in the admin

2007-03-23 Thread omat * gezgin.com
I have two models, Artist and Album. I am able to add new albums via the admin interface but the list of artists in the album edit / add pages are not ordered. If I am not getting the documentation wrong, this should be achieved simply by stating the default ordering in the meta class. My (simpli

Re: ordering on a ForeignKey field in the admin

2007-03-24 Thread omat * gezgin.com
I still need to solve this issue. Am I missing something obvious, or can this be a bug? Thanks again... oMat On 23 Mart, 14:37, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > I have two models, Artist and Album. I am able to add new albums via > the admin interface b

cannot get REQUEST_URI

2007-04-28 Thread omat * gezgin.com
I need to use the current request URI in a template. Thus, I am passing the uri as a context variable, which is: uri = request.META.get('REQUEST_URI') or request.META.get('PATH_INFO') When I use this expression in the test server, which uses the request.META.get('PATH_INFO'), everything is fine

Re: cannot get REQUEST_URI

2007-04-28 Thread omat * gezgin.com
request.META['PATH_INFO'] at production level ? > > uri = request.META.get('PATH_INFO') > > On 28 avr, 12:53, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > > > I need to use the current request URI in a template. Thus, I am > > pas

each request results in 2 hits on web server

2007-05-02 Thread omat * gezgin.com
Hi all, I am running the latest svn version on development web server and in one of my applications, for each request, the view function is called twice. Whether the request that triggers the view function is GET or POST, another GET request follows the original and the view function is called on

Re: each request results in 2 hits on web server

2007-05-02 Thread omat * gezgin.com
Thanks Enrico, it was an emtpy css left in the base template... On 2 Mayıs, 17:41, Enrico <[EMAIL PROTECTED]> wrote: > I got the same situation a long time ago... > > After a lot of headaches, I've noticed that I had an empty image tag, > so the browser calls the current page twice, one time f

IE6 is not accepting session cookies

2007-05-03 Thread omat * gezgin.com
tried putting this variable in my sites settings.py file but it didn't help. Thank for any help... omat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: IE6 is not accepting session cookies

2007-05-03 Thread omat * gezgin.com
6 standalone version together with installed IE7 on the same machine for testing. I think there might be a buggy interference among them when running together. I will test with a machine with only IE6 installed. On 4 Mayıs, 02:47, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: >

Re: IE6 is not accepting session cookies

2007-05-04 Thread omat * gezgin.com
pt cookies when running besides an installed version of IE7. This can be with other combinations also, which I am not going to test. On 4 Mayıs, 09:51, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > No, the domain is "turkpop.com". I tried setting SESSION_COOKIE_D

a comment on comments system and voting

2007-05-04 Thread omat * gezgin.com
every content and users? oMat --~--~-~--~~~---~--~~ 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

request.session.session_key is None

2007-05-04 Thread omat * gezgin.com
Middleware' - INSTALLED_APPS has 'django.contrib.sessions' - database is in sync Do you have any idea about what may be causing this? oMat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

fuzzy selection based on title & tags

2007-01-15 Thread omat * gezgin.com
model requires to define the title and tags as unique together. But apparently: class Post(models.Model): title = models.CharField(maxlength = 50) tags= models.ManyToManyField(Tag) class Meta: unique_together(('title', 'tags'),) is not a valid de

customizing how the slug fields are populated

2007-01-29 Thread omat * gezgin.com
here and how the slug fields are generated in the Django code. Thanks for any comments... omat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: customizing how the slug fields are populated

2007-01-29 Thread omat * gezgin.com
parameter. Instead, I would build my form, and generate the slug from the data I receive explicitly. A few words on how prepopulate_from works can be added to the documentation. omat On Jan 29, 6:14 pm, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On 1/29/07, omat *

nested classes

2007-02-12 Thread omat * gezgin.com
pplication recognizes the admin sub-class of the models and builds interfaces accordingly. Do you think this is a good model for the mailinglist manager's purposes? How can I check if a model has a specific sub-class? And, how can I access its methods

<    1   2   3