Help for reading data from csv file and store the data in json format in Django

2019-04-25 Thread Aakash Baranwal
Hi Everybody, I have a CSV file in media folder inside my django project. I want to read the data from the CSV file and store it in JSON format either directly in the database or convert it into JSON from CSV file and then store it, and enable me to view it on an html page, in my Django Web

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Manuel Alejandro Garrido Gongora
Si estas usando ajax lo que puedes hacer es instalarte django rest framework o crearte una vista que cuando sea get te retorne los datos de la db y cuando sea post los actualice y puedes llamarla desde ajax una primera vez cuando se ejecuta el formulario para rellenarlo y luego cada vez que se

Re: Like button for user pictures.

2019-04-25 Thread Joel Mathew
I tried and could not is not a valid developer question. We're left imagining how you tried, and how it failed. Post code with any question and explain in words. Sincerely yours, Joel G Mathew On Fri, 26 Apr 2019 at 00:13, Nitesh Saini wrote: > Hello, > I'm working on a project similar to

Project Setup Checklist. Found this helpful...

2019-04-25 Thread Aaron Harris
Just curious how your project setup compares here and other resources you might suggest. Thanks!! *Easily Install Django: A Quick Guide* *Installation* Assuming you have Python setup with pip – installation is simple. This will install Django along with a useful command that will help you get

Autoreloader looping Django 2.2

2019-04-25 Thread Dan
I'm using Django 2.2 on a new project and suddenly the autoreloader is looping when I change a file DEBUG: /urls.py. is_changed: False, is_new: True /urls.py previous mtime: None, current mtime: 1556221457.0 /urls.py notified as changed. Signal results: [(, None)]. /urls.py changed,

intra server communication using django channels

2019-04-25 Thread Ulises Jimenez
So has anybody tried this? I have an architecture as follows. I have 2 servers, one is running a django instance with channels. The other is running a media server which can communicate using websockets. My plan is to 1. have a client (browser) open a websocket connection with django, 2.

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Victor H. Velasquez Rizo
Hola Tatiana. Vira este tutorial en que te guian para que hagas las operaciones basicas de *CRUD (Create, Read, Update, Delete)* https://www.youtube.com/watch?v=twXF1VpK5ak Saludos ! On Thu, Apr 25, 2019 at 10:39 AM Tatiana Mesa wrote: > Hola, > > 1.tengo un formulario donde inicialmente lo

Like button for user pictures.

2019-04-25 Thread Nitesh Saini
Hello, I'm working on a project similar to Instagram and I want to create a like button for user pictures. I try it with BooleanField but unable to do it. So please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: need help

2019-04-25 Thread Manoj Kumar Singh
Many of the interviewer asked me how many libraries and frameworks are used in django project. Please let me know the correct answer. On Thu, Apr 25, 2019 at 10:32 PM Karan Mittal wrote: > you can read my articles over Django over this website, I am writing it in > a language which beginners

Re: need help

2019-04-25 Thread Karan Mittal
you can read my articles over Django over this website, I am writing it in a language which beginners can understand easily and can make something of their own. https://data-flair.training/blogs/category/django/ These articles are sure to help you with your web-development learning. Thank you,

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
Si haces un paste de la vista, te doy 4 pistas de como lo haria yo, però en funcion de lo que ya tengas. Sino a vote pronto yo algo parecido como: def vistaformulario(request): if request.POST: #SI LLEGAMOS A ESE PUNTO, ES PORQUE EL USUARIO QUIRE ACTUALIZAR LOS DATOS DEL FORMULARIO

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Tatiana Mesa
Hola Daniel, es exactamente lo que quiero y es mas capturo los datos mediante AJAX, Pero aun no entiendo bien este ultimo paso "de esa forma des de la plantilla podrías conocer si hay datos previos o no, y en caso afirmativo, sea por html o por javascript rellenar el formulario con los valores

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Tatiana Mesa
Hola Daniel, no te preocupes, quizás no he sido clara el formulario incial es donde guardamos los datos por primera vez, ahora quiero actualizar esos datos que guarde por primera vez, los quiero actualizar en el mismo formulario, pero viendo los datos en guarde en los inputs. El jue., 25 de

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
No se si es la mejor solución, pero para salir del paso yo haría: -Antes de cargar el formulario, analizar si el usuario tiene alguna entrada ya en db. -En caso afirmativo al rendarizar el template pasaría un diccionario/lista de los datos -Dentro de la plantilla haria una evaluación {% if

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Ing.Daniel Bojorge
Cuando te refieres al inicial, es cuando se cargue el formulario? Disculpa no entiendo bien tu consulta. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge *Curso Desarrollo Web con Python usando

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Tatiana Mesa
Hola, 1.tengo un formulario donde inicialmente lo lleno y guardo unos datos en la base. 2. hago una consulta para traer esos registros de la base de datos. 3. Ahora quiero que en ese mismo formulario, en el inicial, se muestren esos datos que guarde en un principio. para hacer un tipo de update,

Re: need help

2019-04-25 Thread Meow
hi, maybe you can try DjangoBook which is very nice tutorial site ~ On Apr 25, 2019, 20:01 +0800, kashinath kambar , wrote: > I am new to python development, can anyone help me out by giving some > beginners projects.. and how to improve my coding skills. > > -- > You received this message

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
Buenas, Un update, en caso que los datos ya existen quizas? Sino no lo entiendo? El dj., 25 d’abr. 2019, 16:09, va escriure: > Buen día, > > Vengo trabajando con un formulario en html que captura los datos mediante > AJAX y los guarda en una base de datos postgres. > > Ahora quiero

Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread tatianamesa687
Buen día, Vengo trabajando con un formulario en html que captura los datos mediante AJAX y los guarda en una base de datos postgres. Ahora quiero realizar un update, en ese mismo formulario, De que manera puedo mostrar los datos que guarde en la base de datos, en los inputs del formulario,

Re: need help

2019-04-25 Thread Balaji Shetty
Hi You can see Try Django Tutorial Seris on Youtube ( Free ). Very nice and you can get good Knowledge On Thu, Apr 25, 2019 at 5:31 PM kashinath kambar wrote: > I am new to python development, can anyone help me out by giving some > beginners projects.. and how to improve my coding skills.

need help

2019-04-25 Thread kashinath kambar
I am new to python development, can anyone help me out by giving some beginners projects.. and how to improve my coding skills. -- 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

'RedisChannelLayer' object has no attribute 'groups'

2019-04-25 Thread Fabien Toune
Hi, using redis_channels 2.0.4 with Django 2.0 and daphne 2.3.0 I get this error : *Exception inside application: 'RedisChannelLayer' object has no attribute 'groups'* All works fine if I use InMemoryChannelLayer settings.py : CHANNEL_LAYERS = { "default": { "BACKEND":

Re: CSRF Verification fails in production for Cross Domain POST request

2019-04-25 Thread Gil Obradors
When I have problems with csrf and POST, I usually put a print(request.POST) into a view function, to see what the framework recives from client help you? Missatge de suresh del dia dj., 25 d’abr. 2019 a les 8:20: > The HTTP_X_CSRFTOKEN header does not match what is inside the csrftoken >

Re: Advanced permissions and role creation

2019-04-25 Thread Balaji Shetty
Dear Mike Dewhirst Thank You Very Much for your nice reply . I try it . On Thu, Apr 25, 2019 at 6:26 AM Mike Dewhirst wrote: > On 23/04/2019 9:22 pm, Balaji Shetty wrote: > > Hi > > > > Did you get any particular solution. I am also facing the same > > problem. My project also have same

Re: Advanced permissions and role creation

2019-04-25 Thread Mike Dewhirst
On 23/04/2019 9:22 pm, Balaji Shetty wrote: Hi Did you get any particular solution. I am also facing the same problem. My project also have same requirement. I think this problem must have been faced by every dveloper. Can you please

CSRF Verification fails in production for Cross Domain POST request

2019-04-25 Thread suresh
The HTTP_X_CSRFTOKEN header does not match what is inside the csrftoken cookie. How can I examine the cookie? Set-Cookie is not displayed in the Response header for Cross Domain requests. I have already followed instructions found in: