Skip to content

AnonymousPurplePotato/otis-web_M

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTIS-WEB status

OTIS-WEB

These are the source files for the internal website that I use to teach my course OTIS. It is pretty standard Django, so you should be able to spin up a local server on a standard Unix environment.

Installation instructions

Standard Unix environment

  1. Fork the repository first if you're planning on submitting a pull request later.
  2. Install the following standard tools: python (version 3.9), pip, gcc, git. (For each tool, search "[name of thing to install] [your OS]" on the web.)
  3. Clone this repository: git clone https://github.com/USERNAME/otis-web. Replace USERNAME with your username if you're forking; otherwise, replace with vEnhance.
  4. Run git submodule --init --recursive in order to pull the dwhandler submodule. If this is done correctly, the folder dwhandler should contain a file called __init__.py which defines class DiscordWebhookHandler.
  5. You probably want to create a new virtual environment to avoid polluting your system with all the dependencies. If you've used conda or virtualenv or similar before, you know the drill. Otherwise, read through the steps here to create a wrapper for OTIS-WEB.
  6. If things are working, you should be able to run in the virtual environment and then run pip install poetry. This enables you to use the poetry command; verify this by checking poetry --help produces a help message.
  7. Once you have poetry, hit poetry install. This will install a lot of Python packages into your virtual environment.
  8. If everything is working, python manage.py check should run with no errors.
  9. Run python manage.py migrate to create the local database.
  10. Run python manage.py createsuperuser to create an admin user.
  11. Run python manage.py runserver. The command will spin up a continuously running server.
  12. Point your browser to http://127.0.0.1:8000. You should be able to log in with the user you defined in step 7.
  13. The website is functional now, but it is a bit bare-bones. To populate it with some test data, use http://127.0.0.1:8000/admin.

Feature requests or bug reports

Submit an issue on GitHub.

Pull requests

For OTIS students: pull requests welcome! If you think the website can be improved in some way, feel free to implement it. See contributing guidelines.

526561645265616452656164

About

OTIS course management system

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.7%
  • HTML 15.4%
  • JavaScript 7.3%
  • CSS 3.4%
  • Jinja 1.2%
  • Shell 0.6%
  • TeX 0.4%