What I was addicted to when creating a web application in a windows environment

    return database_name == ':memory:' or 'mode=memory' in database_name
TypeError: argument of type 'WindowsPath' is not iterable

This error didn't go away, so I'll leave a note for anyone using djanogo in a windows environment. You need to change the database part of setting.py.

'NAME': BASE_DIR / 'db.sqlite3', Change this part.

'NAME': str(BASE_DIR / 'db.sqlite3'),

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': str(BASE_DIR / 'db.sqlite3'),
    }
}

Arguments cannot be used many times in translation.

Recommended Posts

What I was addicted to when creating a web application in a windows environment
What I was addicted to when dealing with huge files in a Linux 32bit environment
A note I was addicted to when creating a table with SQLAlchemy
When I tried to install PIL and matplotlib in a virtualenv environment, I was addicted to it.
I was addicted to creating a Python venv environment with VS Code
What I was addicted to when using Python tornado
What I was addicted to when migrating Processing users to Python
What I was addicted to when combining class inheritance and Joint Table Inheritance in SQLAlchemy
What I was addicted to when introducing ALE to Vim for Python
What I was addicted to with json.dumps in Python base64 encoding
A note I was addicted to when making a beep on Linux
When creating a pipenv environment, I got addicted to "Value Error: Not a valid python path"
What I was addicted to Python autorun
The story I was addicted to when I specified nil as a function argument in Go
[Go language] Be careful when creating a server with mux + cors + alice. Especially about what I was addicted to around CORS.
Note that I was addicted to accessing the DB with Python's mysql.connector using a web application.
I made a web application in Python that converts Markdown to HTML
A story I was addicted to when inserting from Python to a PostgreSQL table
Steps to develop a web application in Python
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
A note I was addicted to when running Python with Visual Studio Code
I tried to implement what seems to be a Windows snipping tool in Python
A story that I was addicted to when I made SFTP communication with python
I was addicted to scraping with Selenium (+ Python) in 2020
A story that I was addicted to at np.where
I was addicted to trying logging.getLogger in Flask 1.1.x
[Words spelled to me when I was in the first grade ①] I'm not afraid to build a programming environment.
I was soberly addicted to calling awscli from a Python 2.7 script registered in crontab
Note that I was addicted to npm script not passing in the verification environment
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
After implementing Watson IoT Platform application in Flask, I was addicted to MQTT connection
What I did when I was angry to put it in with the enable-shared option
I tried the super-resolution algorithm "PULSE" in a Windows environment
What I was asked when using Random Forest in practice
Creating a web application using Flask ②
Creating a voice transcription web application
Creating a web application using Flask ①
Creating a web application using Flask ③
When creating a matrix in a list
Creating a web application using Flask ④
I was addicted to multiprocessing + psycopg2
A story that I was addicted to calling Lambda from AWS Lambda.
I tried to create a server environment that runs on Windows 10
What I did to output application logs on GAE Flexible Environment.
The record I was addicted to when putting MeCab on Heroku
I wrote a script to extract a web page link in Python
I was addicted to confusing class variables and instance variables in Python
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
When I put Django in my home directory, I was addicted to static files with permission errors
What I was addicted to in Collective Intelligence Chaprter 3. It's not a typo, so I think something is wrong with my code.
Things to watch out for when creating a Python environment on a Mac
Two things I was addicted to building Django + Apache + Nginx on Windows
[Python] When I tried to make a decompression tool with a zip file I just knew, I was addicted to sys.exit ()
I want to print in a comprehension
Display matplotlib diagrams in a web application
What I referred to when studying tkinter
A story I was addicted to trying to install LightFM on Amazon Linux
I was addicted to pip install mysqlclient
I want to build a Python environment
A story I was addicted to trying to get a video url with tweepy
Creating a python virtual environment on Windows