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

1

u/tushya007 Tushya007 Jul 30 '20

which s3 server are you using ?

2

u/IgnisDa Jul 30 '20

None, there are no file uploads by users. The answers are stored in Heroku free postgresql database.

2

u/tushya007 Tushya007 Jul 30 '20

Oh I though there were profile pics in the user profile but I guess not. I too am doing the Corey Schafer django tutorial and I want to deploy the site but the major problem was the AWS S3 server and I didn't want to enter any credit card info as I have non. So when i saw that u also did the Corey Schafer django tutorial i got exited and asked for the S3 server. Do you know any alternatives to host website even on my pc itself, I would love it. Thanks anyway and I loved your web site. Keep up the work.

1

u/IgnisDa Jul 30 '20

Doesn't pythonanywhere have a file system storage? That would allow you to store pics right on their servers.

You could host a website on your own pc by changing it to a server, but it will be very costly for an individual i think.

1

u/tushya007 Tushya007 Jul 30 '20

Thanks, I will look into it.

1

u/pleasePMmeUrBigtits Jul 30 '20

You can try heroku, pythonanywhere (though the django setup might be a bit intimidating), repl.it. Or get a Github student developer pack if you're studying somewhere, it helps a lot

1

u/IgnisDa Jul 30 '20

I have a github student account but since Heroku needs a credit card to link with a github student account, i couldn't avail that offer. Bummer though since my app goes to sleep after inactivity.