Re: Custom jQuery in admin

2013-01-11 Thread Jim Thaxton
I'm not sure about your original problem but prefixing it with django will make use of Django's jquery namespace: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-media-definitions Django admin Javascript makes use of the jQuery library. > To avoid

Re: convert str to datetime

2012-06-25 Thread Jim Thaxton
The parseutil module is very handy when converting a formatted string into a datetime object. Here's the module: http://labix.org/python-dateutil And here is a stackoverflow post with a number of examples: http://stackoverflow.com/questions/127803/how-to-parse-iso-formatted-date-in-python On

Re: Defining global names

2011-03-18 Thread Jim Thaxton
Can you set it in the settings.py file for your project? You can then import the Django settings in your views with: from django.conf import settings and call the variable with settings.my_var_name when needed. -- You received this message because you are subscribed to the Google Groups