скрипт завис, а сервер пишет django.db.utils.OperationalError: database is locked
I have the same problem for days, but one day I solved it.
After you installed the pywin32 libs, there is a directory "Lib/site-packages/pywin32_system32", which including three dll libs, copy them to the "/Lib/site-packages/win32" directory, which including the win32api.pyd or win32api.pyc.
There will be no ImportError Exception any more
ALLOWED_HOSTS = ['127.0.0.2']
ALLOWED_HOSTS = ['*']
def signup(request):
if request.method == 'POST':
# тут ловите данные с формы
else:
# тут показываете форму
form = UserCreationForm()
args = {'form': form}
return render(request, 'core/signup.html', args)
Может и не подойдет