介紹這軟體錯誤資訊解決方法

其實都會秀出問題,要碼改變版本要碼刪除此版本,雖然不知道效益是甚麼但是終究還是可以解決的。

part 1

我遇到這樣問題,pip install backports.zoneinfo https://github.com/pganssle/zoneinfo 網路上說版本是這些,資料來源不確定是否正確,很多人說python 3.8.X都可以,但我就是還是不行使用。

對於zoneinfo 成為預設的時區庫 https://www.796t.com/article.php?id=432289 她需不需要這邊有解釋,zoneinfo取代pytz的 https://www.ithome.com.tw/news/148255 (介紹很專業)

這是heroku 的版本介紹 https://devcenter.heroku.com/articles/python-runtimes

part 2

Please check the URL references in this JS file, particularly any
remote: relative paths which might be pointing to the wrong location.
remote:
remote: ! Error while running ‘$ python manage.py collectstatic — noinput’.
remote: See traceback above for details.
remote:
remote: You may need to update application code to resolve this error.
remote: Or, you can disable collectstatic for this application:
remote:
remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
remote:
remote: https://devcenter.heroku.com/articles/django-assets
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to berpaaa.
remote:
To https://git.heroku.com/berpaaa.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/berpaaa.git'

part3

django網站在heroku的部署指南

https://104.es/2020/06/10/django%E7%B6%B2%E7%AB%99%E5%9C%A8heroku%E7%9A%84%E9%83%A8%E7%BD%B2%E6%8C%87%E5%8D%97/

--

--

做習題練習寫程式,程式紀錄!!!!!!!

1

a = [ 1,2,3,4,5 ]
print(a[:]) # [ 1,2,3,4,5 ]
print(a[0:])# [ 1,2,3,4,5 ]
print(a[:100])# [ 1,2,3,4,5 ]
print(a[-1:])# [ 5 ]

2

a=10
if a>=22:
print(“right”)
else:
print(“沒有大於22”)
print(“沒有大於22””)
# if (a>=22)
# if (a=>22)
# if a>=22

3

for i in range(0,8):
print(i) #01234567

4

ex=10
# print(getType(ex))
# print(Type(ex))
print(type(ex)) #int
# print(ex.type)

5

a = 1
b = 2
# ex.swap(‘b’,’a’)
ex.replace(‘a’,’b’) 1,2> 2,1
print(a,b)
# ex.match(‘b’,’a’)
# ex.replace(‘b’,’a’)

6

a = [1,2,3,None,(),[],]

print(len(a)) #6

--

--

evenPig999

evenPig999

既然活著就好好善用自己僅存功能向前行,舒適圈是給死人待的,像我這種人不配擁有。