Re: Django and PHP webhosting in Germany

2012-06-17 Thread Mike Ryan
Are "which webhost" questions really relevant to this list? I just did a quick search, and it seems this question is coming up more and more frequently. It seems quite out of place here, IMHO. I use this list to see interesting ways people use Django, or learn from other people's answers - not

Re: deploying django - including third party apps

2012-04-26 Thread Mike Ryan
If he can't install virtualenv (permission denied), he will have problems copying his modules to the dist/site-packages dir. Also, this method of manually copying is (no offence meant :-) ) rather hacky, and probably not good advice in most situations. Thomas Rega's suggestion of installing virtual

Re: Server push ajax

2012-04-24 Thread Mike Ryan
The vague, open-ended nature of your questions gives me the impression that you are trying to get the group to do most of the hard work for you. Tom's suggestion is right - Pubsub definitely sounds like the way to go for your project. The TCP protocol doesn't make any specific reference to AJAX ei

Re: Update a user profile after LInkedin Oauth

2011-05-21 Thread Mike Ryan
Are you able to specify a dynamic return URL with LinkedIn's API? If so, you can: Generate a unique ID for each user (maybe even user.pk) Use this data in the return URL (e.g. example.com/oauth_return/ /) Attach that URL to a view which looks up the unique ID - you can now associate the user with

Re: Giving inlined models in a form in admin a default value based on order in form?

2011-05-06 Thread Mike Ryan
Also, you could override the model's save to set the sort_order to (current_max + 1), if you just want to ensure that the newest children are sorted last by default. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Giving inlined models in a form in admin a default value based on order in form?

2011-05-06 Thread Mike Ryan
I On May 6, 1:05 pm, Thomas Weholt wrote: > I've inlined a model so that when I add a new object of the parent > model ( for the inlined model ) I can add child model instances in the > same form, all done in admin.py. Standard stuff actually. But each > child object has a sort_order-field with d

Re: Double security login system

2011-04-28 Thread Mike Ryan
There is some discussion of two-factor auth systems in Django over at StackOverflow [1]. One of the answers links to an example app that implements two-factor auth [2], which sounds pretty close to what you are looking for (although you would need to replace their second factor with one of your own

Re: Storing *big* texts in db fields

2011-02-01 Thread Mike Ryan
(I tried to post this once before, but the browser crashed so I am not sure if it got posted. Apologies for dupe content if so) Is it possible the wordcount function is slowing everything down? Does it run each time you view the admin page? If so, I would try adding it as an attribute to the model