Exception Value: (502, 'Error: command "EHLO" not implemented')

2014-04-20 Thread rafiee.nima
Hi Im using django send mail and here is my view code . def send(request): send_mail('subject', 'message, 'mym...@gmail.com', ['mym...@gmail.com'], fail_silently=False) and I got thie error : Traceback: 110. self.connection.sendmail(from_email, recipients,

Re: error in using socialregistration

2014-04-14 Thread rafiee.nima
I'v fixed the problem by adding SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer' to setting.py On Monday, April 14, 2014 8:41:10 PM UTC+4:30, rafiee.nima wrote: > > Hi > Im using django socialregistration i configure everything step by step

error in using socialregistration

2014-04-14 Thread rafiee.nima
Hi Im using django socialregistration i configure everything step by step using socialregistration doc. i also add sit_id .but i got this error : Exception Type: TypeError at /social/linkedin/redirect/ Exception Value: is not JSON serializable -- You received this message because you are

Re: error in AUTHENTICATION using socialregistration

2014-04-14 Thread rafiee.nima
did you add facebook namespace in your main project urls.py ? On Friday, May 17, 2013 11:20:34 AM UTC+4:30, Avnesh Shakya wrote: > > hi, >I am getting error - > > NoReverseMatch at /login/ > >u'facebook' is not a registered namespace inside 'socialregistration' > >

Re: problem with integrating bootstrap 3.1.1 and django 1.6

2014-03-16 Thread rafiee.nima
I'm using development server . and when i use it seems work correctly but when I use my project file and directory structure is like : 1. root project folder 1. app folder 2. static 1. css 1. bootstarp.css 2. js 3. img 3. media 4. template

Re: problem with integrating bootstrap 3.1.1 and django 1.6

2014-03-09 Thread rafiee.nima
On Sunday, March 9, 2014 10:29:37 PM UTC+3:30, Camilo Torres wrote: > > On Sunday, March 9, 2014 12:11:11 PM UTC-4:30, rafiee.nima wrote: >> >> I am new to bootstarp and I want to use it in my django project. >> I put the needed folder's(css , js , img) in my project stat

problem with integrating bootstrap 3.1.1 and django 1.6

2014-03-09 Thread rafiee.nima
hi I am new to bootstarp and I want to use it in my django project. I put the needed folder's(css , js , img) in my project static folder and config my setting.py to access static directory I can access bootstrap.css from http:///..myprojecet/static/bootstrap.css which means I correctly config

using vars() function in django

2012-08-12 Thread rafiee.nima
Hi I need to to assign dynamic name to a variable I use blow code : for item,value in request.POST.items(): if item=="kid_room" vars()[item]="ok" list.append({"a":kid_room}) data=simplejson.dumps(list,cls=DjangoJSONEncoder) return HttpResponse(data,

problem with django model method save()

2012-07-04 Thread rafiee.nima
Hi Im some how new to django . I write a view to handle ajax request but I find out that save() method dose not save model instance in to the database here is my code def add_room(request): context={} status='' if request.is_ajax: if request.POST:

Re: error : need more than 1 value to unpack

2012-07-04 Thread rafiee.nima
tnx ;) On Wednesday, July 4, 2012 1:03:37 PM UTC+4:30, Jon Black wrote: > > You're also returning mimetype="application/json" outside of the > request.is_ajax check. I doubt you want that. > On Wed, Jul 4, 2012, at 01:20, rafiee.nima wrote: > > Oh

Re: error : need more than 1 value to unpack

2012-07-04 Thread rafiee.nima
Oh I find out my mistake :D On Wednesday, July 4, 2012 12:38:11 PM UTC+4:30, rafiee.nima wrote: > > Hi I got below error from my view which handle ajax request > hotel_instance=Hotel.objects.get(id=request.POST['hotel']) > need more than 1 value to unpack > > here is my cod

error : need more than 1 value to unpack

2012-07-04 Thread rafiee.nima
Hi I got below error from my view which handle ajax request need more than 1 value to unpack here is my code def add_room(request): context={} status='' if request.is_ajax: if request.POST: hotel_instance=Hotel.objects.get(request.POST['hotel']) if

django and jquery data grids

2012-06-25 Thread rafiee.nima
Hi I want to know what is the most compatible and straight forward jquery data grid plugin for django and also how I can integrated jqgrid with django -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

signals

2012-03-10 Thread rafiee.nima
I want to listen to pre ( or post ) save signal from a special model in my models but the problem is in listen function I can not mention a specific model . it gets signal from all models but I want to just use signal from a specific models I would tnx for any idea -- You received this message

Re: Login Issues

2012-02-28 Thread rafiee.nima
sorry site_media=os.path.join(os.path.dirname(__file__),'site_media') is not needed it was a line of code from my own project :D On Feb 28, 7:54 pm, "rafiee.nima" <rafiee.n...@gmail.com> wrote: > hi > check if you import login view in url.py to be like this : > from

Re: Login Issues

2012-02-28 Thread rafiee.nima
hi check if you import login view in url.py to be like this : from django.contrib.auth.views import login and also check your pattern in url.py to be like this : site_media=os.path.join(os.path.dirname(__file__),'site_media') urlpatterns = patterns(' ', (r'^login/$',login), ) and dont change

method for checking logged in user

2012-02-26 Thread rafiee.nima
Hi I want to know is there any built in function to check if a user is logged in actually I want to check if a user from a request is logged in or not tnx -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: handling multiple parallel request

2012-02-20 Thread rafiee.nima
can handle these simultaneous request ..I also should be concern about power failure ( actually It is important not to miss queued request if there is any queue ) On Feb 19, 7:29 pm, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Sun, 19 Feb 2012 06:27:19 -0800 (PST), &qu

handling multiple parallel request

2012-02-19 Thread rafiee.nima
hi I want to develop a VIEW for cashier system which my receives multiple parallel form as request from deferent clients I want to know how can I handle these request ...is there any thing like queue in django tnx -- You received this message because you are subscribed to the Google Groups