Sunday, June 30, 2019

Re: Running tests creates many unnecessary files

Hi,

these temp files should be removed after they closed, but it looks it is not closed after tests executed.

Regards,

V.

On Friday, June 28, 2019 at 4:44:34 PM UTC+3, Uri Even-Chen wrote:
Hi,

I found out that in the directory media of Speedy Net (https://github.com/speedy-net/speedy-net) on my computer, there are more than 200,000 unnecessary files and more than 20,000 folders. I checked the time the files were created and it seems that they were created because I ran Django tests locally. Why are so many files and folders created and remain undeleted after the tests end? I would expect all the temporary files to be deleted when the tests end. We have many tests (I think more than 1,000 tests - https://travis-ci.org/speedy-net/speedy-net/builds/551457609) and I ran them many times but I didn't expect so many unnecessary files to be created on my computer. Is there something I can do to prevent it?

I just ran all the tests locally now, after I deleted all the previous files and folder in media, and I found out that 903 files and 1,041 folders were created. I'm not sure which of our tests created these files and folders. Most of these files are either .jpg or .dat files. Is it possible to delete all these files automatically after the tests end?

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+unsubscribe@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/9b60069b-2515-40ce-a1bf-9aa994cd5e63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

django form not saving items to database

model
class Products(models.Model):

UNIT = (
('whole', 'whole unit'),
('item', 'per single item'),
)


# category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE)
ProductName = models.CharField(max_length=255)
user = models.ForeignKey(User, on_delete=models.CASCADE)
ProductDescription = models.TextField(max_length=500, blank=True)
price = models.FloatField()
location = models.CharField(choices = COUNTIES, max_length=300)
# category = models.CharField( choices = CATEGORIES, max_length=10, default='other')
category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE)

unitofsale = models.CharField(max_length=10, choices=UNIT)
image = models.FileField(upload_to='products_images/', blank=True)
sublocation = models.CharField(max_length=100)
created= models.DateTimeField(auto_now_add=True)
# slug = models.SlugField(max_length=200,db_index=True)

class Meta:
ordering = ('-created',)
# index_together = (('id', 'slug'),)
view
def sell(request):
if request.method == 'POST':
form = ProductsForm()
form = ProductsForm(request.POST, request.FILES, instance = request.user)
if form.is_valid():
print('form is valid')
form = form.save(commit=True)
user = request.user
form.user = user
form.save()
return redirect('home')

else:
form = ProductsForm()
return render(request, 'sell/products_form.html', {'form': form})
template
        <form method="POST" action="{% url  'sell' %}" enctype="multipart/form-data">
{% csrf_token %}
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Product Name</label>
{{ form.ProductName}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Product Price</label>
{{ form.price }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>County</label>
{{ form.location}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Sub-location</label>
{{ form.sublocation }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Category</label>
{{ form.category}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Unit of Sale</label>
{{ form.unitofsale }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Product Description</label>
{{ form.ProductDescription}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Upload Product Image</label>
{{ form.image }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<button type="submit" class="btn btn-success btn-lg mt-5"> Sell </button>

</div>


</div>
</div>


<br>

{# <input type="submit" value="Sell">#}
</form>

--
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+unsubscribe@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/f69eafee-4247-42b9-9db9-a741d84a02ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Django Model form not saving items to database

Model
class Products(models.Model):

UNIT = (
('whole', 'whole unit'),
('item', 'per single item'),
)


# category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE)
ProductName = models.CharField(max_length=255)
user = models.ForeignKey(User, on_delete=models.CASCADE)
ProductDescription = models.TextField(max_length=500, blank=True)
price = models.FloatField()
location = models.CharField(choices = COUNTIES, max_length=300)
# category = models.CharField( choices = CATEGORIES, max_length=10, default='other')
category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE)

unitofsale = models.CharField(max_length=10, choices=UNIT)
image = models.FileField(upload_to='products_images/', blank=True)
sublocation = models.CharField(max_length=100)
created= models.DateTimeField(auto_now_add=True)
# slug = models.SlugField(max_length=200,db_index=True)

class Meta:
ordering = ('-created',)
# index_together = (('id', 'slug'),)

template
        <form method="POST" action="{% url  'sell' %}" enctype="multipart/form-data">
{% csrf_token %}
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Product Name</label>
{{ form.ProductName}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Product Price</label>
{{ form.price }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>County</label>
{{ form.location}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Sub-location</label>
{{ form.sublocation }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Category</label>
{{ form.category}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Unit of Sale</label>
{{ form.unitofsale }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<label>Product Description</label>
{{ form.ProductDescription}}

</div>


</div>
<div class="col-md-6">
<div class="form-group">
<label>Upload Product Image</label>
{{ form.image }}
</div>
</div>
</div>
<div class="row col-md-10">
<div class="col-md-6">
<div class="form-group">
<button type="submit" class="btn btn-success btn-lg mt-5"> Sell </button>

</div>


</div>
</div>


<br>

{# <input type="submit" value="Sell">#}
</form>
view 
def sell(request):
if request.method == 'POST':
form = ProductsForm()
form = ProductsForm(request.POST, request.FILES, instance = request.user)
if form.is_valid():
print('form is valid')
form = form.save(commit=True)
user = request.user
form.user = user
form.save()
return redirect('home')

else:
form = ProductsForm()
return render(request, 'sell/products_form.html', {'form': form})

--
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+unsubscribe@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/4b2be89e-f505-4ad5-80eb-b6c2965d35a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Polls app not showing?

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 <spwin...@gmail.com> 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+unsubscribe@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?

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 <spwin...@gmail.com> 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+unsubscribe@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

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, <agarwalharshit112@gmail.com> 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+unsubscribe@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+unsubscribe@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

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, <eryzero@gmail.com> 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+unsubscribe@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+unsubscribe@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

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.mckesson@epiccharterschools.org





On Sat, Jun 29, 2019 at 9:12 PM mail2pramo <mail2pramo@gmail.com> wrote:
Inside the input field I get this.


On Jun 30, 2019 12:04 AM, "Thomas POKAM" <pokamyt@gmail.com> 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+unsubscribe@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+unsubscribe@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+unsubscribe@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

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 <nuelklus@gmail.com> 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 <zebra05@gmail.com> 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 <nuelklus@gmail.com> 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 <zebra05@gmail.com> 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 <nuelklus@gmail.com> 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+unsubscribe@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.
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+unsubscribe@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-SnCDv4dz8%2BFyr3%2By-0GUxX41Nbnv%2BjsXrgnquOGVHp83vpw%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+unsubscribe@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.

--
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+unsubscribe@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-SnCAQnTp20Koy8z2XkN11OdUHTLMx50nr%3DpFbimsLRhYWCg%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+unsubscribe@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/CAAw18mD_n30dUEVhaeGRDzg%2B1-Xsquv8Pq1mdKK8tCPAXgvP1w%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+unsubscribe@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-SnCC1-kXpfJckXSjKqouX-chRYpPLDooR4LREfv1pkjW42g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: deploy django on AWS

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 <anirudhajain.910@gmail.com> 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, <agarwalharshit112@gmail.com> 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+unsubscribe@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+unsubscribe@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+unsubscribe@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.

Re: Nested dictionaries

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+unsubscribe@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

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+unsubscribe@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

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+unsubscribe@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

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, <agarwalharshit112@gmail.com> 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+unsubscribe@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+unsubscribe@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

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+unsubscribe@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.

Help me fix this chat feature

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+unsubscribe@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.