Tech-With-Tim / twtcodejam.net

Tech With Tim code jam site.
MIT License
42 stars 11 forks source link

some things #1

Closed 12944qwerty closed 4 years ago

12944qwerty commented 4 years ago

I just wanted to let you know some things that I will be doing in order for it to work.

Since school has started, I haven't gotten much time on my actual computer, instead, I use my Chromebook. This means that there will be multiple commits for file changes AND I will be using repl.it.

Repl.it has forced me to use psycopg2-binary instead (although the same thing, different names) and to use.

I haven't used postgres on django so I don't know how to set URL. I created a new DB on elephantsql and for:

I wasn't sure if Host would be the server, or the URL. or to change the engine.

just some questions:

  1. Should I change ENGINE or HOST?
  2. What python version should I be using?
  3. And what should the database layout look like?
  4. Couldn't we just make the website look like Tim's actual website?
  5. Have you set up /discord/login/?
avibn commented 4 years ago
  1. To be honest, I have no clue about postgres either. You could alternatively just use another SQL db for development, and we can switch back to postgres in production.

  2. I use 3.7, but anything over 3.6 should work good.

    • A table to store users (which is already implemented) - but you'll need to overwrite the user model in order to store what team a user is in and stats about the user (how many wins, etc).
    • There's already a model to store challenges. For Timathon, just create a new type within that model called "timathon".
    • New model for teams (with a one to many relationship with user models).
    • New model/table to store all submissions from Timathon. .... you get the gist.
  3. Sylte's already started using bootstrap (if that's what you're talking about) and created the layout, so I wouldn't go through the hassle of changing it.

  4. I'm not exactly sure on what you're talking about. But yes, the discord login with allauth is fully functional.

12944qwerty commented 4 years ago
  1. Ok
  2. 3.8.3 for me
  3. So just start working on timathon? Ok
  4. Ok, I noticed that messages wasn't working so I'll add that quickly?
  5. For me it returned an error. I clicked {discord_logo} Login and it brought me to /discord/login/ which didn't work.
    Request Method: | GET
    DoesNotExist
    SocialApp matching query does not exist.
avibn commented 4 years ago
  1. Yes, Timthon is priority at the moment.
  2. Ok
  3. Make sure you add your discord app token, server channels, role id's, etc. Instead of ours.
12944qwerty commented 4 years ago
  1. oh, that's not in our_secrets.... gotta find server channels and role ids :eyes:
avibn commented 4 years ago

Yup

12944qwerty commented 4 years ago

I know you closed this but I just wanted to put one thing out there. you don't have to reply

I'm not going to be using repl.it because of it's limited functionality and because I need to be on discord for this to work.... so it would be easier to use an IDE. byebyerepl

avibn commented 4 years ago

haha alright 😂