Organize the flow from granting permissions to python users to make migrations and migrating

It is necessary to record to sql in order to create a branch for each person to move their hands from cloning with git hub, but this time I also described the flow to that recording and the troubleshooting because it got stuck. I will.

First, click here to grant permissions to python users

grant CREATE, DROP, SELECT, UPDATE, INSERT, DELETE, ALTER, REFERENCES, INDEX on saku202010.* to python@localhost;

Then,

Then do make migration.

# python manage.py makemigrations register

# python manage.py makemigrations shop

This is done for each application.

I got an error like this.

スクリーンショット 2020-10-17 15.51.36.png

no changes detected in app ','

This does not change the database. It means "something" that you don't have to do anymore. In conclusion, it's OK to go to the next step.

yuota@MacBook-Pro-3 saku202010 % python3 manage.py migrate

When you execute migrate with スクリーンショット 2020-10-17 16.29.03.png

It's done! about it.

Recommended Posts

Organize the flow from granting permissions to python users to make migrations and migrating
How to get followers and followers from python using the Mastodon API
From Python to using MeCab (and CaboCha)
Fractal to make and play with Python
Porting and modifying doublet-solver from python2 to python3.
[python] Send the image captured from the webcam to the server and save it
WEB scraping with python and try to make a word cloud from reviews
[Python] How to read data from CIFAR-10 and CIFAR-100
[Python] Flow from web scraping to data analysis
I want to make C ++ code from Python code!
Extract images and tables from pdf with python to reduce the burden of reporting
Pass an array from PHP to PYTHON and do numpy processing to get the result
[Python] How to remove duplicate values from the list
I wanted to use the Python library from MATLAB
The first step to getting Blender available from Python
Mercurial stopped working after migrating from Python 2 to Python 3 (Note)
Python --Read data from a numeric data file to find the covariance matrix, eigenvalues, and eigenvectors
Precautions when inputting from CSV with Python and outputting to json to make it an exe
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
Try to make it using GUI and PyQt in Python
Make the display of Python module exceptions easier to understand
The first API to make with python Djnago REST framework
Python regular expression basics and tips to learn from scratch
How to connect to various DBs from Python (PEP 249) and SQLAlchemy
What I was addicted to when migrating Processing users to Python
[Python] I installed the game from pip and played it
Build a Python environment and transfer data to the server
I want to know the features of Python and pip
I tried to enumerate the differences between java and python
I tried to make GUI tic-tac-toe with Python and Tkinter
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
Program to determine leap year from the Christian era [Python]
Go language to see and remember Part 8 Call GO language from Python
Pass OpenCV data from the original C ++ library to Python
Extract the value closest to a value from a Python list element
Read the old Gakushin DC application Word file (.doc) from Python and try to operate it.
I tried to find out the difference between A + = B and A = A + B in Python, so make a note