Re: How to handle Video/Audio streaming using Django Channels?

2016-11-04 Thread Andrew Godwin
Hi Sandro, Real-time video streaming is pretty intensive, and WebRTC already has some part of this covered, though from what I recall it's in a peer-to-peer fashion. You certainly could marshal it into binary websocket frames, but WebSocket is a non-ideal protocol for video delivery due to the

Re: Django1.9 Mongodb support

2016-11-04 Thread Michal Petrucha
On Fri, Nov 04, 2016 at 12:33:51PM -0700, Sudhir kumar Giri wrote: > Hello, > I didn't find any documentation or tutorial for Django-1.9 with Mongodb. > Please suggest some docs about it. > Thanks Hi, Django does not have any specific support for mongodb. Of course, you can just use Django

Django1.9 Mongodb support

2016-11-04 Thread Sudhir kumar Giri
Hello, I didn't find any documentation or tutorial for Django-1.9 with Mongodb. Please suggest some docs about it. Thanks -- 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

Re: Class Based Views VS DRY principle

2016-11-04 Thread Artem Bernatskyy
TNX On Friday, November 4, 2016 at 5:56:56 PM UTC+2, Artem Bernatskyy wrote: > > Hello. > > Suppose i have a code (http://pastebin.com/6rUqKD8q) > > And in CBV there are a bunch of methods with EXACTLY the same code. > > My question is - can i somehow inherit them from ONE place, in order to be

Re: Admin site - prepopulating field based on foreign key

2016-11-04 Thread Rafael E. Ferrero
Or you can filter the select with this Rafael E. Ferrero 2016-11-04 12:36 GMT-03:00 Derek : > You need a third-party app e.g. > >

Re: Negative User ID's

2016-11-04 Thread michael
Unfortunately, the apps are currently in different DB's. On Friday, November 4, 2016 at 10:26:34 AM UTC-7, Javier Guerra wrote: > > > On 4 November 2016 at 17:17, wrote: > >> To support future integration, I need to ID's to be common across the two >> apps. > > > that's

Re: Negative User ID's

2016-11-04 Thread Vinicius Assef
On 4 November 2016 at 15:17, wrote: > My real question was "is there any issue using > negative IDs". I'd check it with the database backend. I mean, read its documentation. And make a double check on the django side. Maybe contacting one of core developers. -- You

RE: Django ponycheckup check up results

2016-11-04 Thread Matthew Pava
I am just a regular user, but I don’t see how a Django setting could possibly modify some such a setting on the web server. I would just learn how to write that EB command and take it from there. …I suppose you could try writing a Python function or a Django command that will append your

Re: Django ponycheckup check up results

2016-11-04 Thread Sandeep Patil
Dear all, Noone else here who has this issue? Really would like to learn how this works. Thanks, Sandeep On Saturday, September 17, 2016 at 9:29:29 PM UTC+2, Sandeep Patil wrote: > > Dear All, > > I checked my django site a security ponycheckup at ponycheckup.com and I > got 90%, which is

Re: Negative User ID's

2016-11-04 Thread Javier Guerra Giraldez
On 4 November 2016 at 17:17, wrote: > To support future integration, I need to ID's to be common across the two > apps. that's what foreign keys are for -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Negative User ID's

2016-11-04 Thread michael
Hi, The normal user table will be synced from another application that doesn't allow non-real users. To support future integration, I need to ID's to be common across the two apps. The positive ID range is, in a sense, not available at this time. My real question was "is there any issue

Re: How to handle Video/Audio streaming using Django Channels?

2016-11-04 Thread Sandro Salles
Hey Andrew, In fact i'm trying to implement a real-time video chat application, using react native on a mobile app (iOS). The app will capture the users video using a module called react-native-webrtc, and send the live stream via websocket to a Django application (using Django Channels) that

Re: How to handle Video/Audio streaming using Django Channels?

2016-11-04 Thread Andrew Godwin
Hi Sandro, Could you highlight what the problems you're facing are? Channels is not particularly designed for streaming large files - you're better doing that using a CDN or dedicated file streaming software - so I'd be curious to know what the particular issues you're facing are. Andrew On

How to hook into the admin site to count login attempts with REST API / proxy?

2016-11-04 Thread Daniel Grace
Hello, I have a REST API which is not publicly accessible as it is behind a proxy. However the admin site is publicly available through an NGINX server. The REST API already has functionality to count failed login attempts and I would like to duplicate that functionality on the admin login

Related name with %(app_label)s being an actual field?

2016-11-04 Thread Jonty Needham
Hi, In an attempt to fix my earlier query about related names etc, it would appear that I've (half() fixed my issue. I now have: submission = GenericRelation( MyModel, related_query_name='%(app_label)s_related_name') So that's good and gives me the related names. However,

How to handle Video/Audio streaming using Django Channels?

2016-11-04 Thread Sandro Salles
Hello Guys, I can't find any documentation on how to handle video/audio streaming using Django Channels. I've found an incomplete tutorial here: https://artandlogic.com/2016/06/django-channels-ground-part-1/ https://artandlogic.com/2016/06/django-channels-ground-part-2/ But as i said, it's

Django 1.10.3 with Oracle database and --keepdb

2016-11-04 Thread Carsten Fuchs
Dear Django fellows, using Django 1.10.3 with Oracle database, is running ./manage.py test --keepdb supposed to work without having an explicit test password set? DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', # ... 'TEST': { #

RE: Class Based Views VS DRY principle

2016-11-04 Thread Matthew Pava
Just create another CBV that factors out all of the similarities between all of the other CBVs. Then inherit from your new CBV to create your more specific ones. Basically instead of inheriting from the Django CBVs, you will inherit from your own. From: django-users@googlegroups.com

Class Based Views VS DRY principle

2016-11-04 Thread Artem Bernatskyy
Hello. Suppose i have a code (http://pastebin.com/6rUqKD8q) And in CBV there are a bunch of methods with EXACTLY the same code. My question is - can i somehow inherit them from ONE place, in order to be able to edit them from one place ? Thanks for replies. -- You received this message

Re: SQLAchemy

2016-11-04 Thread Nate Granatir
Yes, why are you using SQLAlchemy instead of Django's built-in ORM? I don't see any reason to even attempt this unless you need to perform operations outside the context of Django. On Wednesday, November 2, 2016 at 2:09:18 AM UTC-5, pradam.programming wrote: > > hi, > I am new to SqlAchemy.My

Re: Negative User ID's

2016-11-04 Thread Nate Granatir
Or why not just assign certain Users to certain Groups? That seems like a much more clean and simple way of handling the problem. You'd be able to easily filter either set of users, and it would require very little custom code. Plus, doing something like assigning negative IDs disguises what

Re: Admin site - prepopulating field based on foreign key

2016-11-04 Thread Derek
You need a third-party app e.g. https://github.com/digi604/django-smart-selects On Thursday, 3 November 2016 19:21:14 UTC+2, dod...@gmail.com wrote: > > I'm having trouble with my admin site, would appreciate any pointers. > > I have these three models in my database with relationships as

How to include related_names in a mixing for a model?

2016-11-04 Thread Jonty Needham
So I have one model, which uses a ContentType to point to a collections of models across separate apps. I want to be able to "plug in" the functionality linking that model to the other models in the separate app. So we have the follwing: class MyModelMixin(models.Model): """ Mixin to get