r/learnpython • • Jul 30 '20

I made my first website using Python!

Ocean Personality Visualization


Website Link: https://ocean-pv.herokuapp.com/

Repo Link: https://github.com/IgnisDa/ocean-pv/

EDIT: u/_fimin had this idea, here's an account if you don't want to login but still check it out:

Username: Kcliix

Password: notacommonpassword

However, it'd make my day if you made your own account.


After about three (or was it four?) months, I proudly present to you, my first major python project, a website called Ocean Personality Visualiztion. Before this, I made a small Hangman game as my first project and then a cli based login system.

I used Django as my web framework, and a free HTML template I grabbed off the internet (I have no frontend experience). That might be a reason why the website still looks kinda sloppy.

Though I have made a thorough README explaining what the website does, I will explain it a bit here.

A website to visualize your personality using graphs and compare it with others. It asks you a series of questions and analyzes your inputs to create an easy to understand graph. It also provides you an easy way to share these results with your peers and compare your personalities. It is based on the OCEAN personality model which is the most acceptable model to measure personality used by researchers.

What all did I learn from this major (to me) project?

  • The actual website development and how different components go together to make a functioning website.

  • I need to learn Javascript.

  • Deployment is hard- I tried to go the hard way at first by not choosing Heroku (it streamlined the process a lot) but I had to scramble back to it because how hard it is to deploy a dynamic website.

  • How awesome and Python is as a programming language. I absolutely adore it.

  • Documentation sucks

  • Testing sucks

Anyways, I am still mighty proud of what I have done and I invite you all to checkout the website and provide some feedback. If you'd like to make any pull requests, the repo link is above.

PS: If anyone can help me fix my tests, I will be forever grateful to you.

512 Upvotes

129 comments sorted by

View all comments

94

u/I_Am_Robotic Jul 30 '20

Congratulations! Clicked on link. Looks nice but why do you require a login? I don’t like sharing my info until after I know if a site will be valuable to me.

9

u/IgnisDa Jul 30 '20

You have the option of saving your results and then asking others to guess how well they know you. Thats why login data is required. The website doesn't ask for any personal data except email and even that is not mandatory.

146

u/HardlyAnyGravitas Jul 30 '20

I went to the website, ready to give it a go, and as soon as I saw the login requirement, I 'noped' straight out of there. Just thought you should know, if you're after traffic.

20

u/[deleted] Jul 30 '20

Same

9

u/[deleted] Jul 30 '20

same.

I know I'm #3 but seriously, forcing me to give up my email before I can interact?
https://www.youtube.com/watch?v=iIpfWORQWhU

-9

u/IgnisDa Jul 30 '20

Awww come on man. At no point are you forced to give an email. You just get a message saying you should fill it. The experience is completely unaffected regardless of whether you enter your email address or not.

Did you even see the website?

15

u/[deleted] Jul 30 '20 edited Jul 30 '20

I clicked it, was told to register, and went no further.

As I said, offputting.

Tried again, am told I must update profile, email required. Not required to 'register' but required to proceed.

Thanks for the deception, +1!

11

u/IgnisDa Jul 30 '20

Alright I see what you mean. I'll take your criticism and try to improve the next time. This is my first time in web development, and I demand you cut me some slack lol.

Hope you liked the website other than the login part though.

0

u/[deleted] Jul 30 '20

Didn't use it, as I said, not giving out my email.

2

u/IgnisDa Jul 30 '20

You can attempt the test without an email. You'll just see that message. As I said, the emails don't even matter to the overall functionality of the website.

→ More replies (4)

3

u/fighter_foo Jul 30 '20

Lots of comments here so someone else might have suggested it too, but I have suggestion that shouldn't be too hard to implement.

Since you said that giving email isn't mandatory, why even go for email, and not user-pass fields instead? Here's how it could go like:

  • The site asks you to enter/create a username and password combo when you visit it. (which it will save)

  • If the username I entered is unique, it'd save my credentials to your database (just like you'd save the emails).

  • If someone has entered the username before, but with a different password, I'd get a prompt asking me for correct password or different username.

You could also clean up the database every 90 days or 180 to remove usernames that haven't been used again.

2

u/IgnisDa Jul 31 '20

Yeah that sounds like a good idea. Maybe I'll try to implement it.

13

u/IgnisDa Jul 30 '20

I understand what you mean, I'd have done the same. But the way my database is setup, it will be too much work to change the backend structure. I appreciate your input though and I'll certainly keep it in mind for my next project.

34

u/purebuu Jul 30 '20

Can't you assign a random session id to everyone in the db, with a blank email, and then fill in the email at the end, if a user wishes to be emailed their results?

-4

u/tennisanybody Jul 30 '20

Lol, I barely understand how cookies and jquery work. I’m sure OP doesn’t know how to assign session ID’s either. JavaScript is not easy my man.

13

u/thecodingrecruiter Jul 30 '20

Just because you don't know something, or consider something hard, is not a measure of another individuals' ability to quickly adapt their project to the needs of a client. He may have gone over sessions in another tutorial before which would have covered what he needs to know. He could be a quick study or looks at a tutorial, tears it apart, and modifies it to do what suits him.

→ More replies (2)

3

u/toastedstapler import itertools Jul 30 '20

and if you want to get paid to program you need to make things that people want to use. there is no good reason to require an upfront login for this

1

u/schlopp96 Jul 30 '20

Me as well

1

u/[deleted] Jul 30 '20

Same. Except I didn't go, but these comments convinced me not to go.