[READ-ONLY] Mirror of https://github.com/shuuji3/django-litestream-playground. Playground for django-litestream package django-litestream-playground.shuuji3.xyz/
django litestream
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: initialize django project

author
TAKAHASHI Shuuji
date (Dec 31, 2024, 12:09 AM +0900) commit 8296553a
+282
+10
.gitignore
··· 1 + # Python-generated files 2 + __pycache__/ 3 + *.py[oc] 4 + build/ 5 + dist/ 6 + wheels/ 7 + *.egg-info 8 + 9 + # Virtual environments 10 + .venv
+1
.python-version
··· 1 + 3.13
README.md

This is a binary file and will not be displayed.

django_litestream_playground/__init__.py

This is a binary file and will not be displayed.

+16
django_litestream_playground/asgi.py
··· 1 + """ 2 + ASGI config for django_litestream_playground project. 3 + 4 + It exposes the ASGI callable as a module-level variable named ``application``. 5 + 6 + For more information on this file, see 7 + https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/ 8 + """ 9 + 10 + import os 11 + 12 + from django.core.asgi import get_asgi_application 13 + 14 + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_litestream_playground.settings") 15 + 16 + application = get_asgi_application()
+123
django_litestream_playground/settings.py
··· 1 + """ 2 + Django settings for django_litestream_playground project. 3 + 4 + Generated by 'django-admin startproject' using Django 5.1.4. 5 + 6 + For more information on this file, see 7 + https://docs.djangoproject.com/en/5.1/topics/settings/ 8 + 9 + For the full list of settings and their values, see 10 + https://docs.djangoproject.com/en/5.1/ref/settings/ 11 + """ 12 + 13 + from pathlib import Path 14 + 15 + # Build paths inside the project like this: BASE_DIR / 'subdir'. 16 + BASE_DIR = Path(__file__).resolve().parent.parent 17 + 18 + 19 + # Quick-start development settings - unsuitable for production 20 + # See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ 21 + 22 + # SECURITY WARNING: keep the secret key used in production secret! 23 + SECRET_KEY = "django-insecure-xtbunnd36)ffota&$o4-19!!w1^s!z4%cxmm38^-d@_+&k1r3t" 24 + 25 + # SECURITY WARNING: don't run with debug turned on in production! 26 + DEBUG = True 27 + 28 + ALLOWED_HOSTS = [] 29 + 30 + 31 + # Application definition 32 + 33 + INSTALLED_APPS = [ 34 + "django.contrib.admin", 35 + "django.contrib.auth", 36 + "django.contrib.contenttypes", 37 + "django.contrib.sessions", 38 + "django.contrib.messages", 39 + "django.contrib.staticfiles", 40 + ] 41 + 42 + MIDDLEWARE = [ 43 + "django.middleware.security.SecurityMiddleware", 44 + "django.contrib.sessions.middleware.SessionMiddleware", 45 + "django.middleware.common.CommonMiddleware", 46 + "django.middleware.csrf.CsrfViewMiddleware", 47 + "django.contrib.auth.middleware.AuthenticationMiddleware", 48 + "django.contrib.messages.middleware.MessageMiddleware", 49 + "django.middleware.clickjacking.XFrameOptionsMiddleware", 50 + ] 51 + 52 + ROOT_URLCONF = "django_litestream_playground.urls" 53 + 54 + TEMPLATES = [ 55 + { 56 + "BACKEND": "django.template.backends.django.DjangoTemplates", 57 + "DIRS": [], 58 + "APP_DIRS": True, 59 + "OPTIONS": { 60 + "context_processors": [ 61 + "django.template.context_processors.debug", 62 + "django.template.context_processors.request", 63 + "django.contrib.auth.context_processors.auth", 64 + "django.contrib.messages.context_processors.messages", 65 + ], 66 + }, 67 + }, 68 + ] 69 + 70 + WSGI_APPLICATION = "django_litestream_playground.wsgi.application" 71 + 72 + 73 + # Database 74 + # https://docs.djangoproject.com/en/5.1/ref/settings/#databases 75 + 76 + DATABASES = { 77 + "default": { 78 + "ENGINE": "django.db.backends.sqlite3", 79 + "NAME": BASE_DIR / "db.sqlite3", 80 + } 81 + } 82 + 83 + 84 + # Password validation 85 + # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators 86 + 87 + AUTH_PASSWORD_VALIDATORS = [ 88 + { 89 + "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", 90 + }, 91 + { 92 + "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", 93 + }, 94 + { 95 + "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", 96 + }, 97 + { 98 + "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", 99 + }, 100 + ] 101 + 102 + 103 + # Internationalization 104 + # https://docs.djangoproject.com/en/5.1/topics/i18n/ 105 + 106 + LANGUAGE_CODE = "en-us" 107 + 108 + TIME_ZONE = "UTC" 109 + 110 + USE_I18N = True 111 + 112 + USE_TZ = True 113 + 114 + 115 + # Static files (CSS, JavaScript, Images) 116 + # https://docs.djangoproject.com/en/5.1/howto/static-files/ 117 + 118 + STATIC_URL = "static/" 119 + 120 + # Default primary key field type 121 + # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field 122 + 123 + DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
+23
django_litestream_playground/urls.py
··· 1 + """ 2 + URL configuration for django_litestream_playground project. 3 + 4 + The `urlpatterns` list routes URLs to views. For more information please see: 5 + https://docs.djangoproject.com/en/5.1/topics/http/urls/ 6 + Examples: 7 + Function views 8 + 1. Add an import: from my_app import views 9 + 2. Add a URL to urlpatterns: path('', views.home, name='home') 10 + Class-based views 11 + 1. Add an import: from other_app.views import Home 12 + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 13 + Including another URLconf 14 + 1. Import the include() function: from django.urls import include, path 15 + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 16 + """ 17 + 18 + from django.contrib import admin 19 + from django.urls import path 20 + 21 + urlpatterns = [ 22 + path("admin/", admin.site.urls), 23 + ]
+16
django_litestream_playground/wsgi.py
··· 1 + """ 2 + WSGI config for django_litestream_playground project. 3 + 4 + It exposes the WSGI callable as a module-level variable named ``application``. 5 + 6 + For more information on this file, see 7 + https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/ 8 + """ 9 + 10 + import os 11 + 12 + from django.core.wsgi import get_wsgi_application 13 + 14 + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_litestream_playground.settings") 15 + 16 + application = get_wsgi_application()
+6
hello.py
··· 1 + def main(): 2 + print("Hello from django-litestream-playground!") 3 + 4 + 5 + if __name__ == "__main__": 6 + main()
+24
manage.py
··· 1 + #!/usr/bin/env python 2 + """Django's command-line utility for administrative tasks.""" 3 + import os 4 + import sys 5 + 6 + 7 + def main(): 8 + """Run administrative tasks.""" 9 + os.environ.setdefault( 10 + "DJANGO_SETTINGS_MODULE", "django_litestream_playground.settings" 11 + ) 12 + try: 13 + from django.core.management import execute_from_command_line 14 + except ImportError as exc: 15 + raise ImportError( 16 + "Couldn't import Django. Are you sure it's installed and " 17 + "available on your PYTHONPATH environment variable? Did you " 18 + "forget to activate a virtual environment?" 19 + ) from exc 20 + execute_from_command_line(sys.argv) 21 + 22 + 23 + if __name__ == "__main__": 24 + main()
+9
pyproject.toml
··· 1 + [project] 2 + name = "django-litestream-playground" 3 + version = "0.1.0" 4 + description = "Add your description here" 5 + readme = "README.md" 6 + requires-python = ">=3.13" 7 + dependencies = [ 8 + "django>=5.1.4", 9 + ]
+54
uv.lock
··· 1 + version = 1 2 + requires-python = ">=3.13" 3 + 4 + [[package]] 5 + name = "asgiref" 6 + version = "3.8.1" 7 + source = { registry = "https://pypi.org/simple" } 8 + sdist = { url = "https://files.pythonhosted.org/packages/29/38/b3395cc9ad1b56d2ddac9970bc8f4141312dbaec28bc7c218b0dfafd0f42/asgiref-3.8.1.tar.gz", hash = "sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590", size = 35186 } 9 + wheels = [ 10 + { url = "https://files.pythonhosted.org/packages/39/e3/893e8757be2612e6c266d9bb58ad2e3651524b5b40cf56761e985a28b13e/asgiref-3.8.1-py3-none-any.whl", hash = "sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47", size = 23828 }, 11 + ] 12 + 13 + [[package]] 14 + name = "django" 15 + version = "5.1.4" 16 + source = { registry = "https://pypi.org/simple" } 17 + dependencies = [ 18 + { name = "asgiref" }, 19 + { name = "sqlparse" }, 20 + { name = "tzdata", marker = "sys_platform == 'win32'" }, 21 + ] 22 + sdist = { url = "https://files.pythonhosted.org/packages/d3/e8/536555596dbb79f6e77418aeb40bdc1758c26725aba31919ba449e6d5e6a/Django-5.1.4.tar.gz", hash = "sha256:de450c09e91879fa5a307f696e57c851955c910a438a35e6b4c895e86bedc82a", size = 10716397 } 23 + wheels = [ 24 + { url = "https://files.pythonhosted.org/packages/58/0b/8a4ab2c02982df4ed41e29f28f189459a7eba37899438e6bea7f39db793b/Django-5.1.4-py3-none-any.whl", hash = "sha256:236e023f021f5ce7dee5779de7b286565fdea5f4ab86bae5338e3f7b69896cf0", size = 8276471 }, 25 + ] 26 + 27 + [[package]] 28 + name = "django-litestream-playground" 29 + version = "0.1.0" 30 + source = { virtual = "." } 31 + dependencies = [ 32 + { name = "django" }, 33 + ] 34 + 35 + [package.metadata] 36 + requires-dist = [{ name = "django", specifier = ">=5.1.4" }] 37 + 38 + [[package]] 39 + name = "sqlparse" 40 + version = "0.5.3" 41 + source = { registry = "https://pypi.org/simple" } 42 + sdist = { url = "https://files.pythonhosted.org/packages/e5/40/edede8dd6977b0d3da179a342c198ed100dd2aba4be081861ee5911e4da4/sqlparse-0.5.3.tar.gz", hash = "sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272", size = 84999 } 43 + wheels = [ 44 + { url = "https://files.pythonhosted.org/packages/a9/5c/bfd6bd0bf979426d405cc6e71eceb8701b148b16c21d2dc3c261efc61c7b/sqlparse-0.5.3-py3-none-any.whl", hash = "sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca", size = 44415 }, 45 + ] 46 + 47 + [[package]] 48 + name = "tzdata" 49 + version = "2024.2" 50 + source = { registry = "https://pypi.org/simple" } 51 + sdist = { url = "https://files.pythonhosted.org/packages/e1/34/943888654477a574a86a98e9896bae89c7aa15078ec29f490fef2f1e5384/tzdata-2024.2.tar.gz", hash = "sha256:7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc", size = 193282 } 52 + wheels = [ 53 + { url = "https://files.pythonhosted.org/packages/a6/ab/7e5f53c3b9d14972843a647d8d7a853969a58aecc7559cb3267302c94774/tzdata-2024.2-py2.py3-none-any.whl", hash = "sha256:a48093786cdcde33cad18c2555e8532f34422074448fbc874186f0abd79565cd", size = 346586 }, 54 + ]