{"id":19317885,"url":"https://github.com/queeniecplusplus/backend_script3_website","last_synced_at":"2026-06-13T04:32:51.206Z","repository":{"id":104588100,"uuid":"336186271","full_name":"QueenieCplusplus/Backend_Script3_WebSite","owner":"QueenieCplusplus","description":"Django using python 3.8 \u0026 pip3 \u0026 Virtualenv","archived":false,"fork":false,"pushed_at":"2021-02-25T06:36:06.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T04:45:08.894Z","etag":null,"topics":["django","python38","virtualenvwrapper"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru/blob/master/README.md#backend-溫故-python--php7--nodejs----計畫同步","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-05T06:36:05.000Z","updated_at":"2021-02-25T06:36:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2ed15ae-56e2-4170-978c-7010af96fddb","html_url":"https://github.com/QueenieCplusplus/Backend_Script3_WebSite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QueenieCplusplus/Backend_Script3_WebSite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FBackend_Script3_WebSite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FBackend_Script3_WebSite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FBackend_Script3_WebSite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FBackend_Script3_WebSite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/Backend_Script3_WebSite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FBackend_Script3_WebSite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34272603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["django","python38","virtualenvwrapper"],"created_at":"2024-11-10T01:16:33.139Z","updated_at":"2026-06-13T04:32:51.187Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend_Script3_WebSite\nDjango using python 3.8 \u0026amp; pip3 \u0026amp; Virtualenv\n\n\n![](https://github.com/QueenieCplusplus/Backend_Script3_WebSite/raw/main/fake_site.png)\n\n\n* Virtualenv\n\n備註 爬蟲僅需要 python2 然而網站建議用 python 3 ，前者為全域，後者建議用虛擬機。\n\n* Prework\n\n      上官網下載 Python3 for Mac\n     \n      在終端機下 whereis python3 找到 path\n\n\n* Env Path\n\n      $ which python3 = path\n\n      $ virtualenv -p  path  proj_name\n\n      KatesAndroiddeMacBook-Pro:~ katesandroid$ source proj_name/bin/activate\n      (proj_name) KatesAndroiddeMacBook-Pro:~ katesandroid$ \n\n\n      (pron_name): $ pip list\n\n\nexample:\n\n      (katesP) KatesAndroiddeMacBook-Pro:~ katesandroid$ pip list\n      Package    Version\n      ---------- -------\n      pip        21.0.1\n      setuptools 52.0.0\n      wheel      0.36.2\n\n\n* Leave\n\n      (katesP) KatesAndroiddeMacBook-Pro:~ katesandroid$ deactivate\n\n\n* Installation \n\n   then install Django 3.1.6 =\u003e\n\n      (katesP) KatesAndroiddeMacBook-Pro:~ katesandroid$ pip3 install django\n\n            Collecting django\n              Downloading Django-3.1.6-py3-none-any.whl (7.8 MB)\n                 |████████████████████████████████| 7.8 MB 7.1 MB/s \n            Collecting pytz\n              Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)\n                 |████████████████████████████████| 510 kB 4.6 MB/s \n            Collecting asgiref\u003c4,\u003e=3.2.10\n              Downloading asgiref-3.3.1-py3-none-any.whl (19 kB)\n            Collecting sqlparse\u003e=0.2.2\n              Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)\n                 |████████████████████████████████| 42 kB 1.6 MB/s \n            Installing collected packages: sqlparse, pytz, asgiref, django\n\n            Successfully installed asgiref-3.3.1 django-3.1.6 pytz-2021.1 sqlparse-0.4.1\n\n\n* check version =\u003e \n\n          python3 -m django —version\n\n* to do a fake website's dir =\u003e\n\n         mkdir test-django\n* cd to it\n\n* do a fake website\n\n      django-admin startproject site_name\n\n* cd to site_name\n\n* run server using manage.py\n\n            python3 manage.py runserver (命令)\n            //即從此文件夾內運行網站服務器\n\n* 缺文件補上文件:\n\n      ^C(katesP) KatesAndroiddeMacBook-Pro:fakeSite katesandroid$ python3 manage.py migrate\n      Unknown command: 'migigrate'. Did you mean migrate?\n      Type 'manage.py help' for usage.\n      (katesP) KatesAndroiddeMacBook-Pro:fakeSite katesandroid$ python3 manage.py migrate\n      Operations to perform:\n        Apply all migrations: admin, auth, contenttypes, sessions\n\n\n                      Operations to perform:\n                        Apply all migrations: admin, auth, contenttypes, sessions\n                      Running migrations:\n                        Applying contenttypes.0001_initial... OK\n                        Applying auth.0001_initial... OK\n                        Applying admin.0001_initial... OK\n                        Applying admin.0002_logentry_remove_auto_add... OK\n                        Applying admin.0003_logentry_add_action_flag_choices... OK\n                        Applying contenttypes.0002_remove_content_type_name... OK\n                        Applying auth.0002_alter_permission_name_max_length... OK\n                        Applying auth.0003_alter_user_email_max_length... OK\n                        Applying auth.0004_alter_user_username_opts... OK\n                        Applying auth.0005_alter_user_last_login_null... OK\n                        Applying auth.0006_require_contenttypes_0002... OK\n                        Applying auth.0007_alter_validators_add_error_messages... OK\n                        Applying auth.0008_alter_user_username_max_length... OK\n                        Applying auth.0009_alter_user_last_name_max_length... OK\n                        Applying auth.0010_alter_group_name_max_length... OK\n                        Applying auth.0011_update_proxy_permissions... OK\n                        Applying auth.0012_alter_user_first_name_max_length... OK\n                        Applying sessions.0001_initial... OK\n* 補完文件後再次運行：\n\n\n      $ python3 manage.py runserver\n      Watching for file changes with StatReloader\n      Performing system checks...\n\n* 本機上運行成功：\n\n        System check identified no issues (0 silenced).\n        February 05, 2021 - 06:27:08\n        Django version 3.1.6, using settings 'fakeSite.settings'\n        Starting development server at http://localhost:8000/\n        Quit the server with CONTROL-C.\n\n* 網站的相關文件\n\n\n          proj_name/site_name/    db.sqlite3\t  fakeSite\t    manage.py\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fbackend_script3_website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fbackend_script3_website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fbackend_script3_website/lists"}