Re: Why do I get an error importing current_datetime?

2010-06-13 Thread David Escobar
Or you may not even need the mysite part of the import: import views urlpatterns = patterns('', ('^time/$', views.current_datetime), On Sun, Jun 13, 2010 at 5:06 PM, David Escobar wrote: > In your urls.py try doing a straight import instead of the from module &g

Re: Why do I get an error importing current_datetime?

2010-06-13 Thread David Escobar
In your urls.py try doing a straight import instead of the from module import function version: import mysite.views urlpatterns = patterns('', ('^time/$', mysite.views.current_datetime), ...doesn't seem like it should make a difference, but it's worth a shot... On Sun, Jun 13, 2010 at 4:52

Re: Ajax header not sent in all browsers

2010-06-13 Thread David Escobar
scripting. Apparently Opera must work the same way, since it doesn't respond to my AJAX requests either. So my question now is: Is there a way to test AJAX calls using the Django development server in Firefox and Opera? On Fri, Jun 11, 2010 at 11:58 PM, David Escobar wrote: > Ok, that helped na

Re: Ajax header not sent in all browsers

2010-06-11 Thread David Escobar
requires javascript! > https://ajax.googleapis.com/ajax/</a> > libs/jquery/1.4.2/jquery.min.js"> > >$(document).ready(function() { >$.get('/isajax', function(data) { > alert(data); >}); >}); >

Ajax header not sent in all browsers

2010-06-09 Thread David Escobar
Hi everyone, I'm using Django 1.1 with jQuery 1.4.2 and currently testing with the Django development server. Whenever I send an AJAX request with $.get(), the HTTP_X_REQUESTED_WITH header only gets sent with Chrome and Safari. It does not get sent with IE or Firefox. I've verified this by outputti