google app engine suggestion

2012-11-09 Thread Aswani Kumar
hi, i am planning to develop an education related information portal in django and google app engine. my question is google app engine supports python 2.7 but django moving towards python 3.x now with django 1.5 the minimum required version of python is 2.6. and django 1.6 will be on python 2.7

search across models

2013-02-02 Thread Aswani Kumar
hi all, i have a big question. how can i perform search queries like on following models RESTAURANT_TYPES = ( ('C', 'Chinese'), ('A', 'American'), ('J', 'Japanese'), ) class city (models.Model): name = models.CharField(max_length=200) class restaurants(models.Model): nam

session is not expiring

2013-02-21 Thread Aswani Kumar
i set file based sessions and the sessions are not expiring even after closing browser. its the issues in chrome but firefox is good. how can i fix it. here is my config MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddle

url pattern correct but not working

2013-02-21 Thread Aswani Kumar
my url pattern [a-zA-Z0-9]-(?P\d+).html urls will be like news-in-finland-yesterday-festival-3456.html i want 3456 which is news id. the regex is correct but not working if i keep it in urls. url('^[a-zA-Z0-9]-(?P\d+).html$', 'tempa'), please help... -- You received this message because y

IDE django with perforce

2013-05-29 Thread Aswani Kumar
hi guys, we are having problem with eclipse 3.8 with pydev perforce plugins on ubuntu 13.04 *problem :* after using for few days or unexpected shutdown, eclipse stops working i mean opening. we need perforce with django, can any one tell me whats the best ide for django with integrated perfor

session is missing on httpresponse redirect to google oauth

2013-11-19 Thread Aswani Kumar
here is my code @login_required def gpconnect(request): if 'code' in request.REQUEST: # insert google data to db return render_to_response('social/google.html') else: rty="https://accounts.google.com/o/oauth2/auth?client_id="+G