Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to split ajax.py into a few smaller files? #138

Closed
alexyer opened this issue Sep 2, 2014 · 2 comments
Closed

Is there a way to split ajax.py into a few smaller files? #138

alexyer opened this issue Sep 2, 2014 · 2 comments

Comments

@alexyer
Copy link

alexyer commented Sep 2, 2014

Is there a way to split ajax.py into a few smaller files?
Thank you.

@markuz
Copy link

markuz commented Sep 2, 2014

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

Hope this help you.

@alexyer
Copy link
Author

alexyer commented Sep 2, 2014

Thank you. I will try. And I've also found this pull request. May be it will help someone.
#53

@alexyer alexyer closed this as completed Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants