Implemented dajax and moved models to media rather than static
This commit is contained in:
8
three_d_viewer/ajax.py
Normal file
8
three_d_viewer/ajax.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.utils import simplejson
|
||||
from dajaxice.decorators import dajaxice_register
|
||||
|
||||
@dajaxice_register
|
||||
|
||||
def dajaxice_example(request):
|
||||
return simplejson.dumps({'message':'Hello from Python!'})
|
||||
|
||||
Reference in New Issue
Block a user