Re: Architectural suggestions for (Django + API)

2015-08-16 Thread Carl Meyer
Hi Julio, On 08/16/2015 04:59 PM, julio.lace...@m2agro.com.br wrote: > I created a project using Django (let's call this Project A) and now I > decided to start a new one but this time it is an API using Django REST. > So, for now I have to refactor Project A to consume data from API, but > in ord

Re: Not able to retain data in session after login

2015-08-16 Thread Dheerendra Rathor
Make sure you're not using 'dummyCache' in CACHE setting. And also check if you're not accidentally destroying the session. On Monday, 17 August 2015 00:25:14 UTC+5:30, Anil Kumar wrote: > > Hello All, > > In my web application, I am making an ajax call to save data in session as > user clicks

Efficient Large Binary File Streaming

2015-08-16 Thread kanav002
This is my first week using Django and version 1.8 in particular. I'm trying to figure out the best way to stream a raw, large, continuously growing binary file to a plotting function that is continuously updating the last 600 bytes of the binary file. This is primarily a client side applicatio

modelcluster

2015-08-16 Thread William Dimas
Hi everyone! I'm begginer on Django. I download tar.gz file from django modelcluster, but I have no idea how to install it. Other apps I've been installed via apt-get install. Thanks in advance. William Dimas -- You received this message because you are subscribed to the Google Groups "Djang

Re: Architectural suggestions for (Django + API)

2015-08-16 Thread James Schneider
Are you adding REST functionality to an existing project? Or will you be using a separate instance to provide only REST services and maintain two different code bases? I believe you can use the django-rest-framework to utilize the same views (literally) to provide a REST interface, so you may not

Architectural suggestions for (Django + API)

2015-08-16 Thread julio . lacerda
Hey guys, I have a question about an architectural issue and I would like to hear some suggestions about it. I created a project using Django (let's call this Project A) and now I decided to start a new one but this time it is an API using Django REST. So, for now I have to refactor Project A

Not able to retain data in session after login

2015-08-16 Thread Anil Kumar
Hello All, In my web application, I am making an ajax call to save data in session as user clicks on login button. After saving form data in session, control passes to login and after successful login, data saved in session is not there. I guess new session is being created after logging in. Ho

Re: Django: "Fake" multiple inheritance

2015-08-16 Thread gst
Will you care share it? I found the question interresting.. 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 email to django-users+unsubscr...@googlegroups.com. T

Re: Encrypted web mail

2015-08-16 Thread Sergiy Khohlov
Anyway this not solve Uri problem. Man in black ask about access to the user private data. Problem with auth by hash? It is not a problem. Reset password generates new hash. Let's imagine: Bad guy hack into system and has all data. passwords hash other tricks hosting at the server side is not a pro

Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-16 Thread François Schiettecatte
Why not learn both, seriously, spend 6 months learning one and then 6 learning the other. Bigger range of skills means you are more marketable. François > On Aug 16, 2015, at 9:45 AM, graeme wrote: > > A lot of it is a matter of personal preference, and a lot comes down to > whether you pref

Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-16 Thread graeme
A lot of it is a matter of personal preference, and a lot comes down to whether you prefer Python or Ruby. Python is more general purpose than Ruby, and a lot more general purpose than PHP, so it is much more likely to be useful outside web apps, or if you need unusual functionality within a we

Re: Django: "Fake" multiple inheritance

2015-08-16 Thread Michael Herrmann
Thank you Daniel, I found another way. Best, Michael On 14 August 2015 at 23:17, Daniel H wrote: > Hi Michael. > > First of all, setting the pk to the pk of a different model will do > nothing. > > You can do this however, using Foreign Keys >

Re: About local apps communication

2015-08-16 Thread durirompepc
Thanks for the responses. Now I'll try to explain ahead: If both apps are running on the same host (or more concisely, both apps can > access the database for app1), why not just add a database router to app2 > and have it pull the information directly? > https://docs.djangoproject.com/en/1.8/to

Re: Encrypted web mail

2015-08-16 Thread Uri Even-Chen
On Sun, Aug 16, 2015 at 11:18 AM, Avraham Serour wrote: > no, passwords shouldn't be encrypted, you should store hashes, just use > the django default auth app > > Yes, I meant storing the hash in the database and not the password. Uri. -- You received this message because you are subscribed t

Re: About local apps communication

2015-08-16 Thread James Schneider
Ah yes, my answer only applies if you have two separate instances of Django running with separate databases. That was my assumption since the full database is available to all apps within a single Django instance as Stephen mentioned. -James On Aug 16, 2015 3:55 AM, "Stephen J. Butler" wrote: >

Re: About local apps communication

2015-08-16 Thread Stephen J. Butler
These are all in the same project, right? In your app2 just do: from app1.models import MyUserModel Or maybe factor out the logic of app1/resources/user to a function and do from app2: from app1.utils import get_user_logic There's no special communication between Django apps required. All the c

Re: About local apps communication

2015-08-16 Thread James Schneider
If both apps are running on the same host (or more concisely, both apps can access the database for app1), why not just add a database router to app2 and have it pull the information directly? https://docs.djangoproject.com/en/1.8/topics/db/multi-db/ Another option would be to have logic in app2

About local apps communication

2015-08-16 Thread durirompepc
I had searched in the web about local communication between apps, but I didn't find anything (or, at least, didn't catch it) about calling an app from another. Let's say I've this: http://localhost:8000/app1/resources/user?id=123 http://localhost:8000/app2/list_users Each app (by the way, first

Re: Encrypted web mail

2015-08-16 Thread Avraham Serour
no, passwords shouldn't be encrypted, you should store hashes, just use the django default auth app On Sun, Aug 16, 2015 at 9:09 AM, Uri Even-Chen wrote: > Hi Dennis, > > > > On Sat, Aug 15, 2015 at 7:35 PM, Dennis Lee Bieber > wrote: > >> On Sat, 15 Aug 2015 12:47:17 +0300, Uri Even-Chen >> d