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

how can I use this in a Django project #28

Closed
Leedorado opened this issue Sep 6, 2018 · 1 comment
Closed

how can I use this in a Django project #28

Leedorado opened this issue Sep 6, 2018 · 1 comment

Comments

@Leedorado
Copy link

I think the effect is awesome, and I don't know about php.I'd like to ask which files should I include in a Django project.Thx^^

@nylen
Copy link
Owner

nylen commented Sep 8, 2018

Hi @Leedorado, this question to me is more like "how does this code work" and "how do I re-implement it in python". It won't be as simple as just including some files, but you can start by looking at a hosted version of the web-app.

Check out https://nylen.io/d3-process-map/graph.php for example. View Source, grab that, and include all the files that link to there.

In script.js there is an AJAX call to json.php. This file returns generated output like the following: https://nylen.io/d3-process-map/json.php

json.php calls all the logic in common.php so you'll probably want to re-implement this in Python.

If you want the list version of the data too, you'll need to re-implement list.php in Python too.

@nylen nylen closed this as completed Sep 8, 2018
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