#django-admin findstatic staticfile [staticfile ...]
python manage.py findstatic css/base.css
from django.conf import settings
from django.contrib.staticfiles import views
from django.urls import re_path
if settings.DEBUG:
urlpatterns += [
re_path(r'^static/(?P<path>.*)$', views.serve),
]
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
from random import shuffle
from random import randrange
def get_seq1(N=10):
seq1 = [X for X in range(N)]
shuffle(seq1)
return seq1
def get_seq2(N=10):
seq2 = []
numbers = [X for X in range(N)]
for _ in range(N):
shuffle(numbers)
seq2.append(numbers.pop(randrange(0, len(numbers))))
return seq2
def random():
att = 0
seq11 = [7,0,9,3,2,1,4,5,6,8]
seq12 = [5,6,7,3,9,4,1,2,8,0]
while seq11 != seq12:
print(att)
seq11 = get_seq1()
seq12 = get_seq2()
att += 1
if __name__ == "__main__":
random()