Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
Hi, You can use data properties, for example: # Template # Javascript $('#address').editable({ type: 'text', url: $('#my_container').data('url'), .. }); Hope this helps, On Sat, Jan 26, 2013 at 8:54 AM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there. > > > I am moving

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
I think to move the all javascript code from your templates to .js files, you must change the way your views are working. I think your url and view are expecting some parameters, for this reason the problem with urls and his generation. The case about the checkbox changing, can be resolved re-def

Re: How do I test my Django App on my Phone

2013-12-09 Thread Juan Pablo Romero Bernal
Hi, Your phone must be connected to the same network that your workstation is connected. So, the django app must running listening on local IP address like 192.168.1.2:8000 and from phone you can access the application using this IP. Hope this helps, On Mon, Dec 9, 2013 at 1:44 PM, Muhammad Al

Re: How do I test my Django App on my Phone

2013-12-09 Thread Juan Pablo Romero Bernal
Hi, > I suggest setting up a URL using no-ip.org or similar service. > No-ip.org is free at this level and works great, at least on Ubuntu and > CentOS. I haven't tried other OS's. > Or you can use localtunnel (http://progrium.com/localtunnel/) it's easy to install and works fine on most *NIX

Re: Question about dot notation syntax (Django source)

2018-02-15 Thread Juan Pablo Romero Bernal
Hi, You must read: https://docs.python.org/3/tutorial/modules.html and https://docs.python.org/3/tutorial/datastructures.html#dictionaries Cheers, On Thu, Feb 15, 2018 at 8:06 PM, drone4four wrote: > In, “Password management in Django >

Re: Django apk

2019-06-12 Thread Juan Pablo Romero Bernal
Hi, I think you have some alternatives: 1. Build an android native app (or using some cross-platform framework) that use your django app as an API (you can use django rest framework to make this task). 2. Build a PWA and use (as above) your django app as an API. 3. Use Briefcase [1] (project un

Re: 'ssl_disabled' is an invalid keyword argument for connect()

2020-02-25 Thread Juan Pablo Romero Bernal
Hi Steve, The supported option is ssl, see: https://github.com/django/django/blob/stable/3.0.x/django/db/backends/mysql/client.py I hope this helps, On Tue, Feb 25, 2020 at 4:54 PM Stephen Loughin wrote: > The django doc > s sa

Re: From and Template in Django

2020-02-25 Thread Juan Pablo Romero Bernal
Hi, Yes, you can use an instance of Form in more than one template: See: https://docs.djangoproject.com/en/3.0/topics/forms/ for more details. On Tue, Feb 25, 2020 at 4:54 PM ben aziz zizah wrote: > Is that possible to use the same form in more than one template > > -- > You received this mes

Re: Django Session KeyError

2020-02-25 Thread Juan Pablo Romero Bernal
Hi, In your Django application, session middleware is enabled ? [1] [1] https://docs.djangoproject.com/en/3.0/topics/http/sessions/ On Tue, Feb 25, 2020 at 8:16 AM Guy NANA wrote: > I don't understand the first part of your answer : *Make sure your >> line request.session['ts_dataset_copy'], p

Re: [PROBLEM] Creacion de primera apps de djangogirls, error en models.py

2020-04-17 Thread Juan Pablo Romero Bernal
Saludos Lucas, Sería de mucha utilidad que nos mostraras los mensajes de error que obtienes para poder ayudarte. Saludos, On Fri, Apr 17, 2020 at 4:34 PM lucas bonet wrote: > Hola, estoy creando la primera aplicacion de django con pyton y cuando > llega el momento de configurar en el directori

Re: __init__ method called every time on same APIView object

2019-10-30 Thread Juan Pablo Romero Bernal
Hi, Show some example of code On Wed, Oct 30, 2019 at 5:08 PM Diana María Bedoya Ramírez < dbed...@ikono.com.co> wrote: > Hello, > > I have an APIView object with an __init__method. In that __init__ I have a > loop that extends a class list variable. Every time I make a POST to the > url tha

Re: Lots of errors after deploying and going live

2020-02-06 Thread Juan Pablo Romero Bernal
Hi Dave, First of all, what kind of environment are you using to production deployment ? May be if you give us some details about it we can help you. Bye, On Tue, Feb 4, 2020 at 4:36 AM Dave Ko wrote: > Hi guys, so this is a very general post, I have been working on a django > blog following