Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-06-14 Thread Javier Guerra Giraldez
On Sun, Jun 14, 2015 at 3:13 PM, Peter of the Norse wrote: > Almost all of them are faster at key/value returns than PostgreSQL. i seriously doubt that. most "fast" key-value databases are only fast if you either: keep all data in RAM, forget about durability, or distribute the load on several

Re: How to DRY, define a set of model-fields and reuse them as multiple instances

2015-06-14 Thread Peter of the Norse
> On Jun 10, 2015, at 10:33 AM, ThomasTheDjangoFan > wrote: > > Hi Bruno, > > Abstract Base Models come close but they don't allow me to combine multiple > instances of the BaseModel in the DataHolderModel. > > My goal is to store them all in one table without having to manually add all > t

Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-06-14 Thread Peter of the Norse
On May 14, 2015, at 10:30 PM, Me Sulphur wrote: > > * It is a large key-value pair table (approaching ~ 1 bn rows) with an MD5 > key and JSON for value. The look ups depend on the business logic but are > necessary. Nevertheless, there are no more than 10-12 queries executed by > combining ke

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Carlos A. Carnero Delgado
> ... Should I try to use a user that is not a sudoer or does it not really matter? You should use the least privileged user you can. In the (unlikely or not) event of an exploit and the user can gain access to console, what can happen? Do you trust the system's configuration? I think that in a p

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Gergely Polonkai
Hello, the problem of the root access usually comes into play when your site gets hacked (or if you don't trust the framework written by someone else, which is not always a bad idea). Up until then, you can safely run your application under root privileges. When your site gets hacked, the main go

Re: potential bug

2015-06-14 Thread 'Tom Evans' via Django users
On Sun, Jun 14, 2015 at 3:24 PM, Mark Nesterovych wrote: > Hello. > I've just finished small django site, and keep going on creating tests. > I've found and issue with Model.objects.values_list method. > Looks like it disregard test database and looks into production one. > > Some details. > I ha

Re: How to serialize one record with Django / REST?

2015-06-14 Thread James Schneider
Instead of using .get(), try using .filter() instead, since get_queryset() needs to return a query set and not the actual object (even though the query set will only contain a single result). Your code for the get_queryset() override is actually better suited as an override for get_object() in the

Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Paul Koepke
I'm running a Django app using uWSGI and nginx. I already saw in the uWSGI documentation that I should not run uWSGI as root. But does it matter if the user I run uWSGI has sudo access? Should I try to use a user that is not a sudoer or does it not really matter? -- You received this message b

How to serialize one record with Django / REST?

2015-06-14 Thread Daniel Grace
I can serialize all objects using the following. In views: class ProductDetail(generics.ListAPIView): serializer_class = ProductSerializer def get_queryset(self): return Product.objects.all() In serializers: class ProductSerializer(serializers.ModelSerializer): class Meta:

Re: Forum app

2015-06-14 Thread Luis Zárate
Those links maybe can help you https://github.com/vicalloy/LBForum https://github.com/nitely/Spirit For more see https://www.djangopackages.com/grids/g/forums/ 2015-06-14 4:32 GMT-06:00 Arindam : > What are the stable forum apps ? > > -- > You received this message because you are subscribed

Re: Heroku: without NULL bytes error with "2 scoops" structure

2015-06-14 Thread Martin Torre Castro
I resolved this. I was doing wrong and not making git commit when editing requirements.txt files. On Saturday, 13 June 2015 10:00:18 UTC+2, Martin Torre Castro wrote: > > Hello, > > I posted this because I can't deploy a webapp with Heroku. Any ideas? > > > http://stackoverflow.com/questions/3081

potential bug

2015-06-14 Thread Mark Nesterovych
Hello. I've just finished small django site, and keep going on creating tests. I've found and issue with Model.objects.values_list method. Looks like it disregard test database and looks into production one. Some details. I have a form with a filed customer = forms.ChoiseField(choises=Customer.o

Forum app

2015-06-14 Thread Arindam
What are the stable forum apps ? -- 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, send email to

Re: What are some good 3rd party django apps to build a user dashboard and folder management (similar to a Google drive account)

2015-06-14 Thread Derek
I have not had this use case; but I assume you have looked at: https://www.djangopackages.com/grids/g/file-managers/ Perhaps one there is close to what you need; and you could extend/enhance it to match exact requirements. They range from really simple to full-fledged EDMS such as Mayan. (Note:

Re: Add multiple objects of same model at the same time in admin

2015-06-14 Thread Carlos Arturo Sanchez Rivera
It is easier with decorators @admin.register(Transfer) class TransferAdmin(admin.ModelAdmin): pass El sábado, 13 de junio de 2015, 4:28:38 (UTC-5), Robin Lery escribió: > > I have a model to upload pictures: > > models.py: > > >> class Snap(models.Model): >> image = models.ImageFiel