Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Implementing Django API

So I've recently finished my Django REST API course. But I'm still not quite sure how to correctly implement it.

I got a testing laptop that will be set up as a database server. I've got Linux CentOS 7 and MariaDB on it. And I'm making an android app to connect to it via the API.

But the whole implementation is unclear to me, here is what's unclear to me at the moment:

Q) Do Install python 3 and Django framework on my database server? or use a separate development PC and then move the project to the server when done?

Q) What do I need in order to set this up on a hosting service and open the API to any user of the app ?

1 Answer

Q) Do Install python 3 and Django framework on my database server? or use a separate development PC and then move the project to the server when done?

I would just build on the your database server/laptop, assuming you have a edit setup there, or are comfortable to use a ssh session and text editor. Keep it simple.

Q) What do I need in order to set this up on a hosting service and open the API to any user of the app ?

There are a lot of options out there. Two that come to mind both with free options that will help while you get started:

I do use ssh to work on my laptop from pc. I'll download django and api framework and get started. Heroku seems like a good platform, I never knew it existed to be quite honest xD.

Thanks for your reply, I hope this goes without hic ups