Google App Engine / Django / Django-nonrel Best Practices

2014-07-05 Thread Adam Simon
Hello, What is the status of Django-nonrel, it seems that there have been a few changes recently on github, but not much overall news, especially on their website? If i try to use Django 1.5 (GAE's latest version) are there any good tutorials / blogs on how to get it working with NDB other t

Google App Engine / Django / Django-nonrel Best Practices

2014-07-16 Thread Adam Simon
Anybody? -- 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 group, send email to django-users@googlegrou

Re: Google App Engine / Django / Django-nonrel Best Practices

2014-07-18 Thread Adam Simon
Thanks Russ. I don't mean to answer my own question, but this is what I found to date: There is a website: http://django-nonrel.org I found that seems to be pretty recent even though for some reason it has a copyright of 2011 There's also an installation guide at: https://media.readthedocs.

Re: Django on App engine

2014-06-11 Thread Adam Simon
This is a great question! I would also like to hear some answers ... Adam On Thursday, May 1, 2014 4:46:38 AM UTC-7, Venkatraman.S. wrote: > > Hi, > > Has anyone or is anyone running a reasonably large django webapp on GAE? > Looks like it has become >

Re: Add a processing page between submit page and result page

2017-11-07 Thread Adam Simon
On Tue, Nov 7, 2017 at 6:28 AM C. Kirby wrote: > You have two choices. One would be to use the relatively new Channels > feature, which allows you to keep a communication stream open so that you > would have the processing page show until the sever notified the client > that it was done and sent

Re: Django - Pass a model instance specified by template tags to the view

2017-11-08 Thread Adam Simon
On Wed, Nov 8, 2017 at 1:38 PM Jack wrote: > On my HTML page, I have a list of Agent's (Agent is my custom User > model). Beside each agent is a 'Send Invite' button. To create a > `TeamInvitation`, I need to specify which Agent is attached to its > `receiver_agent` field (a OneToOneField with

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Adam Simon
Each form would be generated by a loop; still I would go with the hidden field. Look forward to seeing how it goes. On Thu, Nov 9, 2017 at 6:46 AM Jack wrote: > There will be a lot of agents in the database, so would it violate the DRY > principle if I were to write a form for each agent? Plu

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Adam Simon
Hi Jack. I will write some more details when I get home. Have you ever used Ajax? On Thu, Nov 9, 2017 at 3:14 PM Jack wrote: > Ok I'm very stuck. Thought very hard about it but can't see how I can add > a hidden field into the HTML, and relay the specified instance of the > hidden field back to

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Adam Simon
2017 at 6:19 PM, Adam Simon > wrote: > >> >> Hi Jack. I will write some more details when I get home. Have you ever >> used Ajax? >> >> On Thu, Nov 9, 2017 at 3:14 PM Jack wrote: >> >>> Ok I'm very stuck. Thought very hard about it but can

Re: Django Templates and Conditional CSS classes

2017-11-10 Thread Adam Simon
Are you open to using JavaScript in the front end? It would make it really easy On Fri, Nov 10, 2017 at 12:40 PM treyd wrote: > Hello, > > I am trying to render a model field in a django template, and, based on > the value of the field, I want to specify a different CSS class. Right > now, my s

Re: Django Templates and Conditional CSS classes

2017-11-10 Thread Adam Simon
You can pass the class from either the model or the view into the template. For example, you can assign a class to a button with a variable: <|button> And then the class would have to be defined in your style somewhere On Fri, Nov 10, 2017 at 1:37 PM treyd wrote: > At some point I plan on fig

Re: Requesting data from an API and rendering data on website

2015-11-18 Thread Adam Simon
With all respect Jani, I do not think this is the right answer. Django-cms per se does not give top level access to the views, so integrating pure python is not as easy as it sounds. Adam On Wednesday, November 18, 2015 at 3:50:46 AM UTC-8, Jani Tiainen wrote: > > Then I suggest that you do

Channels chat consumer behaves differently in prodcution vs development

2019-10-06 Thread Adam Simon
I am using channels 2.x (along with nginx, daphne, redis and gunicorn) In the local console I can see the user data I added in the chat consumer but not in my production environment (in production everything else works, but the user is undefined. Note: the user is logged in. Does anyone