Django Channels compatibility with Google App/Compute Engine?

2017-07-07 Thread Alex Z
Hello! I'm really new here, and also relatively new to Django, and I've been researching different ways to incorporate real-time updates with Django without specifically using AJAX. I dug around and found out about Django Channels, and I'm learning the basics right now. What I'm trying to do is

Channels: Sudden & Mysterious 400 Bad Request

2017-07-07 Thread jamie . bliss
I'm using Nginx -> Daphne -> Redis -> manage.py runworker. Nginx and daphne are both producing a 400 Bad Request to simple GET requests. I'm not seeing the request in the worker log (-v 3). Redis answers to `redis-cli ping`. Daphne logs look like it just served the request normally. Worker logs

Google analytics and request.resolver_match.url_name

2017-07-07 Thread Alex Riina
I'm getting familiar with google analytics and stumbled upon https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls in which the google docs recommend regexing out some unique ids. In django, it's a lot simpler to get something like /user/account/ fr

Re: Vim plugin that does Django code completion?

2017-07-07 Thread Robert F.
Thanks Mulianto and James. To James, perhaps I don't have a good workflow which is why the ability to edit files on a remote server is also a necessity. I grew tired of having to build a development environment on both my Mac laptop and my Debian server where my Django app runs so now I just

Re: Vim plugin that does Django code completion?

2017-07-07 Thread James Schneider
On Jul 7, 2017 8:27 AM, "Robert F." wrote: Is there a Vim plugin that does code completion for Django? I'd like to be able to type something like "foobar = models." and hit Tab and see a list of classes like CharField or Foreign key. Alternately, I'd be OK with entering an abbreviation that wou

Re: Vim plugin that does Django code completion?

2017-07-07 Thread Phang Mulianto
Hi You can use plugin on vim using snipmate. You can create your own autocomplete or using others created snip available for vim. Hope helps. On 7 Jul 2017 11:27 pm, "Robert F." wrote: > Is there a Vim plugin that does code completion for Django? I'd like to > be able to type something like

Django music streaming app using audiotracks..

2017-07-07 Thread IaMtheMcee
Hi, I'm relatively new to django.. I'm trying to integrate the audiotracks package with my project. I'm trying to integrate the audiotracks package but I'm getting NoReverseMatch error. The documentation states.. *Add ``audiotracks`` to your app~~~Ed

Vim plugin that does Django code completion?

2017-07-07 Thread Robert F.
Is there a Vim plugin that does code completion for Django? I'd like to be able to type something like "foobar = models." and hit Tab and see a list of classes like CharField or Foreign key. Alternately, I'd be OK with entering an abbreviation that would bring up the proper code snippet. The

Re: Class Based Views : filter items by users

2017-07-07 Thread Nabil BOUDERBALA
Thank you, I have updated the template accordingly. Regardin the views, I solved the issue through the function below : def itemuserfunc(request, user): template = get_template('dcf/user_item_list_noedit.html') profile_owner = DcfUser.objects.filter(username=user) # Assuming you have ent