Skip to content

Commit

Permalink
Add devcontainers config and rename repo
Browse files Browse the repository at this point in the history
  • Loading branch information
DeD1rk committed Jun 9, 2024
1 parent 3af136c commit 0364a1e
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Miniconcrexit",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"batisteo.vscode-django"
]
}
},
"postCreateCommand": "poetry install",
"forwardPorts": [
8000
]
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/website/db.sqlite3
/website/static/
/website/media/
*.pyc
*.pyc

.DS_Store
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"python.analysis.autoImportCompletions": true,
"python.analysis.extraPaths": [
"website"
],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.formatOnType": true,
},
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ of a large codebase.

There is an example issue that you can try to implement in this project. It is a realistic
issue that could even one day be implemented in the real concrexit. You can find the issue
here: [#1](https://github.com/svthalia/hello-concrexit-tutorial/issues/1).
here: [#1](https://github.com/svthalia/miniconcrexit-tutorial/issues/1).


## Usage
Expand All @@ -21,7 +21,7 @@ Then:

```
# If you haven't cloned this yet:
git clone [email protected]:svthalia/hello-concrexit-tutorial.git
git clone [email protected]:svthalia/miniconcrexit-tutorial.git
# To install the dependencies:
poetry install
Expand All @@ -45,8 +45,8 @@ python website/manage.py runserver
> You do not have to do this yourself, this is just for reference.
```bash
mkdir hello-concrexit-tutorial
cd hello-concrexit-tutorial
mkdir miniconcrexit-tutorial
cd miniconcrexit-tutorial
git init

poetry init
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[tool.poetry]
name = "hello-concrexit-tutorial"
name = "miniconcrexit"
version = "0.1.0"
description = ""
authors = ["Job Doesburg <[email protected]>"]
description = "Small and unintimidating version of concrexit, for new people to try out."
authors = ["Thalia Technicie <[email protected]>"]
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.8"
Expand Down
1 change: 1 addition & 0 deletions website/miniconcrexit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

import os
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions website/miniconcrexit/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path, include

Expand Down

0 comments on commit 0364a1e

Please sign in to comment.