-
Notifications
You must be signed in to change notification settings - Fork 11
2. Adding an Events Page
Jace Manshadi edited this page Nov 23, 2023
·
1 revision
- fix link on
csss-site/src/events/frosh/templates/frosh/frosh_week.html
to point to new frosh page instead of under construction page - Follow the example of the previous years and add the necessary URL patterns under
csss-site/src/events/frosh/urls.py
. You will need to add a url pattern for each new webpage you intend to make - Create a new views file for the frosh year under
csss-site/src/events/frosh/views
. You can take a look at the views from previous years to see how to populate it. - You will also need to actually put the static files[1] on the repo, they will need to go under a new folder in
csss-site/src/events/frosh/static/frosh_static
- The html page[s] that you intend to make will go under their appropriate folder name in
csss-site/src/events/frosh/templates/frosh
. 2 thing to keep in mind about the html pages.- In order to reference any static files[1], you will need to reference them by use of the static tags
{% static %}
. Do a search through the previous year's html page for{% static
for an example of how that is done. If you are using Pycharm for working on the site, you can actually see Pycharm autosuggesting what files/folders are available as you type in the path in thestatic
tag - You will need to place the tag
{% load staticfiles %}
at the top of any html file that will be using a static file
- In order to reference any static files[1], you will need to reference them by use of the static tags
- Follow the example of the previous years and add the necessary URL patterns under
csss-site/src/events/mountain_madness/urls.py
. You will need to add a url pattern for each new webpage you intend to make - Create a new views function for the mountain madness under
csss-site/src/events/mountain_madness/views.py
. You can take a look at the functions from previous years to see how to populate it. - You will also need to actually put the static files[1] on the repo, they will need to go under a new folder in
csss-site/src/events/mountain_madness/static/mountain_madness_static
- The html page[s] that you intend to make will go under their appropriate folder name in
csss-site/src/events/mountain_madness/templates/mountain_madness
. 2 thing to keep in mind about the html pages.- In order to reference any static files[1], you will need to reference them by use of the static tags
{% static %}
. Do a search through the previous year's html page for{% static
for an example of how that is done. If you are using Pycharm for working on the site, you can actually see Pycharm autosuggesting what files/folders are available as you type in the path in thestatic
tag - You will need to place the tag
{% load staticfiles %}
at the top of any html file that will be using a static file
- In order to reference any static files[1], you will need to reference them by use of the static tags
- Follow the example of the previous years and add the necessary URL patterns under
csss-site/src/events/fall_hacks/urls.py
. You will need to add a url pattern for each new webpage you intend to make - Create a new views function for the Fall Hacks under
csss-site/src/events/fall_hacks/views.py
. You can take a look at the functions from previous years to see how to populate it. - You will also need to actually put the static files[1] on the repo, they will need to go under a new folder in
csss-site/src/events/fall_hacks/static/fall_hacks_static
- The html page[s] that you intend to make will go under their appropriate folder name in
csss-site/src/events/fall_hacks/templates/fall_hacks
. 2 thing to keep in mind about the html pages.- In order to reference any static files[1], you will need to reference them by use of the static tags
{% static %}
. Do a search through the previous year's html page for{% static
for an example of how that is done. If you are using Pycharm for working on the site, you can actually see Pycharm autosuggesting what files/folders are available as you type in the path in thestatic
tag - You will need to place the tag
{% load staticfiles %}
at the top of any html file that will be using a static file
- In order to reference any static files[1], you will need to reference them by use of the static tags
[1] - css, js, images, etc