{"id":20469920,"url":"https://github.com/canadian-coding/website-2019-2021","last_synced_at":"2025-05-09T00:32:24.512Z","repository":{"id":119165837,"uuid":"205592215","full_name":"canadian-coding/website-2019-2021","owner":"canadian-coding","description":"source code for the canadian coding website 2019-2021","archived":true,"fork":false,"pushed_at":"2021-01-15T17:09:26.000Z","size":14960,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-03T16:13:59.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://canadiancoding.ca","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canadian-coding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Descent098"]}},"created_at":"2019-08-31T20:18:20.000Z","updated_at":"2024-09-08T01:03:35.000Z","dependencies_parsed_at":"2023-07-10T01:50:59.693Z","dependency_job_id":null,"html_url":"https://github.com/canadian-coding/website-2019-2021","commit_stats":null,"previous_names":["canadian-coding/website-2019-2021"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canadian-coding%2Fwebsite-2019-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canadian-coding%2Fwebsite-2019-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canadian-coding%2Fwebsite-2019-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canadian-coding%2Fwebsite-2019-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canadian-coding","download_url":"https://codeload.github.com/canadian-coding/website-2019-2021/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171127,"owners_count":21865275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T14:10:54.911Z","updated_at":"2025-05-09T00:32:23.233Z","avatar_url":"https://github.com/canadian-coding.png","language":"Python","funding_links":["https://github.com/sponsors/Descent098"],"categories":[],"sub_categories":[],"readme":"# website\n\n\n## Local Development\n\n### Virtual environment\n\nA virtual environment is useful for housing your python environment to avoid version and package conflicts with your primary python install. It is however not necessary so if you do decide to not use it you can skip ahead to the Dependencies section.\n\n#### Creating a virtual environment\n\nYou will need to install virtualenvwrapper(macOS/linux) or virtualenvwrapper-win(Windows) first. This can be done using ```pip install virtualenvwrapper(macOS/linux)/virtualenvwrapper-win(Windows)``` or ```pip3 install virtualenvwrapper(macOS/linux)/virtualenvwrapper-win(Windows)``` (if you have more than one python version installed).\n\nAfter installation you can create a new virtual environment for the first time using ```mkvirtualenv \u003cwhatever name you want\u003e```. Once created your current terminal window will be using the environment (you can tell because the environment name will showup where your path usually would be). Once inside the environment you can run ```pip install -r requirements.txt``` to grab all dependencies (this means you can skip the dependencies section). \n\nYou can tell that this worked by running ```pip list``` you should see something like the following:\n\n```\nPackage               Version\n--------------------- -------\ndj-database-url       0.5.0  \nDjango                2.2.7  \ndjango-heroku         0.3.1  \ndjango-jet            1.0.8  \ndjango-markdownx      2.0.28 \ndjango-pwa            1.0.5  \ngunicorn              20.0.4 \nMarkdown              3.1.1  \nPillow                6.2.1  \npip                   19.3.1 \npsycopg2              2.8.4  \npython-dateutil       2.8.1  \npytz                  2019.3 \nsetuptools            41.2.0 \nsix                   1.13.0 \nsqlparse              0.3.0  \nvirtualenv            16.7.8 \nvirtualenvwrapper-win 1.2.5  \nwhitenoise            4.1.4  \n```\n\n#### Accessing existing virtual environment\n\nYou can access an existing virtual environment using ```workon \u003cenvironment name\u003e```\n\n### Dependencies\n\nAll dependencies can be installed using python3's pip package manager by running:\n```pip install -r requirements.txt``` or ```pip3 install -r requirements.txt```\n\nAlternatively you can individually install the dependencies, you will need:\n\n(required)\n\n- Django; High level web framework used to create the site\n\nOptional:\n\n- virtualenv or virtualenvwrapper(macOS/linux)/virtualenvwrapper-win(Windows); Highly recommended to segment your python environment and avoid version conflicts (See virtual environment section)\n\n## Getting production ready\n\n### Secret Key\n\nNote that Django requires the use of a secret key to run. This key should be kept secret (obviously), as such I have setup this repository to **NOT** commit files called ```secretkey.txt```. If you plan to copy the source code and use it in production [generate a secret key](https://randomkeygen.com/) and put it in a ```secretkey.txt``` file in the ```/canadiancoding``` directory.\n\n### Debug mode\n\nDisable debug mode in ```/canadiancoding/settings.py``` before using in production.\n\n### Allowed host\n\nAdd the necessary host domain name to ALLOWED_HOSTS in ```/canadiancoding/settings.py```.\n\n## Running\n\n### First time\n\nYou need to run a few commands to get started (Note that it's assumed you are inside the first /canadiancoding directory and not the root directory)\n\n1. Make necessary migrations: ```python manage.py makemigrations```\n2. Run the Migrations ```python manage.py migrate```\n3. Create a superuser ```python manage.py createsuperuser```\n4. Run the server ```python manage.py runserver```\n\nor you can do the oneline version:\n```python manage.py makemigrations \u0026\u0026 python manage.py migrate \u0026\u0026 python manage.py createsuperuser \u0026\u0026 python manage.py runserver```\n\n### Subsequent runs\n\nChange directory into the canadiancoding directory ```cd /canadaiancoding``` then run ```python manage.py runserver```.\n\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanadian-coding%2Fwebsite-2019-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanadian-coding%2Fwebsite-2019-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanadian-coding%2Fwebsite-2019-2021/lists"}