|
I'm using Django as an admin on my webfaction server but I just wrote a php app on my work server that I'd like to have access to the Django-created data. I want my work server to have permission to access my webfaction server. Is that possible? |
|
Django does not include a PHP library, and PHP does not include a Django library. You have to use a common format to transfer data to and from Django, basically an API. Django has many options for an API, my personal favorite is tastypie. Using tastypie to produce the Django data in the JSON format you can use a JSON library in PHP to decode it. That's fine but I was actually hoping to connect to the MySQL database on my Webfaction server with the PHP script on my work server. I think if they open my database up to global access, I should be able to do that. Yes, if you open a ticket to request remote access to your database, then you'll be able to access your data from your work server. |