diff --git a/.recycle/database.bash b/.recycle/database.bash new file mode 100755 index 0000000..b20ddba --- /dev/null +++ b/.recycle/database.bash @@ -0,0 +1,19 @@ +#!/bin/bash + +## + +reset + +clear + +## + +set -e + +set -x + +## + +docker compose -f database.yaml down --remove-orphans + +docker compose -f database.yaml up -d --build diff --git a/.recycle/database.yaml b/.recycle/database.yaml new file mode 100644 index 0000000..d510c6b --- /dev/null +++ b/.recycle/database.yaml @@ -0,0 +1,55 @@ +services: + +########################################## +## +## hosting / relational data +## +########################################## + + card-players-unite-postgres: + + container_name: card-players-unite-postgres + + image: postgres:14.1-alpine + + restart: unless-stopped + + ports: + + - 5432:5432 + + environment: + + - POSTGRES_DB=maverickdb + + - POSTGRES_USER=maverickdb + + - POSTGRES_PASSWORD=maverickdb + + volumes: + + - /tmp/volumes/postgres:/var/lib/postgresql/data + + card-players-unite-pgadmin: + + container_name: card-players-unite-pgadmin + + image: dpage/pgadmin4 + + depends_on: + + - card-players-unite-postgres + + ports: + + - "5480:80" + + environment: + + PGADMIN_DEFAULT_EMAIL: lorem@loremipsum.com + + PGADMIN_DEFAULT_PASSWORD: maverickdb + + volumes: + + - /tmp/volumes/pgadmin4:/var/lib/pgadmin diff --git a/.recycle/django.bash b/.recycle/django.bash new file mode 100755 index 0000000..9fabe6f --- /dev/null +++ b/.recycle/django.bash @@ -0,0 +1,38 @@ +#!/bin/bash + +## + +set -e + +set -x + +## + +reset + +clear + +## + +#python3 manage.py dumpdata +## This will IRREVERSIBLY DESTROY all data currently in the "maverickdb" database, and return each table to an empty state. + +### python3 manage.py flush + +### python3 manage.py sqlflush + +#python3 manage.py sqlmigrate + +##python3 manage.py sqlsequencereset + +#python3 manage.py generateschema + +python3 manage.py makemigrations + +python3 manage.py migrate + +#python3 manage.py squashmigrations bikes + +#python3 manage.py optimizemigration + +python3 manage.py runserver 0.0.0.0:8888 diff --git a/.recycle/provision.bash b/.recycle/provision.bash new file mode 100755 index 0000000..3914646 --- /dev/null +++ b/.recycle/provision.bash @@ -0,0 +1,25 @@ +#!/bin/bash + +# 1. Setup/Re-setup Virtual Environment + +python3 -m venv venv + +source venv/bin/activate + +# 2. Downgrade pip to bypass the invalid metadata error in django-rest-auth-forked + +pip install "pip<24.1" + +# 3. Install requirements (now it will ignore the parenthesis error) + +if [ -f "requirements.txt" ]; then + + pip install -r requirements.txt + +else + + pip install django + +fi + +echo "Setup complete. Run 'source venv/bin/activate' to start working." diff --git a/compose.yaml b/compose.yaml index 7b34fa6..88c4c9b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,29 +1,75 @@ services: -# The Django Web Application - web: - container_name: card-players-unite-web - build: - context: . - dockerfile: Dockerfile + +########################################## +## +## hosting / networking +## +########################################## + + hosting-proxy: + + container_name: hosting-proxy + + image: softwareshinobi/docker-container-proxy restart: unless-stopped - ports: - - "8000:8000" volumes: - - .:/home/app/webapp + + - /var/run/docker.sock:/tmp/docker.sock:ro + + - /var/docker/nginx/html:/usr/share/nginx/html + + - /var/docker/nginx/certs:/etc/nginx/certs + + - /var/docker/nginx/vhost:/etc/nginx/vhost.d + + ports: + + - 33080:80 + + - 33443:443 + + logging: + + options: + + max-size: "10m" + + max-file: "3" + + hosting-letsencrypt: + + container_name: hosting-letsencrypt + + image: jrcs/letsencrypt-nginx-proxy-companion + + restart: unless-stopped + + volumes_from: + + - hosting-proxy + + volumes: + + - /var/run/docker.sock:/var/run/docker.sock + + - /var/docker/nginx/acme:/etc/acme.sh + environment: - - POSTGRES_DB=maverickdb - - POSTGRES_USER=maverickdb - - POSTGRES_PASSWORD=maverickdb - - POSTGRES_HOST=card-players-unite-postgres - depends_on: - - card-players-unite-postgres + + DEFAULT_EMAIL: troy@softwareshinobi.com + +########################################## +## +## hosting / relational data +## +########################################## card-players-unite-postgres: container_name: card-players-unite-postgres - + image: postgres:14.1-alpine restart: unless-stopped @@ -32,7 +78,7 @@ services: - 5432:5432 - environment: + environment: - POSTGRES_DB=maverickdb @@ -40,30 +86,99 @@ services: - POSTGRES_PASSWORD=maverickdb -## volumes: -## -## - /tmp/volume-data-postgres:/var/lib/postgresql/data - - card-players-unite-pgadmin: + volumes: + - /tmp/volume-data-postgres:/var/lib/postgresql/data + + healthcheck: + + test: ["CMD-SHELL", "pg_isready -U maverickdb -d maverickdb"] + interval: 5s + timeout: 5s + retries: 5 + + card-players-unite-pgadmin: + user: root # Or your specific UID:GID container_name: card-players-unite-pgadmin image: dpage/pgadmin4 depends_on: + card-players-unite-postgres: + condition: service_healthy # THIS TELLS DOCKER TO WAIT FOR THE HEALTHCHECK - - card-players-unite-postgres - ports: - - - "5480:80" - + + - 5480:80 + + volumes: + + - /tmp/volumes/pgadmin4444:/var/lib/pgadmin + environment: - + PGADMIN_DEFAULT_EMAIL: lorem@loremipsum.com - + PGADMIN_DEFAULT_PASSWORD: maverickdb -## volumes: -## -## - /tmp/volume-data-pgadmin4:/var/lib/pgadmin +########################################## +## +## hosting / relational data +## +########################################## + + apis.cardplayersunited.com: + + container_name: apis.cardplayersunited.com + + image: apis.cardplayersunited.com + + build: + + context: . + + dockerfile: Dockerfile + + restart: unless-stopped + + depends_on: + card-players-unite-postgres: + condition: service_healthy # THIS TELLS DOCKER TO WAIT FOR THE HEALTHCHECK + + ports: + + - 8888:8000 + + volumes: + + - .:/home/app/webapp + + environment: + + - POSTGRES_DB=maverickdb + + - POSTGRES_USER=maverickdb + + - POSTGRES_PASSWORD=maverickdb + + - POSTGRES_HOST=card-players-unite-postgres + +## documentation + + docs.cardplayersunited.com: + + container_name: docs.cardplayersunited.com + + image: docs.cardplayersunited.com + + build: + + context: docs + + dockerfile: Dockerfile + + restart: unless-stopped + + ports: + + - 8000:80 diff --git a/docs/.dockerignore b/docs/.dockerignore new file mode 100644 index 0000000..43cb65d --- /dev/null +++ b/docs/.dockerignore @@ -0,0 +1,11 @@ +.git + +.pristine + +.trash + +.recycle + +.backup + +.template diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..1ce87bf --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,7 @@ +pdf/ + +export/ + +site/ + +*.dat diff --git a/docs/Dockerfile b/docs/Dockerfile new file mode 100644 index 0000000..730bdfd --- /dev/null +++ b/docs/Dockerfile @@ -0,0 +1,16 @@ +FROM titom73/mkdocs AS mkdocsBuild + +RUN pip install markupsafe==2.0.1 + +RUN pip install mkdocs-blog-plugin + +WORKDIR /docs + +COPY . . + +RUN mkdocs build + +FROM mengzyou/bbhttpd:1.35 + +COPY --from=mkdocsBuild --chown=www:www /docs/site /home/www/html + diff --git a/docs/Jenkinsfile b/docs/Jenkinsfile new file mode 100644 index 0000000..79d132d --- /dev/null +++ b/docs/Jenkinsfile @@ -0,0 +1,56 @@ +pipeline { + + agent none + + options { + + disableConcurrentBuilds(abortPrevious: true) + + buildDiscarder(logRotator(numToKeepStr: '10')) + } + + stages { + + stage('docker compose build') { + + agent { + + label "gulfstream" + + } + + steps { + + dir('.') { + + sh 'docker compose build' + + } + + } + + } + + stage('docker compose push') { + + agent { + + label "gulfstream" + + } + + steps { + + dir('.') { + + sh 'docker compose push' + + } + + } + + } + + } + +} diff --git a/docs/compose.bash b/docs/compose.bash new file mode 100755 index 0000000..4c9700e --- /dev/null +++ b/docs/compose.bash @@ -0,0 +1,19 @@ +#!/bin/bash + +## + +set -e + +set -x + +## + +reset + +clear + +## + +docker compose down --remove-orphans + +docker compose up --build -d diff --git a/docs/compose.yaml b/docs/compose.yaml new file mode 100644 index 0000000..8698521 --- /dev/null +++ b/docs/compose.yaml @@ -0,0 +1,23 @@ +services: + + lorem-ipsum-dolor-sit: + + container_name: lorem-ipsum-dolor-sit + + image: softwareshinobi/consectetur-adipiscing-ebook + + build: + + context: . + + dockerfile: Dockerfile + + ports: + + - 8000:80 + + environment: + + VIRTUAL_HOST: lorem.ipsum.example + + LETSENCRYPT_HOST: lorem.ipsum.example diff --git a/docs/cover.png b/docs/cover.png new file mode 100644 index 0000000..4a015f9 Binary files /dev/null and b/docs/cover.png differ diff --git a/docs/ebook.bash b/docs/ebook.bash new file mode 100755 index 0000000..398577c --- /dev/null +++ b/docs/ebook.bash @@ -0,0 +1,27 @@ +#!/bin/bash + +## + +set -e + +set -v + +## + +reset + +clear + +## + +ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs.pdf.yml + +rm -rf site/ + +## + +for file in pdf/*.pdf; do firefox "$file" & done + +## + + diff --git a/docs/index.md b/docs/legacy/index.md similarity index 100% rename from docs/index.md rename to docs/legacy/index.md diff --git a/docs/quick-start.md b/docs/legacy/quick-start.md similarity index 100% rename from docs/quick-start.md rename to docs/legacy/quick-start.md diff --git a/docs/legacy/readme.md b/docs/legacy/readme.md new file mode 100644 index 0000000..23c3575 --- /dev/null +++ b/docs/legacy/readme.md @@ -0,0 +1,43 @@ +# intro + +![Card Players Unite](/docs/imagery/cover.png) + +## Developer Documentation + +You can run the app at home. + +Follow the instructions below on an Ubuntu Linux server. + +[Developer Docs](/docs/index.md) + +## Tools & Tech + +the tools and tech + +| website | how the site helped | +|---------|---------------------| +|[Bootswatch](https://bootswatch.com/)|bootstrap compatible prebuild color theming and css| +|[Digital Ocean](https://www.digitalocean.com/community/tutorials)|cloud server hosting and tutorials| +|[Internet Tutorials](/docs/tutorials.md)|various tutorials from the internet with how-to help and information| +|[Stock Imagery](/docs/attribution.md)|free stock imagery from the internet, with attribution.| +|[TOC Generator](https://ecotrust-canada.github.io/markdown-toc/)|github wiki toc generator.| +|[Jigsaw validator](https://jigsaw.w3.org/css-validator/)|Validator CSS and HTML| +|[Browserstack](https://www.browserstack.com/responsive)|Responsiveness| + +## Quick Start Guide + +You can run the app at home. + +Follow the instructions below on an Ubuntu Linux server. + +[Quick Start Guide](/docs/quick-start.md) + +### Preview Card Players Unite + +![Card Players Unite](/docs/imagery/cover.png) + +the app is deployed and available for usage. + +Click the link below to access Card Players Unite. + +[Access Card Players Unite](https://cardplayersunite.online/) diff --git a/docs/updates.md b/docs/legacy/updates.md similarity index 100% rename from docs/updates.md rename to docs/legacy/updates.md diff --git a/docs/license.md b/docs/license.md new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/docs/license.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs/mkdocs.bash b/docs/mkdocs.bash new file mode 100755 index 0000000..a52d4bd --- /dev/null +++ b/docs/mkdocs.bash @@ -0,0 +1,17 @@ +#!/bin/bash + +## + +reset + +clear + +## + +set -e + +set -x + +## + +mkdocs serve diff --git a/docs/mkdocs.pdf.yml b/docs/mkdocs.pdf.yml new file mode 100644 index 0000000..823c612 --- /dev/null +++ b/docs/mkdocs.pdf.yml @@ -0,0 +1,51 @@ +site_name: "Lorem Ipsum (Dolor Sit)" + +docs_dir: "pages" + +site_dir: "pdf" + +theme: + + name: material + + highlightjs: true + + hljs_languages: + + - bash + + - yaml + + - java + + - python + +plugins: + + - to-pdf: + + author: "Consectetur Adipiscing" + + copyright: "All Rights Reserved. Lorem Ipsum 2025." + + output_path: "lorem-ipsum-101.pdf" + + cover: true + + cover_title: "Lorem Ipsum 101" + + cover_subtitle: "The definitive guide to filler text" + + cover_logo: "cover.png" + + toc_title: "Indice Contentorum" + + toc_level: 3 + + ordered_chapter_level: 2 + + enabled_if_env: ENABLE_PDF_EXPORT + +extra_css: + + - styling.css diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml new file mode 100644 index 0000000..7ec3719 --- /dev/null +++ b/docs/mkdocs.yml @@ -0,0 +1,62 @@ +## +## Project information +## + +site_name: "Lorem Ipsum Dolor" + +site_favicon: favicon.svg + +docs_dir: "pages" + +site_author: "Consectetur Adipiscing" + +##site_url: https://lorem-ipsum.example.io/ +##site_description: >- +## Sed ut perspiciatis unde omnis iste natus error sit voluptatem +## accusantium doloremque laudantium, totam rem aperiam. + +# Repository +##repo_name: lorem/ipsum-dolor +##repo_url: https://github.com/lorem/ipsum-dolor + +# Copyright +##copyright: Copyright © 2023 - 2025 Lorem Ipsum + +theme: + + ## + ## Find More Themes Here: + ## + ## https://mkdocs.github.io/mkdocs-bootswatch/ + ## + ## List of theme values: + ## + ## mkdocs, readthedocs, material, cerulean, cosmo, + ## cyborg, darkly, flatly, journal, litera, lumen, lux, + ## materia, minty, pulse, sandstone, simplex, slate, solar, + ## spacelab, superhero, united, yeti + ## + + name: material + + ## + ## you can alternate colors for the navigation header. + ## + ## Allowed values: primary (the default), dark, and light: + ## + + nav_style: primary + + highlightjs: true + + hljs_languages: + + - bash + + - yaml + + - java + + - python + +extra_css: [styling.css] diff --git a/docs/pages/cover.png b/docs/pages/cover.png new file mode 100644 index 0000000..4a015f9 Binary files /dev/null and b/docs/pages/cover.png differ diff --git a/docs/pages/index.md b/docs/pages/index.md new file mode 100644 index 0000000..b585144 --- /dev/null +++ b/docs/pages/index.md @@ -0,0 +1,41 @@ +# Curabitur Sodales Ligula + +![Lorem Ipsum Ebook](cover.png) + +## Introduction + +**Lorem ipsum dolor sit amet**, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +* **Integer** nec odio. +* **Praesent** libero. +* **Sed cursus** ante dapibus diam. + +## Section I: Phasellus Porttitor + +Phasellus porttitor, enim ut fermentum dignissim, ante neque aliquam tellus, vitae iaculis lacus elit id tortor. + +> "Nulla facilisi. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum." + +### Sub-section A + +Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. + +1. **Primis in faucibus**: Orci luctus et ultrices posuere cubilia Curae. +2. **Suspendisse sollicitudin**: Velit sed leo. +3. **Ut leo**: Amet, adipiscing vitae, ultricies sit amet, tempor sit amet, ante. + +--- + +## Section II: Analysis of Data + +In this section, we observe the relationship between variables as defined by the following expression: + +| Category | Value A | Value B | +| --- | --- | --- | +| Alpha | 10.5 | 20.2 | +| Beta | 15.1 | 18.9 | +| Gamma | 12.3 | 21.0 | + +## Conclusion + +Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. diff --git a/docs/pages/styling.css b/docs/pages/styling.css new file mode 100644 index 0000000..a432df4 --- /dev/null +++ b/docs/pages/styling.css @@ -0,0 +1,17 @@ +/* PDF Watermark Styling */ +@media print { + body::before { + content: "LOREM IPSUM"; /* Change this to your desired text */ + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%) rotate(-45deg); + font-size: 100pt; + color: rgba(0, 0, 0, 0.07); /* subtle grey opacity */ + z-index: -1000; + white-space: nowrap; + pointer-events: none; + font-family: sans-serif; + font-weight: bold; + } +} diff --git a/docs/provision.bash b/docs/provision.bash new file mode 100755 index 0000000..1b174a2 --- /dev/null +++ b/docs/provision.bash @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +set -x + +## + +apt update + +## + +apt install pip -y + +## + +pip install mkdocs-material + +## + +pip install mkdocs-with-pdf --break-system-packages + +pip install mkdocs-to-pdf diff --git a/docs/readme.md b/docs/readme.md index 23c3575..9007d43 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -1,43 +1,57 @@ -# intro +# Lorem Ipsum Ebook Starter -![Card Players Unite](/docs/imagery/cover.png) +This repository is a professional boilerplate for creating searchable, high-quality ebooks and documentation sites using **MkDocs**. It is pre-configured to support local development via Docker and automated PDF generation. -## Developer Documentation +![Lorem Ipsum Ebook](cover.png) -You can run the app at home. +## 🚀 Features -Follow the instructions below on an Ubuntu Linux server. +* **Documentation Site**: Powered by MkDocs with the `readthedocs` theme. -[Developer Docs](/docs/index.md) +* **PDF Export**: Built-in support for generating professional PDF versions of your content. -## Tools & Tech +* **Dockerized**: Simple deployment and local testing using Docker Compose. -the tools and tech +* **Syntax Highlighting**: Pre-configured for YAML and Rust. -| website | how the site helped | -|---------|---------------------| -|[Bootswatch](https://bootswatch.com/)|bootstrap compatible prebuild color theming and css| -|[Digital Ocean](https://www.digitalocean.com/community/tutorials)|cloud server hosting and tutorials| -|[Internet Tutorials](/docs/tutorials.md)|various tutorials from the internet with how-to help and information| -|[Stock Imagery](/docs/attribution.md)|free stock imagery from the internet, with attribution.| -|[TOC Generator](https://ecotrust-canada.github.io/markdown-toc/)|github wiki toc generator.| -|[Jigsaw validator](https://jigsaw.w3.org/css-validator/)|Validator CSS and HTML| -|[Browserstack](https://www.browserstack.com/responsive)|Responsiveness| +* **Custom Styling**: Integrated CSS support for branding and layout adjustments. -## Quick Start Guide +## đź“‚ Project Structure -You can run the app at home. +* `pages/`: Contains the Markdown source files for your ebook. -Follow the instructions below on an Ubuntu Linux server. +* `pdf/`: The output directory for generated PDF files (ignored by git). -[Quick Start Guide](/docs/quick-start.md) +* `mkdocs.yml`: The main configuration file for project metadata, themes, and plugins. -### Preview Card Players Unite +* `compose.yaml`: Defines the Docker services for serving the site locally. -![Card Players Unite](/docs/imagery/cover.png) +* `compose.bash`: A helper script to quickly rebuild and restart the Docker environment. -the app is deployed and available for usage. +## 🛠️ Getting Started -Click the link below to access Card Players Unite. +### Prerequisites -[Access Card Players Unite](https://cardplayersunite.online/) +* Docker and Docker Compose installed on your machine. + +### Local Development + +To launch the project locally and view your ebook in a browser: + +1. Run the setup script: + +```bash +./compose.bash +[cite_start]``` [cite: 31744] + +``` + +2. Access the site at `http://localhost:8000`. + +## PDF Generation + +The project uses the `to-pdf` plugin to automatically generate a document titled `lorem-ipsum-101.pdf`. Ensure your assets (like `assets/images/cover.jpg`) are in place to include a cover page in the export. + +## đź“„ License + +This project is licensed under the Apache License, Version 2.0. diff --git a/dump-directory-20260210-025037.txt b/dump-directory-20260210-025037.txt deleted file mode 100644 index 4e876cf..0000000 --- a/dump-directory-20260210-025037.txt +++ /dev/null @@ -1,1565 +0,0 @@ -#### file: ./compose.yaml -services: -# The Django Web Application - web: - container_name: card-players-unite-web - build: - context: . - dockerfile: Dockerfile - - restart: unless-stopped - - ports: - - "8000:8000" - volumes: - - .:/home/app/webapp - environment: - - POSTGRES_DB=maverickdb - - POSTGRES_USER=maverickdb - - POSTGRES_PASSWORD=maverickdb - - POSTGRES_HOST=card-players-unite-postgres - depends_on: - - card-players-unite-postgres - - card-players-unite-postgres: - - container_name: card-players-unite-postgres - - image: postgres:14.1-alpine - - restart: unless-stopped - - ports: - - - 5432:5432 - - environment: - - - POSTGRES_DB=maverickdb - - - POSTGRES_USER=maverickdb - - - POSTGRES_PASSWORD=maverickdb - -## volumes: -## -## - /tmp/volume-data-postgres:/var/lib/postgresql/data - - card-players-unite-pgadmin: - - container_name: card-players-unite-pgadmin - - image: dpage/pgadmin4 - - depends_on: - - - card-players-unite-postgres - - ports: - - - "5480:80" - - environment: - - PGADMIN_DEFAULT_EMAIL: lorem@loremipsum.com - - PGADMIN_DEFAULT_PASSWORD: maverickdb - -## volumes: -## -## - /tmp/volume-data-pgadmin4:/var/lib/pgadmin - -#### file: ./.gitignore -__pycache__ - -#### file: ./player/urls.py -from django.urls import path - -from .views import RegisterView - -from django.views.generic.base import TemplateView - -urlpatterns = [ - - path("register", RegisterView.as_view(), name="register"), - - path("home", TemplateView.as_view(template_name="home.html"), name="home"), - -] - -#### file: ./player/views.py -from django.contrib.auth.forms import UserCreationForm - -from django.urls import reverse_lazy - -from django.views import generic - -class RegisterView(generic.CreateView): - - form_class = UserCreationForm - - success_url = reverse_lazy("login") - - template_name = "registration/register.html" - -#### file: ./static/listing/listing.js -const arrows = document.querySelectorAll(".arrow"); -const movieLists = document.querySelectorAll(".movie-list"); - -arrows.forEach((arrow, i) => { - const itemNumber = movieLists[i].querySelectorAll("img").length; - let clickCounter = 0; - arrow.addEventListener("click", () => { - const ratio = Math.floor(window.innerWidth / 270); - clickCounter++; - if (itemNumber - (4 + clickCounter) + (4 - ratio) >= 0) { - movieLists[i].style.transform = `translateX(${ - movieLists[i].computedStyleMap().get("transform")[0].x.value - 300 - }px)`; - } else { - movieLists[i].style.transform = "translateX(0)"; - clickCounter = 0; - } - }); - - console.log(Math.floor(window.innerWidth / 270)); -}); - -//TOGGLE - -const ball = document.querySelector(".toggle-ball"); -const items = document.querySelectorAll( - ".container,.movie-list-title,.navbar-container,.sidebar,.left-menu-icon,.toggle" -); - -ball.addEventListener("click", () => { - items.forEach((item) => { - item.classList.toggle("active"); - }); - ball.classList.toggle("active"); -}); - -#### file: ./static/listing/features.js -alert("features"); - -#### file: ./static/listing/listing.css -* { - margin: 0; -} - -body { - font-family: "Roboto", sans-serif; -} - -.navbar { - width: 100%; - height: 50px; - background-color: black; - position: sticky; - top: 0; - transition: 1s ease all; -} - -.navbar-container { - display: flex; - align-items: center; - padding: 0 50px; - height: 100%; - color: white; - font-family: "Sen", sans-serif; -} - -.logo-container { - - flex: 4; - -} - -.logo { - font-size: 30px; - color: #4dbf00; -} - -.menu-container { - flex: 6; -} - -.menu-list { - display: flex; - list-style: none; -} - -.menu-list-item { - margin-right: 30px; -} - -.menu-list-item.active { - font-weight: bold; -} -.profile-container { - flex: 2; - display: flex; - align-items: center; - justify-content: flex-end; -} - -.profile-text-container { - margin: 0 20px; -} - -.profile-picture { - width: 32px; - height: 32px; - border-radius: 50%; - object-fit: cover; -} - -.toggle { - width: 40px; - height: 20px; - background-color: white; - border-radius: 30px; - display: flex; - align-items: center; - justify-content: space-around; - position: relative; -} - -.toggle-icon { - color: goldenrod; -} - -.toggle-ball { - width: 18px; - height: 18px; - background-color: black; - position: absolute; - right: 1px; - border-radius: 50%; - cursor: pointer; - transition: 1s ease all; -} - -.sidebar { - width: 50px; - height: 100%; - background-color: black; - position: fixed; - top: 0; - display: flex; - flex-direction: column; - align-items: center; - padding-top: 60px; - transition: 1s ease all; -} - -.left-menu-icon { - color: white; - font-size: 20px; - margin-bottom: 40px; -} - -.container { - background-color: #151515; - min-height: calc(100vh - 50px); - color: white; - transition: 1s ease all; -} - -.content-container { - margin-left: 50px; -} - -.featured-content { - height: 50vh; - padding: 50px; -} - -.featured-title { - width: 200px; -} - -.featured-desc { - width: 500px; - color: lightgray; - margin: 30px 0; -} - -.featured-button { - background-color: #4dbf00; - color: white; - padding: 10px 20px; - border-radius: 10px; - border: none; - outline: none; - font-weight: bold; -} - -.movie-list-container { - padding: 0 20px; -} - -.movie-list-wrapper { - position: relative; - overflow: hidden; -} - -.movie-list { - display: flex; - align-items: center; - height: 300px; - transform: translateX(0); - transition: all 1s ease-in-out; -} - -.movie-list-item { - margin-right: 30px; - position: relative; -} - -.movie-list-item:hover .movie-list-item-img { - transform: scale(1.2); - margin: 0 30px; - opacity: 0.5; -} - -.movie-list-item:hover .movie-list-item-title, -.movie-list-item:hover .movie-list-item-desc, -.movie-list-item:hover .movie-list-item-button { - opacity: 1; -} - -.movie-list-item-img { - transition: all 1s ease-in-out; - width: 270px; - height: 200px; - object-fit: cover; - border-radius: 20px; -} - -.movie-list-item-title { - background-color: #333; - padding: 0 10px; - font-size: 32px; - font-weight: bold; - position: absolute; - top: 10%; - left: 50px; - opacity: 0; - transition: 1s all ease-in-out; -} - -.movie-list-item-desc { - background-color: #333; - padding: 10px; - font-size: 14px; - position: absolute; - top: 30%; - left: 50px; - width: 230px; - opacity: 0; - transition: 1s all ease-in-out; -} - -.movie-list-item-button { - padding: 10px; - background-color: #4dbf00; - color: white; - border-radius: 10px; - outline: none; - border: none; - cursor: pointer; - position: absolute; - bottom: 20px; - left: 50px; - opacity: 0; - transition: 1s all ease-in-out; -} - -.arrow { - font-size: 120px; - position: absolute; - top: 90px; - right: 0; - color: lightgray; - opacity: 0.5; - cursor: pointer; -} - -.container.active { - background-color: white; -} - -.movie-list-title.active { - color: black; -} - -.navbar-container.active { - background-color: white; - - color: black; -} - -.sidebar.active{ - background-color: white; -} - -.left-menu-icon.active{ - color: black; -} - -.toggle.active{ - background-color: black; -} - -.toggle-ball.active{ - background-color: white; - transform: translateX(-20px); -} - -@media only screen and (max-width: 940px){ - .menu-container{ - display: none; - } -} - -#### file: ./compose.bash -#!/bin/bash -set -e -set -x - -# 1. Shut down existing containers -docker compose down --remove-orphans - -# 2. Build and start containers in the background -# The Dockerfile's CMD will handle migrations and runserver automatically. -docker compose up -d --build - -# 3. (Optional) Check the logs to ensure the migrations finished successfully -docker compose logs -f - -#### file: ./requirements.txt - -djangorestframework -django-cors-headers -psycopg2-binary -django-rest-auth-forked - -#### file: ./createuser.bash -python3 manage.py createsuperuser --username rlmessick --email fake@cardplayersunite.online - -#### file: ./.dockerignore -.git - -.volume - -.volumes - -.import - -.trash - -.backup - -.recycle - -__pycache__ - -#### file: ./manage.py -#!/usr/bin/env python - -import os - -import sys - -def main(): - - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') - - try: - - from django.core.management import execute_from_command_line - - except ImportError as exc: - - raise ImportError( - - "Couldn't import Django. Are you sure it's installed and " - - "available on your PYTHONPATH environment variable? Did you " - - "forget to activate a virtual environment?" - - ) from exc - - execute_from_command_line(sys.argv) - -if __name__ == '__main__': - - main() - -#### file: ./docs/updates.md -correct the favicon - -use an open source landing page for the home page when you access site - -use the red admin template as the login when you login as a root user - -use the open source listing page for the home page when you log in - -#### file: ./docs/index.md -# index! docs! - -#### file: ./docs/quick-start.md -# quick start! - -![Card Players Unite](/docs/imagery/cover.png) - -#### file: ./docs/readme.md -# intro - -![Card Players Unite](/docs/imagery/cover.png) - -## Developer Documentation - -You can run the app at home. - -Follow the instructions below on an Ubuntu Linux server. - -[Developer Docs](/docs/index.md) - -## Tools & Tech - -the tools and tech - -| website | how the site helped | -|---------|---------------------| -|[Bootswatch](https://bootswatch.com/)|bootstrap compatible prebuild color theming and css| -|[Digital Ocean](https://www.digitalocean.com/community/tutorials)|cloud server hosting and tutorials| -|[Internet Tutorials](/docs/tutorials.md)|various tutorials from the internet with how-to help and information| -|[Stock Imagery](/docs/attribution.md)|free stock imagery from the internet, with attribution.| -|[TOC Generator](https://ecotrust-canada.github.io/markdown-toc/)|github wiki toc generator.| -|[Jigsaw validator](https://jigsaw.w3.org/css-validator/)|Validator CSS and HTML| -|[Browserstack](https://www.browserstack.com/responsive)|Responsiveness| - -## Quick Start Guide - -You can run the app at home. - -Follow the instructions below on an Ubuntu Linux server. - -[Quick Start Guide](/docs/quick-start.md) - -### Preview Card Players Unite - -![Card Players Unite](/docs/imagery/cover.png) - -the app is deployed and available for usage. - -Click the link below to access Card Players Unite. - -[Access Card Players Unite](https://cardplayersunite.online/) - -#### file: ./tournament/urls.py -from django.urls import include, path -from .views import TournamentCreate, TournamentList, TournamentDetail -from .views import TournamentUpdate, TournamentDelete -from . import views - -urlpatterns = [ - - path('', views.custom, name="custom"), - - path('/', TournamentDetail.as_view(), name='retrieve-bike'), - - path("reserve//", views.reserveTournament, name="reserve-bike"), - - path("return//", views.returnTournament, name="return-bike"), - - path('create/', TournamentCreate.as_view(), name='create-bike'), - - path('update//', TournamentUpdate.as_view(), name='update-bike'), - - path('delete//', TournamentDelete.as_view(), name='delete-bike'), - -] - -## path("/vote/", views.vote, name="vote"), - -## path("about", views.about, name="about"), - -## ex: /polls/5/ - -## path("/", views.detail, name="detail"), - -## ex: /polls/5/results/ - -## path("/results/", views.results, name="results"), - -## ex: /polls/5/vote/ - -## path("/vote/", views.vote, name="vote"), - -## path('', TournamentList.as_view()), - -## path('', login_required(direct_to_template), {'template': 'registration/login.html'}), - -## path("custom", views.custom, name="custom"), - -## (r'^foo/$', login_required(direct_to_template), {'template': 'foo_index.html'}), - -## path('reserve///', TournamentUpdate.as_view(), name='reserve-bike') - -## path('return//', TournamentUpdate.as_view(), name='return-bike'), - -#### file: ./tournament/migrations/__init__.py - -#### file: ./tournament/migrations/0001_initial.py -# Generated by Django 5.0.1 on 2024-03-05 17:26 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Tournament', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=240, verbose_name='name')), - ('description', models.CharField(max_length=240, verbose_name='description')), - ('rental_price', models.FloatField(default=999.99, verbose_name='rental_price')), - ('rented_user_id', models.IntegerField(verbose_name='rented_user_id')), - ], - ), - ] - -#### file: ./tournament/models.py -from django.db import models - -class Tournament(models.Model): - - name = models.CharField("name", max_length=240) - - description = models.CharField("description", max_length=240) - - rental_price = models.FloatField("rental_price", default=999.99) - - rented_user_id = models.IntegerField("rented_user_id") - - def __str__(self): - - return self.name - -#### file: ./tournament/tests.py -from django.test import TestCase - -# Create your tests here. - -#### file: ./tournament/views.py -from django.shortcuts import render -from .models import Tournament -from rest_framework import generics -from .serializers import TournamentSerializer -from django.http import HttpResponse -from django.template import loader -from django.contrib.auth.decorators import login_required - -from django.shortcuts import redirect -from django.shortcuts import reverse - -## https://docs.djangoproject.com/en/4.2/intro/tutorial03/ - -class TournamentCreate(generics.CreateAPIView): - - queryset = Tournament.objects.all(), - - serializer_class = TournamentSerializer - -class TournamentList(generics.ListAPIView): - - queryset = Tournament.objects.all() - - serializer_class = TournamentSerializer - -class TournamentDetail(generics.RetrieveAPIView): - - queryset = Tournament.objects.all() - - serializer_class = TournamentSerializer - -class TournamentUpdate(generics.RetrieveUpdateAPIView): - - queryset = Tournament.objects.all() - - serializer_class = TournamentSerializer - -class TournamentDelete(generics.RetrieveDestroyAPIView): - - queryset = Tournament.objects.all() - - serializer_class = TournamentSerializer - -def reserveTournament(request, pk, user_pk): - - t = Tournament.objects.get(id=pk) - - t.rented_user_id = user_pk # change field - - t.save() # this will update only - - ## - - latest_question_list = Tournament.objects.all() - - context = { - "latest_question_list": latest_question_list, - "status_message": ("You have successfull reserved the %s." % t.name), - } - - if request.user.is_superuser: - - template = loader.get_template("manage.html") - - else: - - template = loader.get_template("reserve.html") - - return HttpResponse(template.render(context, request)) - - latest_question_list = Tournament.objects.all() - - template = loader.get_template("reserve.html") - - context = { - "latest_question_list": latest_question_list, - "status_message": ("You have successfull reserved the %s." % t.name), - } - - return HttpResponse(template.render(context, request)) - -def returnTournament(request, pk, user_pk): - - t = Tournament.objects.get(id=pk) - - t.rented_user_id = 0 # change field - - t.save() # this will update only - - ## - - latest_question_list = Tournament.objects.all() - - context = { - "latest_question_list": latest_question_list, - "status_message": ("You have successfull returned the %s." % t.name), - } - - if request.user.is_superuser: - - template = loader.get_template("manage.html") - - else: - - template = loader.get_template("reserve.html") - - return HttpResponse(template.render(context, request)) - -#@login_required -def custom(request): - print("custom custom custom") - - latest_question_list = Tournament.objects.all() - - context = { - - "latest_question_list": latest_question_list, - } - - if request.user.is_superuser: - - template = loader.get_template("admin.html") - - else: - - template = loader.get_template("tournament.html") - - return HttpResponse(template.render(context, request)) - -#### file: ./tournament/apps.py -from django.apps import AppConfig - -class TournamentConfig(AppConfig): - - name = 'tournament' - -#### file: ./tournament/admin.py -from django.contrib import admin - -# Register your models here. - -#### file: ./tournament/serializers.py -from rest_framework import serializers -from .models import Tournament - -class TournamentSerializer(serializers.ModelSerializer): - - class Meta: - - model = Tournament - - fields = ['id', 'name', 'description', 'rental_price', 'rented_user_id'] - -#### file: ./Dockerfile -FROM python:3.8 - -ENV DockerHOME=/home/app/webapp -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONUNBUFFERED 1 - -RUN mkdir -p $DockerHOME -WORKDIR $DockerHOME - -#RUN pip install --upgrade pip -RUN pip install "pip<24.1" -COPY requirements.txt . -RUN pip install -r requirements.txt - -COPY . . - -EXPOSE 8000 - -# Use a shell script or combined command for runtime tasks -CMD python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000 - -#### file: ./templates/registration/login.html -{% load static %} - - - - - - - - - - Sign In / Card Player's Unite Admin - - - - - - - - - - - - - -

Card Players Unite Admin > Log In

- -
- - - -
- -
- - {{ form.non_field_errors }} - - {% csrf_token %} - -
- -

user name

- - - -
- -
- -

password

- - - -
- -
- -
- - - -

Don't have an account? Create Account.

- -
- -
- - - - - - - -#### file: ./templates/registration/register.html -{% load static %} - - - - - - - - - - Sign In / Card Player's Unite Admin - - - - - - - - - - - - - -

Card Players Unite Admin > Register

- -
- - - -
-
- -
- -
- - {% csrf_token %} - - {{ form.errors }} - -

{{form.username.label}}

- -

- - Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - -

- {{form.username}} - -
-
- -

{{form.password1.label}}

- - -

- - Your password can’t be too similar to your other personal information. -
- -
Your password must contain at least 8 characters. -
Your password can’t be a commonly used password. -
Your password can’t be entirely numeric.

- - - - {{form.password1}} - -
-
-

{{form.password2.label}}

- -

Password confirmation: Enter the same password as before, for verification.

- {{form.password2}} - -

- - -

Already registered? Log In.

- -
- - - - -
- -
- - - - - - -#### file: ./templates/listing.html -{% load static %} - - - - - - - - - -Card Players Unite / card tournaments and events near you - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
-

Alll Tournaments

-
-
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- - Her -

Lorem ipsum dolor sit amet consectetur adipisicing elit. At - hic fugit similique accusantium.

- -
-
- -
-
- - - - - - - - -
- -
- - - - - - -#### file: ./app/urls.py -from django.contrib import admin - -from django.urls import path, include - -from django.views.generic.base import TemplateView - -from . import views - -urlpatterns = [ - - path("", TemplateView.as_view(template_name="listing.html"), name="listing"), - - path("home", TemplateView.as_view(template_name="home.html"), name="home"), - - path('tournament/', include('tournament.urls')), - - path("player/", include("player.urls")), - - path("player/", include("django.contrib.auth.urls")), - -] - -#### file: ./app/wsgi.py -""" -WSGI config for application project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') - -application = get_wsgi_application() - -#### file: ./app/__init__.py -# -*- coding: utf-8 -*- - -__VERSION__ = "1.6.28" -__RELEASE_DATE__ = "20-Jul-2023" -__AUTHOR__ = "Agus Makmun (Summon Agus)" -__AUTHOR_EMAIL__ = "summon.agus@gmail.com" - -#### file: ./app/asgi.py -""" -ASGI config for application project. - -It exposes the ASGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ -""" - -import os - -from django.core.asgi import get_asgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') - -application = get_asgi_application() - -#### file: ./app/views.py -from django.shortcuts import render - -from rest_framework import generics - -from django.http import HttpResponse - -from django.template import loader - -## https://docs.djangoproject.com/en/4.2/intro/tutorial03/ - -def home(request): - - print("home home") - - template = loader.get_template("home.html") - - context = { - - "key": "value", - } - - return HttpResponse(template.render(context, request)) - -#### file: ./app/settings.py -""" -Django settings for card players unite project. - -Generated by 'django-admin startproject' using Django 3.1.5. - -For more information on this file, see -https://docs.djangoproject.com/en/3.1/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.1/ref/settings/ -""" - -from pathlib import Path - -# Build paths inside the project like this: BASE_DIR / 'subdir'. -BASE_DIR = Path(__file__).resolve().parent.parent - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = '7!%*_%*0x9*#-k*1$b$^dax14hu2tazzrvk5tvj@#7vlg*h0ni' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = ['localhost'] - -# Application definition - -INSTALLED_APPS = [ - - 'django.contrib.admin', - - 'django.contrib.auth', - - 'django.contrib.contenttypes', - - 'django.contrib.sessions', - - 'django.contrib.messages', - - 'django.contrib.staticfiles', - - 'rest_framework', - - 'corsheaders', - - 'player', - - 'tournament', - -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', - "corsheaders.middleware.CorsMiddleware", - -] - -CORS_ALLOWED_ORIGINS = [ - "https://example.com", - "https://sub.example.com", - "http://localhost:8000", - "http://127.0.0.1:9000", -] - -CORS_ORIGIN_ALLOW_ALL = True - -ROOT_URLCONF = 'app.urls' - -TEMPLATES = [ - { - - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - - 'DIRS': [BASE_DIR / 'templates'], - - 'APP_DIRS': True, - - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - - }, -] - -WSGI_APPLICATION = 'app.wsgi.application' - -# Database -# https://docs.djangoproject.com/en/3.1/ref/settings/#databases - - -DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'maverickdb', 'USER': 'maverickdb', 'PASSWORD': 'maverickdb', 'HOST': 'card-players-unite-postgres', 'PORT': '5432', } } - -# Password validation -# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - -########################################## - -# Internationalization -# https://docs.djangoproject.com/en/3.1/topics/i18n/ - -##LANGUAGE_CODE = 'en-us' - -##TIME_ZONE = 'UTC' - -##USE_I18N = True - -##USE_L10N = True - -##USE_TZ = True - -########################################## - -LOGIN_REDIRECT_URL = "home" - -LOGOUT_REDIRECT_URL = 'logout1' - -#SESSION_EXPIRE_AT_BROWSER_CLOSE = True - -SESSION_COOKIE_AGE = 180 # 3 minutes. "1209600(2 weeks)" by default - -#SESSION_SAVE_EVERY_REQUEST = True # "False" by default - -########################################## - -## https://www.w3schools.com/django/django_add_css_file_global.php - -STATIC_URL = 'static/' - -STATICFILES_DIRS = [ - - BASE_DIR / "static" - -] - -########################################## - -#### file: ./readme.md -# adsfads - -## view all tourney - -## add new tourney - -## admin home - -## login - -## how to create new user - -## tournament operations - -### create tournament - -http://localhost:8888/tournament/create/ - -### view existing tournament - -browser: - -``` -http://localhost:8888/tournament/1/ -``` - -terminal: - -``` -curl http://localhost:8888/tournament/1/ -``` - -response: - -``` -{"id":1,"name":"323","description":"222","rental_price":222.0,"rented_user_id":222} -``` - diff --git a/readme.md b/readme.md index 383a572..db6f056 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,12 @@ -# adsfads +# Card Players United + +## pg4 admin + +http://localhost:5480/browser/ + +## documentation site + +http://localhost:8000 ## view all tourney @@ -6,6 +14,8 @@ ## admin home +http://localhost:8888/ + ## login ## how to create new user diff --git a/templates/.recycle/Movies-Website-main/LICENSE b/templates/.recycle/Movies-Website-main/LICENSE deleted file mode 100644 index fdddb29..0000000 --- a/templates/.recycle/Movies-Website-main/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to diff --git a/templates/.recycle/Movies-Website-main/README.md b/templates/.recycle/Movies-Website-main/README.md deleted file mode 100644 index 2d2a961..0000000 --- a/templates/.recycle/Movies-Website-main/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Movies-Website-Redesign -Movies website Redesign with, - -1. Responsive View, -2. Sticky Menu, -3. Awesome Menu, -4. Sticky Side Bar, -5. Hover Transition, -6. Pop-Over Animation, -7. Slider, -8. Day & Night View. - -Live Preview: https://mhmiyazi.github.io/Movies-Website/ -# Preview: -# Dark Theme: -MH Miyazi's Design Full Preview -

Light Theme:

-MH Miyazi's Design Full Preview - diff --git a/templates/.recycle/Movies-Website-main/_config.yml b/templates/.recycle/Movies-Website-main/_config.yml deleted file mode 100644 index c419263..0000000 --- a/templates/.recycle/Movies-Website-main/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/templates/.restore/.cascadr/.trash/cascadr (copy 1).py b/templates/.restore/.cascadr/.trash/cascadr (copy 1).py deleted file mode 100755 index 258656e..0000000 --- a/templates/.restore/.cascadr/.trash/cascadr (copy 1).py +++ /dev/null @@ -1,136 +0,0 @@ -import re - -import sys - -fileToUpdate = sys.argv[1] - -print(fileToUpdate) - -nodeOpenName="22222" - -nodeCloseName="44444" - -def replaceCSSIncludes(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/html-includes-styling.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName, substitutionContent, ddd, flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def replaceJavascriptIncludes(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/body-javascript-includes.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def updateSideBarDesktop(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/navigation-sidebar-desktop.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def updateSideBarMobile(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/navigation-sidebar-mobile.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -################################################################### -## -## driver -## -################################################################### - -##replaceCSSIncludes() - -replaceJavascriptIncludes() - -##updateSideBarDesktop() - -##updateSideBarMobile() diff --git a/templates/.restore/.cascadr/cascadr.bash b/templates/.restore/.cascadr/cascadr.bash deleted file mode 100755 index 63512b2..0000000 --- a/templates/.restore/.cascadr/cascadr.bash +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -sourceDirectory="../" - -appName="cascadr.py" - -## - -echo "##" -echo "## start cascadr template work" -echo "##" - -find $sourceDirectory -iname "*.html" -exec python3 $appName {} \; diff --git a/templates/.restore/.cascadr/cascadr.py b/templates/.restore/.cascadr/cascadr.py deleted file mode 100644 index 1c8cab3..0000000 --- a/templates/.restore/.cascadr/cascadr.py +++ /dev/null @@ -1,194 +0,0 @@ -import re - -import sys - -fileToUpdate = sys.argv[1] - -print(fileToUpdate) - -nodeOpenName="22222" - -nodeCloseName="44444" - -def cascadeStylingIncludes(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/head.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def cascadeJavascriptIncludes(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/body-javascript-includes.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def cascadeFooterContent(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/body-footer-content.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def cascadeTopNavigation(): - - templateSectionBegin="" - - templateSectionEnd=" " - - with open('templates/navigation-top-menu.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def cascadeSideNavigation(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/navigation-side-menu.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -def cascadeFlyoutContent(): - - templateSectionBegin="" - - templateSectionEnd="" - - with open('templates/body-flyout-content.template') as templateFile: - - substitutionContent = templateFile.read() - - with open(fileToUpdate) as targetSubstitutionFile: - s = targetSubstitutionFile.read() - - ddd=s - - ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL) - - ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL) - - ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL) - - f = open(fileToUpdate, "w") - - f.write(ddd) - - f.close() - -################################################################### -## -## driver -## -################################################################### - -cascadeStylingIncludes() - -##cascadeJavascriptIncludes() - -##cascadeFooterContent() - -##cascadeTopNavigation() - -##cascadeSideNavigation() - -##cascadeFlyoutContent() -##updateSideBarDesktop() - -##updateSideBarMobile() diff --git a/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-desktop.template b/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-desktop.template deleted file mode 100755 index 87dee0e..0000000 --- a/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-desktop.template +++ /dev/null @@ -1,278 +0,0 @@ - - diff --git a/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-mobile.template b/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-mobile.template deleted file mode 100755 index ed28ca8..0000000 --- a/templates/.restore/.cascadr/templates/.trash/.trash/navigation-sidebar-mobile.template +++ /dev/null @@ -1,538 +0,0 @@ - - -
- -
-
-
- - - -
-
-
- -
- -
-
-
    - -
  • - -
  • - -
  • - - -
  • - -
  • - - -
  • -
-
-
diff --git a/templates/.restore/.cascadr/templates/.trash/body-flyout-content.template b/templates/.restore/.cascadr/templates/.trash/body-flyout-content.template deleted file mode 100755 index 9d39721..0000000 --- a/templates/.restore/.cascadr/templates/.trash/body-flyout-content.template +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/templates/.restore/.cascadr/templates/.trash/body-footer-content.template b/templates/.restore/.cascadr/templates/.trash/body-footer-content.template deleted file mode 100755 index 3405e5b..0000000 --- a/templates/.restore/.cascadr/templates/.trash/body-footer-content.template +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/templates/.restore/.cascadr/templates/.trash/body-javascript-includes.template b/templates/.restore/.cascadr/templates/.trash/body-javascript-includes.template deleted file mode 100755 index c073751..0000000 --- a/templates/.restore/.cascadr/templates/.trash/body-javascript-includes.template +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/templates/.restore/.cascadr/templates/.trash/html-includes-styling.template b/templates/.restore/.cascadr/templates/.trash/html-includes-styling.template deleted file mode 100755 index 2890488..0000000 --- a/templates/.restore/.cascadr/templates/.trash/html-includes-styling.template +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/templates/.restore/.cascadr/templates/.trash/navigation-side-menu.template b/templates/.restore/.cascadr/templates/.trash/navigation-side-menu.template deleted file mode 100755 index c983820..0000000 --- a/templates/.restore/.cascadr/templates/.trash/navigation-side-menu.template +++ /dev/null @@ -1,188 +0,0 @@ - - - diff --git a/templates/.restore/.cascadr/templates/.trash/navigation-top-menu.template b/templates/.restore/.cascadr/templates/.trash/navigation-top-menu.template deleted file mode 100755 index e53e48b..0000000 --- a/templates/.restore/.cascadr/templates/.trash/navigation-top-menu.template +++ /dev/null @@ -1,68 +0,0 @@ - diff --git a/templates/.restore/.cascadr/templates/head.template b/templates/.restore/.cascadr/templates/head.template deleted file mode 100755 index 42f2098..0000000 --- a/templates/.restore/.cascadr/templates/head.template +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/templates/.restore/.cascadr/templates/sidebar.template b/templates/.restore/.cascadr/templates/sidebar.template deleted file mode 100755 index 67be067..0000000 --- a/templates/.restore/.cascadr/templates/sidebar.template +++ /dev/null @@ -1,40 +0,0 @@ - diff --git a/templates/.restore/.clean/index.html b/templates/.restore/.clean/index.html deleted file mode 100644 index bc3ddd0..0000000 --- a/templates/.restore/.clean/index.html +++ /dev/null @@ -1,85 +0,0 @@ -{% load static %} - - - - - - - - - - Home / Card Players Unite Admin - - - - - - - - - - - - - - - -

Card Players Unite Admin > Home

- -
- - - -
- -

- -Welcome to Robert's Bike Rental. We have bikes of all sizes and accessories for you and your loved ones. Explore the local neighborhood in style & comfort on our bikes. - -

- - - - - - - - diff --git a/templates/.restore/tournament.html b/templates/.restore/tournament.html deleted file mode 100644 index bed8a96..0000000 --- a/templates/.restore/tournament.html +++ /dev/null @@ -1,177 +0,0 @@ -{% load static %} - - - - - - - - - Manage Tournaments / Card Players Unite Admin - - - - - - - - - - - - - - - - - -

- - Robert's Bike Rentals > Manage Rental Bikes [admin] - -

- -
- - - -
- -

- -Use this page to view our fleet of rental bikes. You can use this page to return bikes that have been rented by customers. - -

- -
- - - - - - - - - - - - - - - - - - - -{% if status_message %} - -

- -{{ status_message }} - -

- -{% endif %} - -{% if latest_question_list %} - -{% for question in latest_question_list %} - - - - - - - - - -{% if question.rented_user_id != 0 %} - - - -{% else %} - - - -{% endif %} - - - - - - - -{% endfor %} - - - -{% else %} - -

No bikes are available.

-{% endif %} - - -
NameDescriptionRental PriceRental User IDActions
{{ question.name }} {{ question.description }} € {{ question.rental_price }} {{ question.rented_user_id }} - - - - - - - - - - - -
-
- - - - - - diff --git a/templates/listing (copy).html b/templates/listing (copy).html new file mode 100644 index 0000000..c541dd0 --- /dev/null +++ b/templates/listing (copy).html @@ -0,0 +1,213 @@ +{% load static %} + + + + + + + + + +(shinobi test) Card Players Unite / card tournaments and events near you + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+

Alll Tournaments

+
+
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ + Her +

Lorem ipsum dolor sit amet consectetur adipisicing elit. At + hic fugit similique accusantium.

+ +
+
+ +
+
+ + + + + + + + +
+ +
+ + + + + diff --git a/templates/listing.html b/templates/listing.html index c541dd0..ad88dfb 100644 --- a/templates/listing.html +++ b/templates/listing.html @@ -1,213 +1,240 @@ -{% load static %} - - - + + + Card Players Unite | The Lounge + + + + -