Monday, July 1, 2019

Unauthenticated one time edit form/url

Context:
I have a booking system which is in a call centre. 
Clients call in and give their details (name address phone email)
these details are stored in a Client Model
When they make a booking over the phone it is associated to the entry in the Booking Model. 

Problem:
I'd like to add a form on a single page webapp that takes a email address and sends a one time url to an edit form for the booking via email to the client.
Has anyone implemented something like this.
I looked at https://simpleisbetterthancomplex.com/tutorial/2016/08/24/how-to-create-one-time-link.html
but I require that there is no User in the database only Client. 

 
 

--
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/e92add55-fef0-4fbd-82a4-bac7ffdd2b99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Accessing data from a 30 GB file in json format

https://stackoverflow.com/questions/2396238/memory-error-due-to-the-huge-input-file-size
Just iterate the file do whatever operations you want on the file. 
https://towardsdatascience.com/python-basics-iteration-and-looping-6ca63b30835c

On Monday, July 1, 2019 at 11:07:39 AM UTC+1, Nibil Ashraf wrote:
Hey,

I have a file with a size of around 30GB. The file is in json format. I have to access the data and write that to a csv file. When I tried to do that with my laptop which has a a RAM of 4GB, I am getting some error. I tried to load the json file like this json_parsed = json.loads(json_data)

Can someone help me with this? How should I do this? If I should go with some server, please let me know what specifications should I use? 

--
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/30e7dc37-4504-4fbd-a793-ddd088772bad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Unauthenticated onetime url to edit a form.

Context: 
I have a booking app that is managed over the phone by an admin. 
the callers/client's details are stored in a Client model and then related to a Booking model when a booking is made.

Problem: 
I want the client to have access to edit their booking without having to be a user in the system.

They would just need the email address they provided over the phone and enter that into a form on a single page public webapp. 
and the backend should just email them a one time url to a form to check and edit details of their booking. 

Can anyone recommend a good way to implement this. 

--
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/dc0f5274-f9ae-4ba7-9c9d-65aa94b3d03a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Accessing data from a 30 GB file in json format

Its a Memory Error. PFA the screenshot.





On Mon, Jul 1, 2019 at 3:41 PM John Bagiliko <john.bagiliko@aims-senegal.org> wrote:
A screenshot may be better

On Mon, Jul 1, 2019, 10:10 AM John Bagiliko <john.bagiliko@aims-senegal.org> wrote:
What is the error message?

On Mon, Jul 1, 2019, 10:07 AM Nibil Ashraf <nibil.ashraff@gmail.com> wrote:
Hey,

I have a file with a size of around 30GB. The file is in json format. I have to access the data and write that to a csv file. When I tried to do that with my laptop which has a a RAM of 4GB, I am getting some error. I tried to load the json file like this json_parsed = json.loads(json_data)

Can someone help me with this? How should I do this? If I should go with some server, please let me know what specifications should I use? 

--
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/CAPBZ7vD6Ai5DOAudytO7QeW1ejUqdqyB5YH3F7aTg4YoXtF-uw%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/CAC26BE2Oxrc8kq%3DdfgH7880-h9qRmtjaJeoHmOw851x0WnxT5A%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/CAPBZ7vB%3DOX1YeywoKt%3DN0tXxxQg5RgXK_6A2HU4TV7B%3DaEVuMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Help me fix this chat feature

Yes, use different incognito tabs for different users.

On Sun, Jun 30, 2019, 10:51 PM Aldian Fazrihady <mobile@aldian.net> wrote:
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.

--
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/CAC26BE3-KuOjK%2BrmQTGCB_nXz6_mSoZUwwjQBc%3DZJX3dkvdRMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Accessing data from a 30 GB file in json format

A screenshot may be better

On Mon, Jul 1, 2019, 10:10 AM John Bagiliko <john.bagiliko@aims-senegal.org> wrote:
What is the error message?

On Mon, Jul 1, 2019, 10:07 AM Nibil Ashraf <nibil.ashraff@gmail.com> wrote:
Hey,

I have a file with a size of around 30GB. The file is in json format. I have to access the data and write that to a csv file. When I tried to do that with my laptop which has a a RAM of 4GB, I am getting some error. I tried to load the json file like this json_parsed = json.loads(json_data)

Can someone help me with this? How should I do this? If I should go with some server, please let me know what specifications should I use? 

--
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/CAPBZ7vD6Ai5DOAudytO7QeW1ejUqdqyB5YH3F7aTg4YoXtF-uw%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/CAC26BE2Oxrc8kq%3DdfgH7880-h9qRmtjaJeoHmOw851x0WnxT5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Accessing data from a 30 GB file in json format

What is the error message?

On Mon, Jul 1, 2019, 10:07 AM Nibil Ashraf <nibil.ashraff@gmail.com> wrote:
Hey,

I have a file with a size of around 30GB. The file is in json format. I have to access the data and write that to a csv file. When I tried to do that with my laptop which has a a RAM of 4GB, I am getting some error. I tried to load the json file like this json_parsed = json.loads(json_data)

Can someone help me with this? How should I do this? If I should go with some server, please let me know what specifications should I use? 

--
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/CAPBZ7vD6Ai5DOAudytO7QeW1ejUqdqyB5YH3F7aTg4YoXtF-uw%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/CAC26BE3sEbrOUtx5zYcv_%2B5gwOg4Kw8zYQ-nJ1PUws%3DZMu_Asw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.