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

Personal Project - Question about users and POST

I got through the end of the Flask Restful API course, and I felt like I had enough information to finally start coding a personal project of mine.

The website I am trying to make is an art portfolio that should have the ability to create, remove, and edit the art pieces on the site. This content will be managed by one person, and one person only for the time being. They will navigate to http://url.com/admin to log in to that portion of the site.

My question is, what are my options in regards to restricting some random person from accessing my API and creating an admin user, while still allowing my intended user to be able to create more accounts in case he wants someone else to manage his content for him?

I'd be happy to share my project on git with someone if you want to take a peak.