Re: Matching query does not exist when retrieving object by slug

2016-12-10 Thread Antonis Christofides
Hello, you have an error here: |defsave(self,*args,**kwargs): super().save(*args,**kwargs) self.set_slug() | self.set_slug() should be before super().save(). Regards, Antonis Christofides http://djangodeployment.com On 2016-12-10 02:26, Viet Phuong wrote: > (My English is

Re: Django with MySQL DB for multitenancy

2016-12-10 Thread Antonis Christofides
Hi, I don't understand what the problem is. You have a setup that works. What exactly do you want? You want to run many distinct instances of the application on the same server? And you want to get rid of docker? Antonis Christofides http://djangodeployment.com On 2016-12-09 17:13, Peter Edache

Re: Where to store simple texts

2016-12-10 Thread Sujit Roy
in your sqlite database u just create a model -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, s

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
are you using manage.py runserver? On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo wrote: > I'm building a Django server for data collection. However, the program > seems not capable when the sensing network expands. As time goes on, the > program doesn't even enter the code piece and report broken pi

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Yes, I did. 在 2016年12月10日星期六 UTC-5下午3:37:17,Avraham Serour写道: > > are you using manage.py runserver? > > > On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo > > wrote: > >> I'm building a Django server for data collection. However, the program >> seems not capable when the sensing network expands. As tim

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
don't use runserver for production ever. read the django documentation: https://docs.djangoproject.com/en/1.10/howto/deployment/ after that I suggest using nginx with uwsgi it is also worth reading uwsgi documentation, there are a lot of options you can tweak nginx also has some options you can

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Thanks! 在 2016年12月10日星期六 UTC-5下午4:43:47,Avraham Serour写道: > > don't use runserver for production ever. > > read the django documentation: > https://docs.djangoproject.com/en/1.10/howto/deployment/ > > after that I suggest using nginx with uwsgi > > it is also worth reading uwsgi documentation, th

inline parent value

2016-12-10 Thread Nate Granatir
You should be able to customize the queryset of any form by overriding it in the init method of the form. In this case, it's a little trickier because you'll need a custom admin and custom form for the inline. I haven't been able to test this, but I think you'll need to do the following. In fo

Opinions on permissions stategy

2016-12-10 Thread Avraham Serour
Hi, I'm using DRF and need to implement object based permissions, I sublassed BasePermission to create my own logic. Currently all models that make sense to have permission inherits from a base Object model, implementing common behaviour and fields. The object has two many to many fields to User