Re: Advice: django deploy vps error 502

2017-02-28 Thread Antonis Christofides
Hello, 502 usually means the backend isn't running. After you finish the test, has the backend stopped running? Does it continue to throw 502s? If that is the case, I'm wildly guessing that processes might be growing and growing in memory and being eventually killed, but I don't really know. Do

database update after paypal payment

2017-02-28 Thread agoulouzegouna
hello! I am trying to update my database after paypal has received the payment from customer. The problem is that I don't really know to do it. This is what I am doing now here is my model *class SubmitDoc(models.Model):* *Student = 'stu'* *Professional = 'Pro'* *

Advice: django deploy vps error 502

2017-02-28 Thread carlos
Hi, all i have one vps for one application, vps description 16GB RAM 8 core processor 160 GB SSD 6TB Transfer ok, i am using, uwsgi(2.0.14), nginx(1.10), mysql(5.6 )and ubuntu 16.04 LTS this site working well when is visited or hits 1k even 6k, but when visited 10k or 12k raiser error 502,

intergate python file to work to a value recover by rest api

2017-02-28 Thread Selma
Hi I have a mobility code of 2 points, I have already a map with a marker, I would like to integrate the mobility code (mobility for x and y) to the marker -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

attribute required and error XML

2017-02-28 Thread chun974
Hi all, I have an problem. When I use the django library form, It create an attribute "required" for an input. But when I look on my explorer (firefox or chrome or IE) i have a XML error. "XML parsing error: malformed". this is my code : " class LoginForm(forms.Form): email =

Re: Handle uncaught exceptions?

2017-02-28 Thread Александр Христюхин (roboslone)
Hi, what you need is a middleware with process_exception method. Be sure that it's the last one in MIDDLEWARE setting. https://docs.djangoproject.com/en/1.10/topics/http/middleware/#process-exception > On 28

Handle uncaught exceptions?

2017-02-28 Thread Chillar Anand
In staging server, for staff users, I am trying to show actual exception even if DEBUG is False. I am using this wsgi file for it. However, handle_uncaught_exception method is not getting called? Any help on how to fix

Re: What's the best way to create a reusable pagination template?

2017-02-28 Thread fabrixxm
Yep. My solution is a custom template tag from django.template.defaulttags import register from urllib.parse import urlencode @register.simple_tag(takes_context=True) def querystringmod(context, *args): """Modify current querystring: {% querystringmod name value [name value [...]] %}