Skip to content

Latest commit

 

History

History
77 lines (44 loc) · 2.24 KB

README.md

File metadata and controls

77 lines (44 loc) · 2.24 KB

RIT Computer Science Community Website

Contributing

Cloning and running your own copy

In order to make a contribution, you'll need to clone and test your changes.

To clone the repo run the following command:

git clone https://github.com/rit-csc/CSCWebsite

Set up the database:

python3 manage.py migrate

Then run the server using the following command:

python3 manage.py runserver
Dependencies & Frameworks
Meat & Potatoes (Creating Pages)

Making a page is as easy as creating a html file in csc_new/pages/templates/pages/.

For backend-intensive pages, you will have to put a new url in csc_new/csc_new/urls.py and a new view/context in csc_new/pages/views.py.

Static files (images, CSS, JavaScript, etc.) go in staticfiles/PATH_TO_YOUR_FILE. To refer to a static file in a template, do the following (outside of a {% verbatim %} block):

{% load static %}

<!-- other stuff -->

{% static PATH_TO_YOUR_FILE %}

Django will do the rest for you!

A base template exists for all pages. All content that goes on every page should end up here. To extend this template, put {% extends 'csc_new/base.html' %} at the top of your file and include your content in blocks that use the template correctly.

Note: All contributions from outside contributors will be code-reviewed by the projects committee chair and/or the Systems Administrator before being pushed to the live website.

Tests

To run tests, navigate to the csc_new/ directory and run the following:

python manage.py test

License

Our website is open-sourced using the MIT License.