Created
February 26, 2024 06:02
-
-
Save applemango/633cb9ecb558b608f4c0f496795b26a5 to your computer and use it in GitHub Desktop.
1行で書いたdjangoのhello, world!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[us := lambda u, j: [u("", lambda r: j({"msg": "Hello, world!"}))],i:=__import__,o:=i("os"),s:=i("sys"),p:=i("pymysql"),d:=i("django"),i("django.core.wsgi"),u:= d.urls.path,j:=d.http.JsonResponse,urlpatterns := us(u, j),p.install_as_MySQLdb(),d.conf.settings.configure(DEBUG=True,ALLOWED_HOSTS=["*"],ROOT_URLCONF=__name__,SECRET_KEY=d.utils.crypto.get_random_string(50),MIDDLEWARE=["django.middleware.common.CommonMiddleware"]),app:=d.core.wsgi.get_wsgi_application(),d.core.management.execute_from_command_line(s.argv)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment