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 have any idea why that might be?


I followed the doc tutorial and the only thing i added was the line 
commented below


class ChatConsumer(WebsocketConsumer):

def chat_message(self, event): 
message = event['message'] # Send message to WebSocket 
self.send(text_data=json.dumps({
'user': self.scope["user"].first_name, # <<< this is the line I 
added 
'message': message 
}))


Thanks,

Adam 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/83adb17f-da67-4c2e-aec2-658566a43e7e%40googlegroups.com.


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 figuring out how to do more intelligent front-end
> in-browser stuff (Angular, etc) which yeah would definitely help me here
> but I was wondering if there was a Django-only way of doing this.
>
>
> On Friday, November 10, 2017 at 3:51:09 PM UTC-5, Adam wrote:
>
>>
>> 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 solution is this:
>>>
>>> {{ myobject.state }}
>>>
>>> This works, but seems like a really ugly solution and a bunch of logic
>>> in the template.  Is there a better way of doing this?  My thought was to
>>> put the class names as another field in the model, but that seems like it
>>> would violate the MVC (or MVT) separation. Any ideas?
>>>
>>> Thanks in advance,
>>> treyd
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>
>>
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6a3adb62-f3d7-4cc2-8c97-add34cf757ce%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> --
>>
>> Adam F. Simon, PhD
>> Calabasas, CA.
>>
>> cell:  818-425-3719
>> home:   818-880-8405
>>
>> Feel free to link w/ me: LinkedIn
>>
>>
>> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/360d495a-6715-40a6-ae25-4ee5aed7e3cc%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcwVhxnbn9uRr1C7kR4SP6mB9CN-rAzRU28tCMLZ64bosw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 solution is this:
>
> {{ myobject.state }}
>
> This works, but seems like a really ugly solution and a bunch of logic in
> the template.  Is there a better way of doing this?  My thought was to put
> the class names as another field in the model, but that seems like it would
> violate the MVC (or MVT) separation. Any ideas?
>
> Thanks in advance,
> treyd
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6a3adb62-f3d7-4cc2-8c97-add34cf757ce%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcxcvk9EU8Vv6TJrHe9De0fRDtfC6ui0P659hNo1Q3SF3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-11-09 Thread Adam Simon
I would recommend taking a look at how Jquey does Ajax. It’s a lot simpler
than Django forms. I will post some example code when I get home


On Thu, Nov 9, 2017 at 3:42 PM Jack Zhang <valachio...@gmail.com> wrote:

> No I am not familiar with Ajax.  I only know a bit of JavaScript.
> ᐧ
>
> On Thu, Nov 9, 2017 at 6:19 PM, Adam Simon <add.simm.8...@gmail.com>
> 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 <valachio...@gmail.com> 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 the views... or am I completely off about something?
>>>
>>> Also in regards to the looped form's.  If you look at my original code,
>>> I actually do have a  representing a button for each agent.  The
>>> resulting page looks like this
>>> <https://i.gyazo.com/bf67b8a3808fb14a265459776847c08b.png> (excuse the
>>> bad CSS).  I'm not sure if that is what you meant by having a form for each
>>> agent.
>>>
>>> So if I understood you correctly, I do have a separate  input for
>>> each displayed agent; looped with {% for agent in agent_list %}.  The
>>> question is, how do I relay the correct agent linked to its 'Send Invite'
>>> button back to the views?
>>>
>>> --
>>> 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@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/eab1a4c0-2cc1-41d0-aace-f8ef3fd73112%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/eab1a4c0-2cc1-41d0-aace-f8ef3fd73112%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> --
>>
>> Adam F. Simon, PhD
>> Calabasas, CA.
>>
>> cell:  818-425-3719 <(818)%20425-3719>
>> home:   818-880-8405 <(818)%20880-8405>
>>
>> Feel free to link w/ me: LinkedIn
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/k5mwo58aPfU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>
>
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAH-jdcw11Z1w2qRCkuwzdXL0qFNXD1PkLJsw6sRSVHNDBfWAfQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAH-jdcw11Z1w2qRCkuwzdXL0qFNXD1PkLJsw6sRSVHNDBfWAfQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> *Jack Zhang*
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFoBqVb8fnSgFDb451yhZavF3gdguKxYj%3DAPnpSYq3c2sEyZ8w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFoBqVb8fnSgFDb451yhZavF3gdguKxYj%3DAPnpSYq3c2sEyZ8w%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdczXzQ2SOQoMoi1EGsSMy5e6ZbS%2BKHFzmiijEewf5uLhrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 the views... or am I completely off about something?
>
> Also in regards to the looped form's.  If you look at my original code, I
> actually do have a  representing a button for each agent.  The
> resulting page looks like this
>  (excuse the
> bad CSS).  I'm not sure if that is what you meant by having a form for each
> agent.
>
> So if I understood you correctly, I do have a separate  input for
> each displayed agent; looped with {% for agent in agent_list %}.  The
> question is, how do I relay the correct agent linked to its 'Send Invite'
> button back to the views?
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eab1a4c0-2cc1-41d0-aace-f8ef3fd73112%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcw11Z1w2qRCkuwzdXL0qFNXD1PkLJsw6sRSVHNDBfWAfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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?  Plus it'll be super
> time consuming.
>
> I'm going to try the hidden agent.id thing, I never thought about that.
> I'll report back to see if I managed to get it working.
>
> On Wednesday, November 8, 2017 at 6:24:29 PM UTC-5, Adam wrote:
>>
>>
>> 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 Agent)
>>>
>>> There are multiple Agents displayed on the HTML page, and they are
>>> listed in order with template tags.  I need to input something after `pk`
>>> at `receiver_agent = Agent.objects.get(pk = ???)`, but I don't know what to
>>> input.
>>>
>>> *views.py*
>>>
>>> class InviteAgentSearchResults(ListView):
>>> model = Agent
>>> form_class = AgentSearchForm
>>> template_name = 'invite_agent_search_results.html'
>>>
>>> def get_queryset(self):
>>> # ... Code to find correct list of agents
>>>
>>> def post(self, request, *args, **kwargs):
>>> invite = TeamInvitation.objects.create(receiver_agent =
>>> Agent.objects.get(pk = ???))
>>> return HttpResponse('Invite successfully sent.')
>>>
>>> *HTML:*
>>>
>>> {% for agent in agent_list %}
>>> 
>>> # ... Some code here
>>>
>>>   # The "Send Invite" button
>>> {% csrf_token %}
>>> Send Invite
>>> 
>>> 
>>> {% endfor %}
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>
>>
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/bd0439e2-7fdd-4f7c-b6ce-4847d4a877c8%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> It seems to me that the quickest thing would be to make each agent a
>> separate form.
>>
>> Alternatively, you could set up some JavaScript:
>>
>> Add the agent.id to a hidden input,  separated by commas, and have that
>> hidden field submitted via the form
>>
>> Then on the backend separate out each ID and have the invites sent one by
>> one. I would be happy to write some code if you wish.
>>
>>
>> --
>> --
>>
>> Adam F. Simon, PhD
>> Calabasas, CA.
>>
>> cell:  818-425-3719
>> home:   818-880-8405
>>
>> Feel free to link w/ me: LinkedIn
>>
>>
>> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/49997913-66f3-416d-847e-d2ba69459f0c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcynxsBd0JoBqf0tX9SdutSFzS%3DfJ0twMW9s5C%3DOpe4Hhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 Agent)
>
> There are multiple Agents displayed on the HTML page, and they are listed
> in order with template tags.  I need to input something after `pk` at
> `receiver_agent = Agent.objects.get(pk = ???)`, but I don't know what to
> input.
>
> *views.py*
>
> class InviteAgentSearchResults(ListView):
> model = Agent
> form_class = AgentSearchForm
> template_name = 'invite_agent_search_results.html'
>
> def get_queryset(self):
> # ... Code to find correct list of agents
>
> def post(self, request, *args, **kwargs):
> invite = TeamInvitation.objects.create(receiver_agent =
> Agent.objects.get(pk = ???))
> return HttpResponse('Invite successfully sent.')
>
> *HTML:*
>
> {% for agent in agent_list %}
> 
> # ... Some code here
>
>   # The "Send Invite" button
> {% csrf_token %}
> Send Invite
> 
> 
> {% endfor %}
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bd0439e2-7fdd-4f7c-b6ce-4847d4a877c8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
It seems to me that the quickest thing would be to make each agent a
separate form.

Alternatively, you could set up some JavaScript:

Add the agent.id to a hidden input,  separated by commas, and have that
hidden field submitted via the form

Then on the backend separate out each ID and have the invites sent one by
one. I would be happy to write some code if you wish.


-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcwcBY1weuVrgT%2Bcrq_B4iqTECBznUDB%2BMHjDYc84fM%3DXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 the data. I've not worked with Channels much, so
> if you have questions about that you can follow up to this list.
>
> The other option is to have a model that stores the result of the
> calculation. Example
>
> class CalcResult(models.Model):
> result = models.IntegerField(blank=True, null=True)
>
> When the user submits the parameters you would create a new instance of
> this class:
>
> current_calc = CalcResult.objects.create()
>
> Now that you have that object you can pass the pk back to your processing
> view. Inside the processing view you can use javascript to poll the server
> with a view that checks if the pk has a result yet. when it gets a result
> you load the page that shows the result.
>
> Be aware that you cannot do this in the standard request/response cycle.
> When you send a response the interaction is done. In order to have your
> long running calculation work while the client is interacting with the
> system via a processing page you will need to use something like Celery or
> django-rq to offload the long running calculation.
>
> Hope this helps,
> Kirby
>
> On Monday, November 6, 2017 at 2:46:41 PM UTC-5, Ruifeng Hu wrote:
>>
>> Hi All,
>>
>> I am writing a project, on the submit page, a user submits some
>> parameters, then the server side will take a calculation that may take a
>> while, I want to add a waiting page to tall users that it is running on the
>> server. When the result is ready, it will automatically jump to the result
>> page.
>> I do not know what I should do to get these!
>>
>> Is there anyone can help me!
>>
>> Thank You!
>>
>> Best,
>> Ruifeng Hu
>>
> It seems to me that the easiest way to do this is via an Ajax call in
JavaScript.  In my experience channels is very hard to set up.
-- 
-- 

Adam F. Simon, PhD
Calabasas, CA.

cell:  818-425-3719
home:   818-880-8405

Feel free to link w/ me: LinkedIn

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-jdcwmGAzDa_1uSAHySxMEpMwf%2BpfGczKtNL6Y0iZFDpMOMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 official tutorial from Django documentation.
>
> It will give you a grasp what Django itself is and how it works. Django 
> CMS is just built on top of Django so principles do apply there as well.
>
> On 18.11.2015 13:14, nAncy sharma wrote:
>
> Hi Avraham,
>
> Yes that should work.
> But since i am new to django cms , i don't know the files (ex: model.py 
> ,view.py etc ) which all files need changes and where does the actual code 
> of requesting to an API is to be written.
>
>
>
>
> On Wednesday, November 18, 2015 at 4:26:16 PM UTC+5:30, Avraham Serour 
> wrote: 
>>
>> Can you do it in plain python?
>>
>> On Wed, Nov 18, 2015, 12:34 PM nAncy sharma  wrote:
>>
>>> Hi, 
>>>
>>>
>>> I am using Django Cms 3.1.3. I want to give a call (request ) to an API 
>>> and display the result on my website. 
>>> Could anyone help me with this ? I am new to django cms !
>>> -- 
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> 
>>> https://groups.google.com/d/
>>> msgid/django-users/85c04d98-8cbe-414b-808a-6ff1dede2442%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> 
> https://groups.google.com/d/msgid/django-users/7dc809a0-4f20-4cd6-99b8-d50e3e186285%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
>
> Jani Tiainen
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/83c6cf6f-5b55-43c0-91a7-d09818d197d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.org/pdf/djangoappengine/latest/djangoappengine.pdf 
that has a date of May 19, 2014, pretty recent. 

If anyone has any more thoughts I would appreciate it, 

Adam

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4665e9e8-b3f7-4737-9b96-ec153bfc82ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eff6d284-3f25-43b8-9c7b-e76f268f97e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 than on the 
Google developers site?

I have found:

GAE Cupboard .. it seems to have stopped updating

Udemy, which has a course that does nto seem to include Django

This is a great one:

  
http://rem4me.me/2013/06/writing-your-first-django-web-app-with-google-app/ 
sadly, there does not seem to be a part 2.


Any other hints would be appreciated!

Thanks,

Adam

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a2baf8ed-0540-4ed1-900b-934335ef3e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
> 
>  
> reasonably easier now compare to what it was a few years back. Any 
> experiences?
>
> regards,
> Venkat
>  

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e2c7d571-516e-4fd9-9298-fc80784c351e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.