Skip to content

mbhs/counselor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current Features

-Decent HTML/CSS (would like someone to review it)
-Event system that supports file uploads (event system is like a linear calendar)
-System in DB for text pages that uses django-precise-bbcode for format
(https://django-precise-bbcode.readthedocs.io/en/stable/index.html)

Run

Do "pip install django-precise-bbcode" before running. The BBCode module is used for rendering content from the database. This may or may not go away.

To run: "python manage.py runserver"
This will run the server on http://127.0.0.1:8000 by default. Or, specify a custom host:port after runserver in the command.

Or, visit the current build at https://counseling.ptgough.com (Please let Patrick know if it is broken so he can reboot the ptgough.com server) (502 Bad Gateway = broken).

Website Structure

There are currently three models in the database as deinfed in core/models.py.

TextPage is a container that stores text to render on a page in the BBCode format. The model has fields for text and a field for the priority. Priority represents the order the instance is displayed in the sidebar.
The curent order is in line with the previous RC's request.

Event is for announcements. Events contain a datestamp and text. They are displayed in a linear fashion in the events link.

File is for uploading user files. Currently, events can ForeignKey into files to render them as attachments.
However, as the new department is ONLY working in Google, file uploads are no longer necessary.

Currently, there is no framework for announcements, but the Twitter feed is showing.

The HTML files all use the Django include statement to "include" the header and sidebar files. This statement injects the HTML from the header into the HTML for the other files. This system makes it easier to change the header without manually updating the rest of the site.

To see all BBCode tags, go here https://django-precise-bbcode.readthedocs.io/en/stable/basic_reference/builtin_bbcodes.html.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published