From 3a8d3fb31f32ea55dab2b3636613ca735db8c958 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Thu, 29 Oct 2020 20:07:11 +0200 Subject: Move events pages to templates folder --- .../apps/events/pages/code-jams/7/_index.html | 102 --------------------- .../apps/events/pages/code-jams/7/rules.html | 68 -------------- pydis_site/apps/events/pages/code-jams/_index.html | 5 - .../events/tests/test-pages/my-event/_index.html | 1 - .../events/tests/test-pages/my-event/subpage.html | 1 - .../templates/events/pages/code-jams/7/_index.html | 102 +++++++++++++++++++++ .../templates/events/pages/code-jams/7/rules.html | 68 ++++++++++++++ .../templates/events/pages/code-jams/_index.html | 5 + .../events/test-pages/my-event/_index.html | 1 + .../events/test-pages/my-event/subpage.html | 1 + 10 files changed, 177 insertions(+), 177 deletions(-) delete mode 100644 pydis_site/apps/events/pages/code-jams/7/_index.html delete mode 100644 pydis_site/apps/events/pages/code-jams/7/rules.html delete mode 100644 pydis_site/apps/events/pages/code-jams/_index.html delete mode 100644 pydis_site/apps/events/tests/test-pages/my-event/_index.html delete mode 100644 pydis_site/apps/events/tests/test-pages/my-event/subpage.html create mode 100644 pydis_site/templates/events/pages/code-jams/7/_index.html create mode 100644 pydis_site/templates/events/pages/code-jams/7/rules.html create mode 100644 pydis_site/templates/events/pages/code-jams/_index.html create mode 100644 pydis_site/templates/events/test-pages/my-event/_index.html create mode 100644 pydis_site/templates/events/test-pages/my-event/subpage.html (limited to 'pydis_site') diff --git a/pydis_site/apps/events/pages/code-jams/7/_index.html b/pydis_site/apps/events/pages/code-jams/7/_index.html deleted file mode 100644 index d69d0a9e..00000000 --- a/pydis_site/apps/events/pages/code-jams/7/_index.html +++ /dev/null @@ -1,102 +0,0 @@ -{% extends "events/base.html" %} - -{% block title %}Summer Code Jam 2020{% endblock %} - -{% block breadcrumb %} -
  • Events
  • -
  • Code Jams
  • -
  • Summer Code Jam 2020
  • -{% endblock %} - -{% block event_content %} -

    - Ladies and gentlemen, it’s that time of year again! The 7th Python Discord Code Jam is imminent. - This code jam will be held from Friday, July 31st to Sunday, August 9th - where you will complete in teams of five for the elusive title of Code Jam Champion and win some of the many prizes listed. -

    -

    - Web development is one of the most popular areas for Python software and development. - For this code jam, you will be utilizing the Django framework to create a web application. - The Django Software Foundation has even decided to sponsor this event, - allowing us to add more prizes to our prize pool. -

    -

    - Are you unsure of what a code jam is? If so, check out our general code jam page. -

    - -
    -
    -

    Signups are closed

    -
    - -
    -

    - The sign-up period for the Summer Code Jam 2020 is over, - which means that you can no longer sign up for the Code Jam. - You can still take a look at - the qualifier - to get an idea of the task we asked the participants to complete in order to qualify for the jam. - If you want to compete in the next Code Jam, - subscribe to the announcements posted in our community by using the - !subscribe command in the #bot-commands channel of our server. -

    -
    -
    - -

    New to Django?

    -

    - Don't worry! This code jam will be the perfect opportunity for you to get to know one of the most popular web frameworks for Python. - Whether it be a REST API or full fledged website, Django can do it! -

    -

    - During the event, feel free to ask Django-specific questions in the code jam channels - or #web-development. As always, our helpers will be there to help you with all the - other Python-related questions that you have via our help channel system. -

    -

    - If you want to get familiar with Django before the event starts, be sure to check out the tutorial in the official - Django documentation. Alternatively, you could have a look at Corey Schafer's Django Tutorials playlist on YouTube. -

    - -

    Prizes

    -

    This year's prize pool includes:

    - -

    - We will award as many Python Discord t-shirts as we can afford! - We want to thank all of our Patrons over at our - Patreon account for making this possible. - We literally couldn't do this without you! -

    -

    Qualifier & Signups

    -

    - It is no longer possible to sign up for the Summer Code Jam 2020. - If you would like to attempt the qualifier assignment as a personal challenge, you can find it on - GitHub. - The repository also includes a test suite and a solution. -

    -

    - If you would like to participate in one of our future events and don't want to risk missing it, - subscribe to our announcements by using the !subscribe command in the #bot-commands channel on our Discord server. -

    -

    Theme

    -

    - Similarly to our previous code jams, the theme was chosen by our community! - By the end of our two-step voting process, - Early Internet came out on top and is the official theme for this code jam. -

    -{% endblock %} - -{% block sidebar %} - {% include "events/sidebar/code-jams/7.html" %} -
    - - -
    -{% endblock %} diff --git a/pydis_site/apps/events/pages/code-jams/7/rules.html b/pydis_site/apps/events/pages/code-jams/7/rules.html deleted file mode 100644 index b490551a..00000000 --- a/pydis_site/apps/events/pages/code-jams/7/rules.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends "events/base.html" %} - -{% block title %}Rules{% endblock %} - -{% block breadcrumb %} -
  • Events
  • -
  • Code Jams
  • -
  • Summer Code Jam 2020
  • -
  • Rules
  • -{% endblock %} - -{% block event_content %} -
      -
    1. Your solution must use the Django framework. It is not permitted to circumvent this rule by e.g. using Django as a wrapper for another framework.

    2. -
    3. Your solution should be platform agnostic. For example, if you use filepaths in your submission, use pathlib to create platform agnostic Path objects instead of hardcoding the paths.

    4. -
    5. Your project should be a web app which can be run in a standard web browser.

    6. -
    7. -

      - You must document precisely how to install and run your project. - This should be as easy as possible, which means you should consider using dependency managers like pipenv, and npm. - We would also encourage you to use docker and docker-compose to containerize your project, but this isn't a requirement. -

      -
    8. -
    9. - You must get contributions from every member of your team, if you have an issue with someone on your team please contact a member of the administration team. - These contributions do not necessarily have to be code, for example it's absolutely fine for someone to contribute management, documentation, graphics or audio. - - Team members that do not contribute will be removed from the Code Jam, and will not receive their share of any prizes the team may win. - They may also be barred from entering future events. - -
    10. -
    11. You must use GitHub as source control.

    12. -
    13. -

      - All code and assets must be compatible with the MIT license. - This is because we will be merging your submission into our summer-code-jam-2020 repo at the end of the jam, - and this repo is licensed with the MIT license. - Projects that include assets that are incompatible with this license may be disqualified. -

      -
    14. -
    15. All code must be written and committed within the time constrictions of the jam. Late commits may be reverted, so make sure you leave enough time to bug test your program.

    16. -
    17. -

      - Use English as the main language for your project, including names, comments, documentation, and commit messages. - The text displayed in your web application should also be in English, - although you are allowed to provide the user with options for internationalisation and translation. -

      -
    18. -
    - - -
    - Please note that our regular - community rules and code of conduct - also apply during the event and that we reserve the right to make changes to these rules at any time. -
    -{% endblock %} - -{% block sidebar %} - {% include "events/sidebar/code-jams/7.html" %} -
    - - -
    -{% endblock %} diff --git a/pydis_site/apps/events/pages/code-jams/_index.html b/pydis_site/apps/events/pages/code-jams/_index.html deleted file mode 100644 index 5df3807c..00000000 --- a/pydis_site/apps/events/pages/code-jams/_index.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "events/base.html" %} - -{% block event_content %} -

    ToDo!

    -{% endblock %} diff --git a/pydis_site/apps/events/tests/test-pages/my-event/_index.html b/pydis_site/apps/events/tests/test-pages/my-event/_index.html deleted file mode 100644 index 1a859fdd..00000000 --- a/pydis_site/apps/events/tests/test-pages/my-event/_index.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "events/base.html" %} diff --git a/pydis_site/apps/events/tests/test-pages/my-event/subpage.html b/pydis_site/apps/events/tests/test-pages/my-event/subpage.html deleted file mode 100644 index 1a859fdd..00000000 --- a/pydis_site/apps/events/tests/test-pages/my-event/subpage.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "events/base.html" %} diff --git a/pydis_site/templates/events/pages/code-jams/7/_index.html b/pydis_site/templates/events/pages/code-jams/7/_index.html new file mode 100644 index 00000000..d69d0a9e --- /dev/null +++ b/pydis_site/templates/events/pages/code-jams/7/_index.html @@ -0,0 +1,102 @@ +{% extends "events/base.html" %} + +{% block title %}Summer Code Jam 2020{% endblock %} + +{% block breadcrumb %} +
  • Events
  • +
  • Code Jams
  • +
  • Summer Code Jam 2020
  • +{% endblock %} + +{% block event_content %} +

    + Ladies and gentlemen, it’s that time of year again! The 7th Python Discord Code Jam is imminent. + This code jam will be held from Friday, July 31st to Sunday, August 9th + where you will complete in teams of five for the elusive title of Code Jam Champion and win some of the many prizes listed. +

    +

    + Web development is one of the most popular areas for Python software and development. + For this code jam, you will be utilizing the Django framework to create a web application. + The Django Software Foundation has even decided to sponsor this event, + allowing us to add more prizes to our prize pool. +

    +

    + Are you unsure of what a code jam is? If so, check out our general code jam page. +

    + +
    +
    +

    Signups are closed

    +
    + +
    +

    + The sign-up period for the Summer Code Jam 2020 is over, + which means that you can no longer sign up for the Code Jam. + You can still take a look at + the qualifier + to get an idea of the task we asked the participants to complete in order to qualify for the jam. + If you want to compete in the next Code Jam, + subscribe to the announcements posted in our community by using the + !subscribe command in the #bot-commands channel of our server. +

    +
    +
    + +

    New to Django?

    +

    + Don't worry! This code jam will be the perfect opportunity for you to get to know one of the most popular web frameworks for Python. + Whether it be a REST API or full fledged website, Django can do it! +

    +

    + During the event, feel free to ask Django-specific questions in the code jam channels + or #web-development. As always, our helpers will be there to help you with all the + other Python-related questions that you have via our help channel system. +

    +

    + If you want to get familiar with Django before the event starts, be sure to check out the tutorial in the official + Django documentation. Alternatively, you could have a look at Corey Schafer's Django Tutorials playlist on YouTube. +

    + +

    Prizes

    +

    This year's prize pool includes:

    + +

    + We will award as many Python Discord t-shirts as we can afford! + We want to thank all of our Patrons over at our + Patreon account for making this possible. + We literally couldn't do this without you! +

    +

    Qualifier & Signups

    +

    + It is no longer possible to sign up for the Summer Code Jam 2020. + If you would like to attempt the qualifier assignment as a personal challenge, you can find it on + GitHub. + The repository also includes a test suite and a solution. +

    +

    + If you would like to participate in one of our future events and don't want to risk missing it, + subscribe to our announcements by using the !subscribe command in the #bot-commands channel on our Discord server. +

    +

    Theme

    +

    + Similarly to our previous code jams, the theme was chosen by our community! + By the end of our two-step voting process, + Early Internet came out on top and is the official theme for this code jam. +

    +{% endblock %} + +{% block sidebar %} + {% include "events/sidebar/code-jams/7.html" %} +
    + + +
    +{% endblock %} diff --git a/pydis_site/templates/events/pages/code-jams/7/rules.html b/pydis_site/templates/events/pages/code-jams/7/rules.html new file mode 100644 index 00000000..b490551a --- /dev/null +++ b/pydis_site/templates/events/pages/code-jams/7/rules.html @@ -0,0 +1,68 @@ +{% extends "events/base.html" %} + +{% block title %}Rules{% endblock %} + +{% block breadcrumb %} +
  • Events
  • +
  • Code Jams
  • +
  • Summer Code Jam 2020
  • +
  • Rules
  • +{% endblock %} + +{% block event_content %} +
      +
    1. Your solution must use the Django framework. It is not permitted to circumvent this rule by e.g. using Django as a wrapper for another framework.

    2. +
    3. Your solution should be platform agnostic. For example, if you use filepaths in your submission, use pathlib to create platform agnostic Path objects instead of hardcoding the paths.

    4. +
    5. Your project should be a web app which can be run in a standard web browser.

    6. +
    7. +

      + You must document precisely how to install and run your project. + This should be as easy as possible, which means you should consider using dependency managers like pipenv, and npm. + We would also encourage you to use docker and docker-compose to containerize your project, but this isn't a requirement. +

      +
    8. +
    9. + You must get contributions from every member of your team, if you have an issue with someone on your team please contact a member of the administration team. + These contributions do not necessarily have to be code, for example it's absolutely fine for someone to contribute management, documentation, graphics or audio. + + Team members that do not contribute will be removed from the Code Jam, and will not receive their share of any prizes the team may win. + They may also be barred from entering future events. + +
    10. +
    11. You must use GitHub as source control.

    12. +
    13. +

      + All code and assets must be compatible with the MIT license. + This is because we will be merging your submission into our summer-code-jam-2020 repo at the end of the jam, + and this repo is licensed with the MIT license. + Projects that include assets that are incompatible with this license may be disqualified. +

      +
    14. +
    15. All code must be written and committed within the time constrictions of the jam. Late commits may be reverted, so make sure you leave enough time to bug test your program.

    16. +
    17. +

      + Use English as the main language for your project, including names, comments, documentation, and commit messages. + The text displayed in your web application should also be in English, + although you are allowed to provide the user with options for internationalisation and translation. +

      +
    18. +
    + + +
    + Please note that our regular + community rules and code of conduct + also apply during the event and that we reserve the right to make changes to these rules at any time. +
    +{% endblock %} + +{% block sidebar %} + {% include "events/sidebar/code-jams/7.html" %} +
    + + +
    +{% endblock %} diff --git a/pydis_site/templates/events/pages/code-jams/_index.html b/pydis_site/templates/events/pages/code-jams/_index.html new file mode 100644 index 00000000..5df3807c --- /dev/null +++ b/pydis_site/templates/events/pages/code-jams/_index.html @@ -0,0 +1,5 @@ +{% extends "events/base.html" %} + +{% block event_content %} +

    ToDo!

    +{% endblock %} diff --git a/pydis_site/templates/events/test-pages/my-event/_index.html b/pydis_site/templates/events/test-pages/my-event/_index.html new file mode 100644 index 00000000..1a859fdd --- /dev/null +++ b/pydis_site/templates/events/test-pages/my-event/_index.html @@ -0,0 +1 @@ +{% extends "events/base.html" %} diff --git a/pydis_site/templates/events/test-pages/my-event/subpage.html b/pydis_site/templates/events/test-pages/my-event/subpage.html new file mode 100644 index 00000000..1a859fdd --- /dev/null +++ b/pydis_site/templates/events/test-pages/my-event/subpage.html @@ -0,0 +1 @@ +{% extends "events/base.html" %} -- cgit v1.2.3