Working with Databases

2019-05-26 Thread Derek Dong
I'm relatively new to Django and web development in general but have decent coding experience. My questions are primarily related to how to work with models to create a ranking system. Some background: I'm an officer for an academic school team and am trying to implement a ranking system that de

Selecting Models by Typing an Identifier

2019-05-28 Thread Derek Dong
I have two questions. The first is: I want to select models in a form. The first is a standard User, the second is a Contest form already defined. Let's take the User as an example. I want to only have to type a string into the form, and have all users with that string as a substring of their us

Internal Ranking System Application

2019-06-16 Thread Derek Dong
How can I integrate OAuth with a ranking system in a Django application? I'm not too familiar with Django design philosophy, which is why I'm asking these questions. The way I understand it, OAuth doesn't let you manipulate information on the server authenticating a user, so I would still need a

Re: Internal Ranking System Application

2019-06-24 Thread Derek Dong
plenty of other ways such as redirecting a user in > the views.py and yada yada if the user is NOT authenticated. > > Something I think would help you is to utilize Django-rest-framework. It's > designed as an API, but I think you'll understand Django much better > throu

Re: Internal Ranking System Application

2019-06-24 Thread Derek Dong
alculated. > > If you decide you wanna learn this yourself, the best way is to learn what > a relational database is, like MySQL or PostgreSQL or SQLite. Just a small > visual explanation or just seeing a database like those will help you in > the long run. > > But if y

Re: Internal Ranking System Application

2019-06-24 Thread Derek Dong
I just wanted to add a question: I want to store the indices as floats if possible, to at least 3 decimal places, and display them to the nearest integer. Is this possible? On Monday, June 24, 2019 at 8:38:34 PM UTC-4, Derek Dong wrote: > > Thank you so much for the incredibly in-depth re

Re: Internal Ranking System Application

2019-06-25 Thread Derek Dong
gt; > The Django documentation is amazing, and can answer a lot of questions. I > also said to use Django REST API. You don’t need to use it, but the reason > I suggested it was because of its interface. Much smoother than the regular > Django admin, but does require a little bit

Using OAuth2 with Django

2019-06-26 Thread Derek Dong
So I've been trying to learn how to authenticate users in my Django application with OAuth. The token provider has already been established, and the provided documentation is here: https://ion.readthedocs.io/en/latest/developing/oauth.html However, once I've followed the instructions in the "Pyt