GithubHelp home page GithubHelp logo

xtremeblaze777 / firstdjangoproject Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.5 MB

Django: a web dev framework for Python

Python 19.68% Procfile 0.03% CSS 32.92% JavaScript 39.11% Shell 0.06% HTML 8.20%

firstdjangoproject's Introduction

Developers

This is a basic Django website developed by students at the University of Virginia (UVA): Jaden Carroll, Ratik Mathur, Cooper Scher, and Sarah Rolfe. The website displays courses offered by the University alonside other useful information to aid in creating a schedule. Other additional features include: saving courses to a "shopping cart," making a schedule to view, and adding friedns to view their schedules.

Google OAuth setup for new heroku deployment

  1. Locally, run python3 manage.py makemigrations
  2. On heroku bash, run the Site ID script with chmod +x set_siteID.sh && ./set_siteID.sh; add the printed SITE_ID in LousListA8/settings.py
  3. Add the url of your heroku deployment to the ALLOWED_HOSTS variable in LousListA8/settings.py
  4. Push to github/heroku
  5. Reset your heroku database by going to addons->postgres ->settings->reset database
  6. On heroku bash, create an admin account using python3 manage.py createsuperuser
  7. Login to your admin from the /admin url of your deployment
  8. Do Step 5 of https://www.section.io/engineering-education/django-google-oauth/ to set up google OAuth like normal:
    • Go to the social sites section and make sure the only url is the current heroku deployment.
    • Go to the social apps section and add an app that has Google as the provider, and get the rest of the fields from our google developer console
  9. Add the url (and callback url) of your heroku deployment to the Google Developer Console
  10. On heroku bash, run python3 manage.py seed

Citations

firstdjangoproject's People

Contributors

xtremeblaze777 avatar carrolljaden avatar srolarah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.