Re: import error: no module named viewflow.frontend

2017-02-23 Thread chris rose
did you add 'viewflow.frontend' to installed_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 gro

django

2017-02-23 Thread mohamed shawky
please i want to make a tow class for login and registration in django for my project -- 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...@

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-23 Thread t0mgs
I think I figured it out - I was rstartin **nginx** when I was should have been restarting my app server, **Gunicorn**. Surprisingly, restarting Gunicorn crashed my server Looking into it and will come back here if I get stuck again. Thanks for the swift reply, btw:) On Thursday, February

Re: Daphne does not handle wss requests

2017-02-23 Thread Andrew Godwin
It looks correct - can you connect using https://127.0.0.1:8003/ at that point either? It's really odd that apparently the connection doesn't even happen at all. Andrew On Thu, Feb 23, 2017 at 2:55 AM, Giovanni Colapinto < giovanni.colapi...@gmail.com> wrote: > Hi. > > Before open a bug, could y

Re: Connecting to a database with logged in user credentials

2017-02-23 Thread Melvyn Sopacua
Hi Konrad, On Thursday 23 February 2017 02:54:22 konrad.perz...@uni.lodz.pl wrote: > After starting the project, we've realised that db routing is limited > to the set of db connections that are statically described in django > settings. Just a few minutes before your post, a link was posted:

Request for advice on refactoring a big Django project

2017-02-23 Thread bobhaugen
Dear Django people, We are working on an open-source Django system that has grown both in terms of user and developer communities and also size of code base. It is in production with 370 users that we know of. It has several names, but one is NRP, which stands for Network Resource Planning

Re: Many to Many in Django Admin

2017-02-23 Thread Melvyn Sopacua
On Thursday 23 February 2017 05:22:25 José Vicente Jonas França wrote: > I Like to know if its possible to display the many-to-many field in > both pages of Model at Django Admin. > If it is possible how can i do this? All available in the documentation[1]. -- Melvyn Sopacua [1] http

Re: Flattening model relationships (in APIs)

2017-02-23 Thread Melvyn Sopacua
On Wednesday 22 February 2017 00:39:42 Ankush Thakur wrote: > I'm using DRF for an API. My problem is that I defined my postal > address like this (breaking it up into City, State, Country): ... > So there's a hell lot of nesting from city to state to country. If the > relationship chain was even

Re: Flattening model relationships (in APIs)

2017-02-23 Thread Ankush Thakur
Hey Mike, Thanks for your thoughts. Perhaps I presented my requirement incorrectly. I don't at all want to denormalize the database. My point was that because of the way models are related, I'm ending up with city containing state containing country. This, I feel, would be a chore for the front

Re: Flattening model relationships (in APIs)

2017-02-23 Thread Ankush Thakur
Also, I don't have any need of providing several types of addresses as of now. For now I'm just sticking with outputting everything when the address is requested. ~~ Ankush On Thursday, February 23, 2017 at 9:13:01 PM UTC+5:30, Ankush Thakur wrote: > > Hey Mike, > > Thanks for your thoughts. Pe

Many to Many in Django Admin

2017-02-23 Thread José Vicente Jonas França
Hello! I Like to know if its possible to display the many-to-many field in both pages of Model at Django Admin. If it is possible how can i do this? Thanks. Best Regards, José Vicente. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: Using Django Channels to subscribe to a Redis channel

2017-02-23 Thread Jochen Breuer
Hi Andrew, thanks for your very detailed answer! This is much simpler that anticipated. You are absolutely right, a management command is the most simple approach here. That was the missing piece in my picture. Thank you very much! Jochen Am Mittwoch, 22. Februar 2017 19:55:33 UTC+1 schr

Re: Issues saving hex format data to binaryfield

2017-02-23 Thread Melvyn Sopacua
On Thursday 23 February 2017 13:06:31 ludovic coues wrote: > Notice how Brian print self.rfid before and after affecting the new > value. The second print should display the updated data. As it is not > the case, I highly doubt save will change the value in db. The two prints are different. How di

Re: Issue with mongo in Django

2017-02-23 Thread Gaurav Pandey
Hi Ashish, I know it's been long since you worked on this problem. I am not able to get past this error despite trying these solution. Is there a permanent sort of fix for this problem? could you please help me out. Thanks! On Wednesday, June 24, 2015 at 3:43:45 AM UTC+5:30, Ashish Khatkar wrot

Re: Issues saving hex format data to binaryfield

2017-02-23 Thread ludovic coues
Notice how Brian print self.rfid before and after affecting the new value. The second print should display the updated data. As it is not the case, I highly doubt save will change the value in db. Ok, look like I misread the code when writing my previous reply. Now I'm all curious about how did y

Daphne does not handle wss requests

2017-02-23 Thread Giovanni Colapinto
Hi. Before open a bug, could you please tell me if my setup is ok? Daphne 1.0.3 channels 1.0.3 routing.py channel_routing = [ route("websocket.connect", ws_connect, path=r"^/ws/chat/$"), route("websocket.connect", ws_connect_updates, path=r"^/ws/updates/$"), route("websocket.receive

DatabaseRouter, add on runtime add new items to db.connections

2017-02-23 Thread Matthieu Guffroy
Hello, We are using in our system for more than 2 years now, a specific DatabaseRouter allowing us to use multiple databases depending on which clients is connecting. It appears now, that the databases lists start to be really big, and that it becomes bad to be forced to re-deploy our backend t

Connecting to a database with logged in user credentials

2017-02-23 Thread konrad . perzyna
Is it possible to create database ENGINE that would be able to pass credentials of logged in user to DatabaseWrapper.connect() method? We want to build rest api with Django that would base on a legacy Postgresql database. We've got permissions to objects ensured on database level, so a user log

import error: no module named viewflow.frontend

2017-02-23 Thread angelachakupa.at
hie guys m getting this error * Import error: no module named viewflow.frontend * yet i followed the procedures on how to apply the view flow module what could be the problem. Flow.py from viewflow import flow,lock from viewflow.base import this, Flow from viewflow.contrib import ce

DatabaseRouter and connections

2017-02-23 Thread Matthieu Guffroy
Hi, For long time we use a DatabaseRouter and a middleware to choose database to use on the fly. With the time going we have now a lot too much databases configurations in our settings. So we have made something to dynamically load database configuration in django.db.connections when they are n

Re: Issues saving hex format data to binaryfield

2017-02-23 Thread Melvyn Sopacua
On Wednesday 22 February 2017 14:47:55 Brian O'Connell wrote: > def set_rfid(self,rfid_new): > print self.rfid # print the existing object data > try: > self.rfid = bytearray(rfid_new) > print self.rfid > except Exception as ex: > tem

Re: Django official tutorial part 2 problem - model won't show on admin site

2017-02-23 Thread ludovic coues
Do you mind showing your admin.py ? On 23 Feb 2017 3:27 a.m., "t0mgs" wrote: > Hi there, > > I've posted another topic but it seems to have gotten lost somehow. Not > sure if there's approval needed or something. > > Anyways - I got stuck in this part of the tutorial >

Re: django channels in the shell

2017-02-23 Thread chris rose
thank you. i completely overlooked that function -- 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 grou