Re: Android browser and csrf protection

2011-10-20 Thread Ivan Uemlianin
iling" site is on webfaction, the Working" site is on a bare machine (centos, nginx, etc). Does anyone have any suggestions as to what's going on? Why should the Android browser be behaving differently to all the others? Best wishes Ivan On Oct 19, 3:17 pm, Ivan Uemlianin <ivan

Android browser and csrf protection

2011-10-19 Thread Ivan Uemlianin
Dear All I have a django webapp with a very simple login page, a form with username, password and the {% csrf %} tag. The page works as expected when using Chrome, Firefox and Safari, but when trying to login from my Android phone browser, the page returns the "CRSF verification failed" error

Re: csrf protection and testing with tsung

2011-06-22 Thread Ivan Uemlianin
Dear Malcom Thanks very much for your help! You were exactly right. The following config works (simplified for exposition). Best wishes Ivan On Jun 21, 5:54 pm, Malcolm Box <malcolm@gmail.com> wrote: > On 21 June 2011 16:48, Ivan Uemlianin <ivan.llai.

Re: csrf protection and testing with tsung

2011-06-21 Thread Ivan Uemlianin
Dear Malcolm Thanks, this is a good clue. I'll try it out tomorrow and report back. Best wishes Ivan On 21/06/11 17:54, Malcolm Box wrote: On 21 June 2011 16:48, Ivan Uemlianin<ivan.llai...@gmail.com> wrote: With tsung you record a site visit (called a session) --- log in, view v

csrf protection and testing with tsung

2011-06-21 Thread Ivan Uemlianin
Dear All I have a live(ish) django website which I'm testing with tsung. With tsung you record a site visit (called a session) --- log in, view various pages, do a few things, log out --- and tsung will then hit the site with lots of randomised versions of this session. Many of the views are

Re: mis-named setting? SESSION_EXPIRE_AT_BROWSER_CLOSE

2011-01-31 Thread Ivan Uemlianin
ooglemail.com> wrote: > On Mon, Jan 31, 2011 at 2:21 PM, Ivan Uemlianin <i...@llaisdy.com> wrote: > > Dear All > > > Is the setting SESSION_EXPIRE_AT_BROWSER_CLOSE mis-named?  As far as I > > can tell the setting doesn't influence the session expiry at all >

mis-named setting? SESSION_EXPIRE_AT_BROWSER_CLOSE

2011-01-31 Thread Ivan Uemlianin
Dear All Is the setting SESSION_EXPIRE_AT_BROWSER_CLOSE mis-named? As far as I can tell the setting doesn't influence the session expiry at all (e.g., what happens to the django_session table on the server). What this setting seems to affect is the expiry of the *cookie* in the browser. I'm

Re: Pinax: worth installing?

2011-01-19 Thread Ivan Uemlianin
Dear ashdesigner I haven't tried Pinax for a while but last time I did (June 2009) I got the impression that it was an all-or-nothing affair. Pinax was marketing itself as a "social networking site in a box" and if that's what you wanted, it was a reasonable choice. However, it turned out that

Re: Chat application in Django

2010-09-04 Thread Ivan Uemlianin
Dear Shamail It depends on your host. Serving real-time content over the web requires a web server that can do server push (e.g., Twisted, Tornado, ejabberd, etc.). If your host will let you install your own web server, you're fine. If your host insists on apache, ... I think server push is

Re: Chat application in Django

2010-09-02 Thread Ivan Uemlianin
Dear Shamail As well as the resources already mentioned, I mention a few on this comment on a similar thread in May: http://groups.google.com/group/django-users/browse_thread/thread/6032003efcf2c2df/0575d5b54ecd5254#0575d5b54ecd5254 Hotdot (django, orbited and twisted) is good for realtime

Re: One to One chat like Facebook?

2010-05-17 Thread Ivan Uemlianin
Dear Anand Frederico Caceres' app [1,2] is worth a look, but note that it uses old-style repeated polling of the server. Alex Clemesha has written an exciting piece on developing real-time web apps with Django, Orbited and Twisted [3]. His demo application, hotdot [4], includes a real-time chat

Re: django with mod_wsgi on centos

2010-05-10 Thread Ivan Uemlianin
@Graham see my reply this morning to your post on the modwsgi list: http://groups.google.com/group/modwsgi/browse_thread/thread/a157d0eba50b826a @Sam I didn't change the home directory permissions on either machine: they seem to have different default settings (775 on ubuntu, 700 on centos).

Re: django with mod_wsgi on centos

2010-05-10 Thread Ivan Uemlianin
raise 403s on centos (just checked: on the ubuntu machine /home/siteuser/ was 775). Best wishes Ivan [1] http://djangoadvent.com/1.2/deploying-django-site-using-fastcgi/ On May 10, 10:25 am, Tom Evans <tevans...@gmail.com> wrote: > On Mon, May 10, 2010 at 9:39 AM, Ivan Uemlianin <i

Re: django with mod_wsgi on centos

2010-05-10 Thread Ivan Uemlianin
8, 4:26 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote: > On Saturday 08 May 2010 20:32:51 Ivan Uemlianin wrote: > > > Can anyone suggest to me which permissions I need to change and to > > what?  Presumably read/write permissions to some file or directory but > > w

django with mod_wsgi on centos

2010-05-08 Thread Ivan Uemlianin
Dear All I know this is strictly speaking off topic, so please forgive me. I have asked at the mod_wsgi list. On an Ubuntu machine I have a working django site, using nginx, apache and mod_wsgi. Now I am having to install the site on a CentOS machine. Everything is working, apart form

django-simplepages "stable"?

2010-03-26 Thread Ivan Uemlianin
Dear All I need a basic CMS and django-simplepages looks like it should fit the bill. I notice it hasn't had any changes since Aug 2008, or issues posted since Feb 2009. Does this mean it's "stable" or "broken"? Is anyone using it? I've noticed an error in simplepages/models.py: 5from

Re: Creating sample users for testing

2010-03-24 Thread Ivan Uemlianin
Dear Dave Thanks, that does look useful. Seeing Ian's solution I was wondering if I could manage.py in some way. Best wishes Ivan On Mar 23, 4:55 pm, Dave Murphy <d...@schwuk.com> wrote: > On Mon, Mar 22, 2010 at 12:26 PM, Ivan Uemlianin <i...@llaisdy.com> wrote: > &g

Re: How to set a prompt for a choiceField?

2010-03-23 Thread Ivan Uemlianin
ways sorts before anything else?) the 'invalid' choice is displayed by default and can act as a prompt. Thanks (for the facility), apologies and best wishes Ivan On Mar 23, 2:56 pm, Ivan Uemlianin <i...@llaisdy.com> wrote: > Dear All > > I have a choiceField in one of my fo

How to set a prompt for a choiceField?

2010-03-23 Thread Ivan Uemlianin
Dear All I have a choiceField in one of my forms, and I'd like to have it rendered displaying a prompt. I think the html would be something like this: Please choose a colour: Red Green Blue This would display a drop-down menu showing "Please choose a

Re: Creating sample users for testing

2010-03-23 Thread Ivan Uemlianin
Dear Ian That's great! Exactly my use case. Thanks very much for your help. Best wishes Ivan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Creating sample users for testing

2010-03-22 Thread Ivan Uemlianin
Dear All I'd like to create a bunch of sample users for testing a django website. I was going down the road of using an initial_data fixture, but there seem to be a couple of problems with this: - Can I supply partial data in initial_data, i.e. only auth.user info (at the moment, username and

Where is csrf middleware for Django 1.1.1?

2010-01-26 Thread Ivan Uemlianin
Dear All I am trying to locate the csrf middleware. I have Django 1.1.1 but it doesn't seem to have the module as documented [1]: $ python manage.py shell >>> import django >>> django.VERSION (1, 1, 1, 'final', 0) >>> import django.contrib.csrf.middleware.CsrfMiddleware Traceback (most recent

Re: Django and chat

2009-07-03 Thread Ivan Uemlianin
Xiong Thanks for your comment. Good questions. I envisage a social networking website, based on Django. The website will provide a chat facility for users who are logged in: multi-user chatrooms and private chat (I has been thinking of 1-to-1 as a special case of multi-user).

Django and chat

2009-07-02 Thread Ivan Uemlianin
Dear All I am looking into using or developing a chat application for Django, for use in a social networking website based on the Pinax Django "distribution". I have searched for django-based chat applications and found very little. Below I list briefly what I've found. Please could anyone