model based on insertable database view has problems with last_insert_id

2010-08-27 Thread Benedykt
Hello, I created a simple Django model based on some database view. It looks like that: class Person(models.Model): name = models.CharField(max_length=200) class Meta: db_table = 'bambo_person_view' In my database (Postgresql) I created this view and I gave it rule

Re: append_slash and mod_wsgi problem when Django lives in subdirectory

2009-03-06 Thread Benedykt
On Mar 5, 11:51 pm, Graham Dumpleton wrote: > What version of Django are you using? > > Are you perhaps using a pre 1.0 version where SCRIPT_NAME, which > defines mount point, was not being properly handled by Django. Yes, it was the reason - I was using 0.9.7. I upgraded to the current version

append_slash and mod_wsgi problem when Django lives in subdirectory

2009-03-05 Thread Benedykt
Dear sirs, I have configured my web server so http://localhost/wsgi points to Django connected with WSGI: WSGIScriptAlias /wsgi /var/www/django.wsgi Now I can see that when I request URL "http://localhost/wsgi/myapp/ test/", Django sees URL "myapp/test/". It is nice when I write url rules - they