login community faq

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?

asked Jul 26 '12 at 15:41

mizzousundevil's gravatar image

mizzousundevil
1


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.

answered Jul 26 '12 at 23:12

johns's gravatar image

johns ♦♦
340427

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.

(Jul 30 '12 at 11:46) mizzousundevil mizzousundevil's gravatar image

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.

(Jul 30 '12 at 11:52) seanf ♦♦ seanf's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×4

Asked: Jul 26 '12 at 15:41

Seen: 219 times

Last updated: Jul 30 '12 at 11:52

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited