How can I access field values generically?

2016-12-06 Thread Mike Dewhirst
Sorry about that ... here it is again. - - - - - - - - - - - - - - - - - - - Consider a chemical mixture with a bunch of ingredients. Both mixture and ingredients are instances of the same class so they have the same fields. They also have many related models, including 1:1, 1:n and n:m. Each

Re: Problem with Django and python social auth

2016-12-06 Thread Alessandro Bispo dos Santos
Please ignore the capital letters. The code is correct. social_auth = models.OneToOneField ( 'default.UserSocialAuth', related_name = 'social_influence') Em 05-12-2016 14:38, Alessandro Bispo dos Santos escreveu: Hello. I'm new in Django. Has anyone here worked with

Re: How to create static selection menu on the side of the page which the body of the page will display dynamic content based on user input?

2016-12-06 Thread mmbatayneh
Thank you, I will look into those On Monday, December 5, 2016 at 11:05:38 AM UTC-8, mmbatayneh wrote: > > I have an application that shows content and charts related to the > content. > > It works this way: First, users select the the type of content they want > to explore, and second, they

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
Well, my money are on AWS Elasticache, see if bypassing their proxy will do any good. It's probably a good idea to do so in testing environment with high load targeting elasticache and nothing else. Also it might be a good idea to write to AWS too, maybe there're other people with the same

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
The way it is set up there are 2 cache nodes in a cluster - a primary and a secondary. Then I have a seperate address to connect to the cache cluster - so there probably is some sort of proxy there, but I can't manipulate it - it's in the AWS Elasticache offering. I don't want to bypass the proxy,

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
You didn't answer about proxy. Also, do you reuse connections to redis.example.com ? Or create a new one for every request? If you aren't reusing them, maybe you should add timeout for connection creation and retry creating after timeout has exceeded. I know this

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
Hi, Thanks for you answer - I don't think the problem is with django either, but thought that maybe someone else has run into the same issues on AWS. My cache cluster worked fine for over 2 year as well, but now, not so much :-) 2016-12-06 14:35 GMT+01:00 GMail : > Hi! > >

Re: New django user

2016-12-06 Thread Mandanka Rajan
Check urls.py file. You haven't add polls app in urls.py file If you added, then check whether app is registered in your settings file or not On Tue, Dec 6, 2016 at 4:53 PM, Robert Scronic wrote: > I received the attached error when trying to verify tutorial part 1 django >

Re: How can I access field values generically?

2016-12-06 Thread Avraham Serour
please format the code at the bottom On Tue, Dec 6, 2016 at 2:11 PM, Mike Dewhirst wrote: > Consider a chemical mixture with a bunch of ingredients. Both mixture and > ingredients are instances of the same class so they have the same fields. > They also have many related

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
Hi! Do you by any chance have any proxy on top of Redis? Seems like Django has nothing to do with it, though. I don't know anything about dynamodb really, but I think implementing Django cache with dynamo as backend should work. I've implemented Redis Cluster cache for my project and it works

Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
Hi, We are having a strange problem with our redis elasticache instances on AWS. We have our sessions stored in a redis cluster on AWS. Our webservers sometimes get a: * Error connecting to redis.example.com:6379. timed out * Timeout reading from socket (I haven't included our real domain for

Re: New django user

2016-12-06 Thread GMail
As error page shows, your urlconf doesn't define a view for "/polls" URL. You should fix that. > On 6 Dec 2016, at 14:23, Robert Scronic wrote: > > I received the attached error when trying to verify tutorial part 1 django > error > > what should I do next? > > my django

New django user

2016-12-06 Thread Robert Scronic
I received the attached error when trying to verify tutorial part 1 django error what should I do next? my django version is 1.10.4 my python version is 3.5.2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

How can I access field values generically?

2016-12-06 Thread Mike Dewhirst
Consider a chemical mixture with a bunch of ingredients. Both mixture and ingredients are instances of the same class so they have the same fields. They also have many related models, including 1:1, 1:n and n:m. Each related model will have none or many TextField's. The objective is to

Re: How to create static selection menu on the side of the page which the body of the page will display dynamic content based on user input?

2016-12-06 Thread GMail
Hi! It seems like a task for a frontend, not for Django. Maybe have a look at ReactJS/AngularJS for such thing? > On 5 Dec 2016, at 22:03, mmbatayneh wrote: > > I have an application that shows content and charts related to the content. > > It works this way: First,