Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.79 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.79 KB

DuckHunt V4 Website (DHV4_Web)

Discord GitHub commit activity Website

The website that powers https://duckhunt.me.

Technical description

This is a Django website hosted in a docker container. The website uses three main parts, one of which is routed into this app :

  • The static files (/static/*)
  • The DuckHunt API (/api/*)
  • The DuckHunt Website (Everything else)

The DuckHunt website itself is distributed in multiple distinct parts (apps in django) :

  • Public, for the homepage, status pages, command lists and more
  • Botdata, for everything related to the bot database : Guilds (discord servers), Channels, Players
  • Docs, that renders the markdown files in this repo and display them on the webpages, using a specific stylesheet.

For more information about the API, you can see this page.

How to contribute

Every app is divided in two main parts :

  • The templates, in the app templates directory, are HTML files with variables added using Jinja2. Read this for more information what you can do in templates.

  • The views, that handle the HTTP request and fetch useful data from the database. This is the place you should edit first if you wish to add more data in the webpages.

If you want to make substancial changes to the app, please open an issue first to make sure your changes will get accepted. Don't hesitate to ask questions about the code by opening an issue or asking on Discord.