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

terça-feira, 21 de agosto de 2018

Complaining and explaining are not the same things.

Complaining and explaining are not the same things. You can explain a horrible situation without complaining. If you do that, most of the time, it means you want to solve a situation. Now, here comes the question. In your company, when you gather people together, do they complain or explain the difficult situations they are going through? Complaining doesn't help. It is just an exhausting habit for you and for everybody around you. Every complaint is praying to the devil - Bob Marley.