Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

django drop database postgres

find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc"  -delete

# Check status of files >
python3 manage.py showmigrations

create news migrations 

Enjoy:)
Comment

Delete database from postgre python django

REVOKE CONNECT ON DATABASE digipm FROM public;

SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'digipm';
Comment

PREVIOUS NEXT
Code Example
Python :: rum system commands python 
Python :: how to set default user group in django 
Python :: get flask version 
Python :: distinct rows in this DataFrame 
Python :: python pad with zeros 
Python :: python input lowercase 
Python :: delete the content from the entry form in tkinter python 
Python :: python3 change file permissions 
Python :: how to take multiple input in list in python 
Python :: starting vscode on colab 
Python :: python file handling 
Python :: read file from s3 python 
Python :: add 2 set python 
Python :: left click pyautogui 
Python :: add custom field to serializer 
Python :: create fixtures django 
Python :: pandas multiindex to single index 
Python :: add to middle of list python 
Python :: remove 1st column pandas 
Python :: how to find empty rows of a dataset in python 
Python :: python unlist flatten nested lists 
Python :: python calculate derivative of function 
Python :: python pywhatkit 
Python :: django ckeditor not working 
Python :: python for else 
Python :: pycairo 
Python :: Write a Python function to check whether a number is in a given range. 
Python :: how to convert days into seconds in python using time.time() 
Python :: delete spaces in string python 
Python :: python list slicing 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =