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
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
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
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);
>});
>});
>
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
5 matches
Mail list logo