Re: Polls app not showing?

2019-06-30 Thread Joe Reitman
What does your project directory look like?



On Sunday, June 30, 2019 at 8:29:02 PM UTC-5, Scott Winter wrote:
>
> Sorry, you'll have to be clearer than that. Not sure how to do that nor 
> how it relates to the issue
>
> On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:
>>
>> Create virtual environment
>>
>> On Fri, Jun 28, 2019, 6:14 AM ScottW  wrote:
>>
>>> The server ran a few weeks ago before I ran into this issue. I used the 
>>> run server command just now and now its not working. Interesting
>>>
>>> On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:



 On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:
>
> Hi, 
>
> I'm attempting to get started with Django and very first part of the 
> polls app. When I type "python manage.py startapp polls"  into the 
> Windows 
> Powershell I don't see a folder for it in my file explorer under 
> "mysite". 
> Even stranger is that when I type 'tree' for this folder it shows that 
> its 
> on the computer, but there's nothing in it besides 'migrations' and 
> '_pycache_ '. Please refer to the screenshot attached for a picture of 
> the 
> Powershell code. If someone could help steer me in the right direction 
> that 
> would be great! 
>



 Can you run the server Without Creating a new app? 

>>> -- 
>>> 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...@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/003f95c0-4e7d-4806-af90-6a4e9f6da018%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+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/f0096a2f-3e0b-4a27-88d9-09e5a33e5781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polls app not showing?

2019-06-30 Thread Scott Winter
Sorry, you'll have to be clearer than that. Not sure how to do that nor how 
it relates to the issue

On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:
>
> Create virtual environment
>
> On Fri, Jun 28, 2019, 6:14 AM ScottW > 
> wrote:
>
>> The server ran a few weeks ago before I ran into this issue. I used the 
>> run server command just now and now its not working. Interesting
>>
>> On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:
>>>
>>>
>>>
>>> On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:

 Hi, 

 I'm attempting to get started with Django and very first part of the 
 polls app. When I type "python manage.py startapp polls"  into the Windows 
 Powershell I don't see a folder for it in my file explorer under "mysite". 
 Even stranger is that when I type 'tree' for this folder it shows that its 
 on the computer, but there's nothing in it besides 'migrations' and 
 '_pycache_ '. Please refer to the screenshot attached for a picture of the 
 Powershell code. If someone could help steer me in the right direction 
 that 
 would be great! 

>>>
>>>
>>>
>>> Can you run the server Without Creating a new app? 
>>>
>> -- 
>> 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...@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/003f95c0-4e7d-4806-af90-6a4e9f6da018%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+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/42b1b4f9-fa43-4bb8-b9e0-b8f3cc0d2d30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy django on AWS

2019-06-30 Thread Aldian Fazrihady
Experimenting on AWS features is the best way to learn. You shouldn't worry
about cost when you only experimenting 1-3 hours per day and immediately
stop your running AWS CPU resources when you are done.
Moreover,  if you are using a new AWS account,  you get 1 year of free
access to many resources.

My spot EC2 instance is relatively cheap that it costs me less than $5 a
month.

To use spot instances, you need to use autoscaling.  Autoscaling costs you
no money.

When you started to use managed computation resources,  such as RDS, or
ElastiCache,  monthly costs are starting to become expensive. You can
prevent that if you are able to manage Database and Cache on your own EC2
instances.

Once you comfortable with those items,  you try to automate deployment by
creating automation script based on git and AWS Command Line Interface.

Regards,

Aldian Fazrihady

On Sun, 30 Jun 2019, 23:37 Harshit Agarwal, 
wrote:

> Hello Django users,
> I want to host my django website on aws, This is first time that i am
> hosting a website. Can u suggest any good resource from which i can learn?
>
> Thank you
>
> --
> 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/CAE%2BC-X_ROpNGnGGQKt7VDE3Bb%2BL1O8q2GAY91JWfgdwA7kKZFQ%40mail.gmail.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+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/CAN7EoAbfkGk08ZuViDUXf84_XnQGyejsJynKbBfzFrBUUmzCAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help me fix this chat feature

2019-06-30 Thread Aldian Fazrihady
I think if you run multiple users on the same PC,  you should use different
browsers, or at least private/incognito mode.

It is because Django gave one browser session to one user. If you are
still  using one browser,  Django thinks only one user accessing the app.

Regards,

Aldian Fazrihady

On Sun, 30 Jun 2019, 23:57 Rizqullah T,  wrote:

> This is my pet project to build a skill exchange platform. For 3 days I've
> been banging my head to make the chat working properly. Suppose I logged in
> as user A then chat to user B, I open another window then logged in as user
> B, but whenever I try to chat it will always connected to user A. Check out
> here on github https://github.com/eryzerz/skill-x
>
> --
> 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/7bda08b9-f920-49b3-83f9-c51a149662e1%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+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/CAN7EoAZBF7mv_TdtxdWgecMRbhK0N6CJ-kRS%3DTjJG-FBpVYSmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2019-06-30 Thread Charlotte Wood
can you use a form/model/template instead?


Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

*Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site:
https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckes...@epiccharterschools.org

 






On Sat, Jun 29, 2019 at 9:12 PM mail2pramo  wrote:

> Inside the input field I get this.
>
>
> On Jun 30, 2019 12:04 AM, "Thomas POKAM"  wrote:
>
>> Can you give more details please ?
>>
>> Le 29/06/2019 à 15:34, pramod a écrit :
>>
>>> How to get the input from the user in table
>>>
>>>
>> --
>> 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/561bf16b-c994-f68c-6cb6-29af890c622d%40gmail.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+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/CABWAz%3D3iN9_1uQ02ONWmBr7Q-iXyNABCohEQnnzZPrSmCKu6Pg%40mail.gmail.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+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/CAPZR0N7vnmFximxYjf0EKbG%2Bck-A0KDkZHSAjVP8Xwram8LTKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sending Email from form

2019-06-30 Thread Sithembewena L. Dube
Basically, you would need to build it in string form.

This could be done through a combination of string interpolation and
concatenation.

Here is my quick hack below (I have not shown all the code).

There is a cleaner way to do this, e.g. using templates, but I wanted
something that would "just work" for the time being.

first_name = form.cleaned_data['first_name']
last_name = form.cleaned_data['last_name']
start_date = form.cleaned_data['start_date']
number = form.cleaned_data['number']
message = form.cleaned_data['message']
number_of_people = form.cleaned_data['number_of_people']
if is_type == 'admin':
sender = form.cleaned_data['email']
return 'Booking request for "{}" tour starting '.format(tour) + str(start_date)
+ ' from {} {}.'.format(first_name, last_name) + \
'\n\nNumber of people: {}'.format(number_of_people) + \
'\n\nThe message is as follows: \n\n"' + message + \
'"\n\nSent by: {} {}'.format(first_name, last_name) + '\n' + sender + '\n'
+ number
elif is_type == 'client':
return 'Dear ' + first_name + ' ' + last_name + ',\n\n' +\
'Your booking request for our "{}" Tour has been received.'.format(tour) + \
'\n\nNumber of people: {}'.format(number_of_people) + \
'\n\nThe message is as follows: \n\n"' + message + \
'"\n\nWe will respond as soon as possible.' +\

Kind regards,
Lloyd


*Sent with Shift
*

On Sat, Jun 29, 2019 at 8:00 PM Emmanuel klutse  wrote:

> Thanks ones again,
> -How do I build a message and include the email in its text please. I can
> I get a snippet please.
> Thanks
>
> On Sat, 29 Jun 2019 at 5:28 PM, Sithembewena L. Dube 
> wrote:
>
>> You're welcome Emmanuel.
>>
>> Fyi, I think using one email as the 'from' address and sending the
>> user-provided one in the email body may be easier, as mail sent from
>> different addresses yet from the same mail server IP address may be flagged
>> as spam (Barracuda Networks
>>  is an example of
>> such an enforcer).
>>
>> My solution was as follows:
>>
>> - Declare a Django Form
>>  that accepts the
>> email address. Call the field whatever you like, e.g. 'email_address'
>> - In your view, if request.method == 'POST':
>> -if form.is_valid():
>> -email_address = form.cleaned_data['email_address']
>> - Build a message and include the email in its text
>> - Call send_mail(...) and use an email address you provided (as the
>> 'from' address)
>>
>>
>> Kind regards,
>> Lloyd
>>
>>
>> *Sent with Shift
>> *
>>
>> On Sat, Jun 29, 2019 at 6:25 AM Emmanuel klutse 
>> wrote:
>>
>>> Thank you Dube!!! Will check it out and update shortly.
>>>
>>> Sent from my iPhone
>>>
>>> On 29 Jun 2019, at 2:27 AM, Sithembewena L. Dube 
>>> wrote:
>>>
>>> I just finished a project where I did the same thing you require.
>>>
>>> I used the Mailgun API.
>>>
>>> The relevant documentation can be found here:
>>>
>>> https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api
>>>
>>> Kind regards,
>>> Lloyd
>>>
>>>
>>> *Sent with Shift
>>> *
>>>
>>> On Fri, Jun 28, 2019 at 8:22 PM Emmanuel klutse 
>>> wrote:
>>>
 Hello Team.
 I’m new to programming and I’ve been studying Django for 6 months now.
 I just started my first project and i need help with handling sending
 emails from a user form.
 I am using send_mail function to allow anyone who wants to contact me
 through my contact page. Its is working fine but I need a way for Django to
 allow me get an email from my application using the email address provided
 by the user in fill the form instead of the one I provided in settings.py.
 Please help…. I have been on this for the past one week.

 *I’m also available to assisting anyone who needs someone with my level
 on a project for free. *

 *Thank you*
 *Emmanuel klutse*
 *+233202729851*

 --
 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/60A5D9BF-5096-4824-90D2-7149E1ACC82E%40gmail.com
 

Re: deploy django on AWS

2019-06-30 Thread Malcolm MacKinnon
I use this: 
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

There's a lot more to learn, especially if you want to connect to a
database like postgres, but this is a good place to start.

On Sun, Jun 30, 2019 at 9:52 AM Anirudh Jain  wrote:
>
> You can use ubuntu+nginx+gunicorn. There are some blogs on digital ocean 
> regarding deployment. After you launch an ec2 instance on aws and connect to 
> it via ssh from terminal, it won't matter whether you are using aws or 
> digital ocean.
>
> On Sun, 30 Jun 2019, 22:07 Harshit Agarwal,  
> wrote:
>>
>> Hello Django users,
>> I want to host my django website on aws, This is first time that i am 
>> hosting a website. Can u suggest any good resource from which i can learn?
>>
>> Thank you
>>
>> --
>> 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/CAE%2BC-X_ROpNGnGGQKt7VDE3Bb%2BL1O8q2GAY91JWfgdwA7kKZFQ%40mail.gmail.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+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/CAC3mK7e_yHXZqd%2BGe6%2B6O1G2yA3hGDfUbywGag7Zw-Tx_3RuAg%40mail.gmail.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+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/CAK8W3XoXWBBgHpij_6xJymxfR1x2fZAD7yCtZkDF%2BfrH7Uii5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Help me fix this chat feature

2019-06-30 Thread Rizqullah T
This is my pet project to build a skill exchange platform. For 3 days I've 
been banging my head to make the chat working properly. Suppose I logged in 
as user A then chat to user B, I open another window then logged in as user 
B, but whenever I try to chat it will always connected to user A. Check out 
here on github https://github.com/eryzerz/skill-x

-- 
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/7bda08b9-f920-49b3-83f9-c51a149662e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-06-30 Thread Joe Reitman
I use the JSON module to encode and decode JSON. 

On Sunday, June 30, 2019 at 9:26:04 AM UTC-5, David Elphee wrote:
>
> I guess I don’t even need Django or models to do what I described.  But 
> yes, for future functionality, I’d like to be able to store JSON to a 
> database. 
>

-- 
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/01df4ac2-845e-4e21-8726-1a90f4704c2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy django on AWS

2019-06-30 Thread Joe Reitman
https://www.zappa.io/

It's not easy to configure but it does work well when up and running.

On Sunday, June 30, 2019 at 11:37:20 AM UTC-5, Harshit wrote:
>
> Hello Django users,
> I want to host my django website on aws, This is first time that i am 
> hosting a website. Can u suggest any good resource from which i can learn?
>
> Thank you
>

-- 
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/230f1ace-e6c7-4ab3-9d17-c073377a2b9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy django on AWS

2019-06-30 Thread Joe Reitman
https://www.zappa.io/

On Sunday, June 30, 2019 at 11:37:20 AM UTC-5, Harshit wrote:
>
> Hello Django users,
> I want to host my django website on aws, This is first time that i am 
> hosting a website. Can u suggest any good resource from which i can learn?
>
> Thank you
>

-- 
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/39e451b4-efd6-462c-9fc3-b132ece89988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy django on AWS

2019-06-30 Thread Anirudh Jain
You can use ubuntu+nginx+gunicorn. There are some blogs on digital ocean
regarding deployment. After you launch an ec2 instance on aws and connect
to it via ssh from terminal, it won't matter whether you are using aws or
digital ocean.

On Sun, 30 Jun 2019, 22:07 Harshit Agarwal, 
wrote:

> Hello Django users,
> I want to host my django website on aws, This is first time that i am
> hosting a website. Can u suggest any good resource from which i can learn?
>
> Thank you
>
> --
> 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/CAE%2BC-X_ROpNGnGGQKt7VDE3Bb%2BL1O8q2GAY91JWfgdwA7kKZFQ%40mail.gmail.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+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/CAC3mK7e_yHXZqd%2BGe6%2B6O1G2yA3hGDfUbywGag7Zw-Tx_3RuAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


deploy django on AWS

2019-06-30 Thread Harshit Agarwal
Hello Django users,
I want to host my django website on aws, This is first time that i am
hosting a website. Can u suggest any good resource from which i can learn?

Thank you

-- 
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/CAE%2BC-X_ROpNGnGGQKt7VDE3Bb%2BL1O8q2GAY91JWfgdwA7kKZFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
I guess I don’t even need Django or models to do what I described.  But yes, 
for future functionality, I’d like to be able to store JSON to a database.

-- 
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/b5118e11-dcf5-4dfb-8135-dfe8b42a4395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
*JSON

-- 
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/4e300b0d-9f69-4b83-86d7-03df58f7617f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-06-30 Thread 'David Elphee' via Django users
I guess I don’t even need Django or models to do what I described.  But yes, 
for future functionality, I’d like to be able to store Jain to a database.

-- 
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/ac41b77e-854c-4a0a-af09-7e8cb2e69c73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-06-30 Thread Joe Reitman
You want to save JSON data to a database?

On Saturday, June 29, 2019 at 8:47:38 PM UTC-5, David Elphee wrote:
>
> Hello,
> I am new at django and in over my head I think.  I am trying to create a 
> kind of shim that will accept JSON from a webhook POST, work with the data 
> using Python, and then POST some new JSON to another API.  I have 
> successfully worked through tutorials that have "flat" data, and I have 
> looked at the documentation on serializing nested data, but I don't see how 
> to write the models to work with the serializers.  Does anyone know of a 
> tutorial that demonstrates working with nested dictionaries?
> Thank you,
> Dave E.
>

-- 
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/18e4f4ff-db22-4ecf-aaf3-f86780ed41f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2019-06-30 Thread Joe Reitman
Also, you will have to wrap your entire form in a  tag. 
Then you can use a submit button to submit the data to the server.

If you are displaying data from the database and allowing the user to make 
and save changes, you first have to render the data from the view.

What is the Javascript code?

On Sunday, June 30, 2019 at 7:54:43 AM UTC-5, pramod wrote:
>
> I wrote a js for that wer it display the results  of addition 
> automatically through id
> If I use like this {{form. Full}} How do I pass the Id to the js? 
>
> On Jun 30, 2019 6:19 PM, "Joe Reitman" > 
> wrote:
>
> Don't use an 'input' element to display your form field.
>
> Try something like this:
>
> {{ form.date }}
>
>
>
> On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
>>
>> The give to get the input  from the user in table? 
>>
> -- 
> 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...@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/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%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+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/a8512369-4e84-48c0-a79e-47ebd9213622%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2019-06-30 Thread mail2pramo
I wrote a js for that wer it display the results  of addition automatically
through id
If I use like this {{form. Full}} How do I pass the Id to the js?

On Jun 30, 2019 6:19 PM, "Joe Reitman"  wrote:

Don't use an 'input' element to display your form field.

Try something like this:

{{ form.date }}



On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
>
> The give to get the input  from the user in table?
>
-- 
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/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%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+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/CABWAz%3D3u3qnruBb%3DEQ7m776aq9MA4jfgSKqbC0mB1NvFqEXZ2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2019-06-30 Thread Joe Reitman
Don't use an 'input' element to display your form field.

Try something like this:

{{ form.date }}



On Sunday, June 30, 2019 at 7:35:42 AM UTC-5, pramod wrote:
>
> The give to get the input  from the user in table? 
>

-- 
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/2ba6a878-9dee-47ed-8f36-48d51d1bfca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2019-06-30 Thread laya Mahmoudi
If you can , send me your project to debug it.



در تاریخ یکشنبه ۳۰ ژوئن ۲۰۱۹،‏ ۱۷:۰۵ mail2pramo  نوشت:

> The give to get the input  from the user in table?
>
> --
> 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/CABWAz%3D1RR%2B_HFewgxY%3Df2iz%3Dg5Ma1Wd-7u_h9SRib5_4zgFGWA%40mail.gmail.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+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/CABL_bk04ManRQ2mq1iwmjXCG0RD6%3Dzcd%2Bg3ERpvAK5zUZm8ZEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.