joestump / django-ajax

A simple framework for creating AJAX endpoints in Django.
http://github.com/joestump/django-ajax
BSD 3-Clause "New" or "Revised" License
260 stars 53 forks source link

Is there a way to define a function not in endpoints.py as an endpoint? #14

Closed lsemel closed 13 years ago

lsemel commented 13 years ago

Is there a way to set up functions in other files, such as views.py, as Ajax endpoints? I

joestump commented 13 years ago

Sure, just import it into endpoints.py from views.py and it should work. I have no plans to have mappings to functions outside of endpoints.py. I did this mainly for security reasons to ensure that people don't co-mingle such code unless they're absolutely sure (probably why admin.py works in a similar manner).