quinta-feira, 1 de novembro de 2018

sexta-feira, 14 de setembro de 2018

TemplateDoesNotExist at /accounts/login/

Verify the attribute DIRS

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': ['./templates',],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]


TemplateDoesNotExist at /accounts/login/

registration/login.html
Request Method:GET
Request URL:http://127.0.0.1:8000/accounts/login/?next=/versioning/
Django Version:2.1.1
Exception Type:TemplateDoesNotExist
Exception Value:
registration/login.html
Exception Location:C:\ci_database_lawoffice\ci\lib\site-packages\django\template\loader.py in select_template, line 47
Python Executable:C:\ci_database_lawoffice\ci\Scripts\python.exe
Python  

segunda-feira, 27 de agosto de 2018

The MNIST database

http://yann.lecun.com/exdb/mnist/

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

WINDOWS CPU


pip install --ignore-installed --upgrade "https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.1.0/py36/CPU/avx2/tensorflow-1.1.0-cp36-cp36m-win_amd64.whl"

How to upgrade tensorflow script

For Python 2.7 type the following command:
$ python tf_upgrade.py --infile InputFile --outfile OutputFile
For Python 3.3+n type the following command:
$ python3 tf_upgrade.py --infile InputFile --outfile OutputFile

How to find out the tensorflow version

python
>> import tensorflow as tf

>> print (tf.VERSION)

Launching tensorflow

tensorboard --logdir=path/to/log-directory