- Install PostgreSQL with PostGIS via Postges.app
- Install brew as recommended.
- Install dependencies:
brew install geos gdal
- Add the following to your settings:
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
# First, install all of the things | |
sudo su | |
apt-get update | |
apt-get install nginx | |
/etc/init.d/nginx start | |
sudo apt-get install python-dev | |
sudo apt-get install python-pip | |
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main" | |
sudo apt update |
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
class RestrictedSerializerOptions(serializers.ModelSerializerOptions): | |
""" | |
Meta class options for ModelSerializer | |
""" | |
def __init__(self, meta): | |
super(RestrictedSerializerOptions, self).__init__(meta) | |
self.writable_fields = getattr(meta, 'writable_fields', ()) | |
class WriteRestrictedModelSerializer(serializers.ModelSerializer): |
sudo swapon -s | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
sudo swapon -s | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
brew install geos gdal
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
Go is not available to install via Homebrew at the time of this writing. (Dec 18th 2020)
Go v1.16 will ship with Apple Silicon support in February of 2021, however the Go 1.16 beta can be installed from the Go website and can be linked to brew so that other brew packages that depend on Go may use it.
mkdir /opt/homebrew/Cellar/go
ln -s /usr/local/go /opt/homebrew/Cellar/go/1.16
brew link go
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"