{"id":15963341,"url":"https://github.com/xinetzone/web","last_synced_at":"2025-04-04T12:27:37.040Z","repository":{"id":130622241,"uuid":"344010096","full_name":"xinetzone/web","owner":"xinetzone","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-04T04:14:35.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T22:28:07.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xinetzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-03-03T05:16:10.000Z","updated_at":"2021-03-04T04:14:37.000Z","dependencies_parsed_at":"2023-04-07T03:05:20.915Z","dependency_job_id":null,"html_url":"https://github.com/xinetzone/web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinetzone%2Fweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xinetzone","download_url":"https://codeload.github.com/xinetzone/web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247177359,"owners_count":20896632,"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-10-07T16:41:17.064Z","updated_at":"2025-04-04T12:27:37.009Z","avatar_url":"https://github.com/xinetzone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web\n\n使用 Django 创建实用工具。\n\n## 创建网站\n\nDjango 使您可以更轻松地以更少的代码更快地构建更好的 Web 应用程序。详细见官方教程 [Django3.1 文档](https://docs.djangoproject.com/zh-hans/3.1/)。\n\n1. 启动项目\n\n```sh\n$ django-admin startproject dao\n$ cd dao\n```\n\n2. 初始化一个投票应用\n\n```sh\n$ python manage.py startapp polls\n```\n\n3. 初始化迁移\n\n```sh\n$ python manage.py migrate\n```\n\n4. 修改设定后，再次更新迁移\n    - 编辑 `models.py` 文件，改变模型。\n    - 运行 `python manage.py makemigrations` 为模型的改变生成迁移文件。\n    - 运行 `python manage.py migrate` 来应用数据库迁移。\n\n5. 创建一个管理员账号\n\n```sh\n$ python manage.py createsuperuser\n```\n\n5. 启动服务器\n\n```sh\n$ python manage.py runserver\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinetzone%2Fweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxinetzone%2Fweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinetzone%2Fweb/lists"}