Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
#73 Restart site with Django 4
Browse files Browse the repository at this point in the history
  • Loading branch information
roskakori committed Oct 24, 2023
1 parent d54cfa7 commit f2f4f90
Show file tree
Hide file tree
Showing 189 changed files with 305 additions and 13,572 deletions.
15 changes: 3 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
*.pyc
.env
*.css
*.sass-cache*
*.diff
*.sql
*.sublime*
.codeintel
.venv
*.retry
pygraz_website/static/css/icomoon
*.DS_Store
*.zip
*.mo
pygraz_website/settings/live.py
pygraz_website/settings/stage.py
live.ini
stage.ini
Procfile
.tox
.coverage
htmlcov
/database.db
/pygraz.dump
/_old/
/db.sqlite3
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/pygraz_website.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ repos:
- id: isort

- repo: https://github.com/ambv/black
rev: 23.7.0
rev: 23.10.1
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v3.0.3
hooks:
- id: prettier

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: fix-byte-order-marker
- id: trailing-whitespace
Expand All @@ -30,13 +30,13 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: ["pep8-naming==0.13.3"]

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand All @@ -45,7 +45,7 @@ repos:
# even for the rare case a commit should go into one of the protected
# branches.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: ["--branch", "develop"]
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions ansible/hosts

This file was deleted.

46 changes: 0 additions & 46 deletions ansible/playbooks/deploy.yml

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions core/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "core"
File renamed without changes.
3 changes: 3 additions & 0 deletions core/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions core/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions core/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
10 changes: 0 additions & 10 deletions manage-dev.py

This file was deleted.

10 changes: 0 additions & 10 deletions manage-live.py

This file was deleted.

10 changes: 0 additions & 10 deletions manage-stage.py

This file was deleted.

10 changes: 0 additions & 10 deletions manage-testing.py

This file was deleted.

21 changes: 16 additions & 5 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys

if __name__ == "__main__":
if os.environ.get("DJANGO_SETTINGS_MODULE") is None:
raise OSError("environment variable DJANGO_SETTINGS_MODULE must be set")

from django.core.management import execute_from_command_line

def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pygraz_website.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()
81 changes: 81 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions production-exclude.lst

This file was deleted.

Loading

0 comments on commit f2f4f90

Please sign in to comment.