You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since dajaxice look into ajax.py for functions with the @dajaxice_register decorator you can just "import" them, having your dajaxice decorated functions wherever you want.
ej. The easies way:
from project.module.views import *
With this you may need to add a check for models being imported redefined (specially if you use modelAdmin).
The clean way:
from project.module.views import decorated_function
Is there a way to split ajax.py into a few smaller files?
Thank you.
The text was updated successfully, but these errors were encountered: