This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eğer modelsde bir değişiklik yapılıyorsa bu adımlar atılmalı: | |
| 1. base/migrations i silmek lazım | |
| 2. database ten girip migrationsi silmek lazım | |
| 3. migrate --fake | |
| 4. DB den o yeni ekleneni comment yapmak lazım | |
| 5. python manage.py makemigrations | |
| 6. migrate --fake | |
| 7. commentten kaldırıyoruz değişen fieldi | |
| 8. tekrar makemigrations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| go to https://dev.mysql.com/downloads/repo/apt/ | |
| download and unzip it and goto the directory | |
| sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb | |
| sudo apt-get update | |
| sudo apt-get install mysql-server | |
| sudo service mysql status | |
| sudo apt-get install mysql-workbench-community |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error 111 connecting to localhost:6379. Connection refused. Django Heroku | |
| redis is not istalled you should install with sudo apt-get install redis-server | |
| ____________________________________________________________________________ | |
| django-redis invalid DB index error and redis url's | |
| sudo nano /etc/redis/redis.conf | |
| change databases 16 to 512 | |
| sudo systemctl restart redis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install libmysqlclient-dev | |
| apt install gcc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd .. | |
| cd berkan | |
| ssh-keygen | |
| cd .ssh | |
| ls | |
| cat id_rsa.pub | |
| ssh -T git@gitlab.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for scrapy with Python 3, you'll need | |
| sudo apt-get install python3 python-dev python3-dev \ | |
| build-essential libssl-dev libffi-dev \ | |
| libxml2-dev libxslt1-dev zlib1g-dev \ | |
| python-pip | |
| with Python 2, you'll need | |
| sudo apt-get install python-dev \ | |
| build-essential libssl-dev libffi-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import string | |
| rand="" | |
| for r in range (0,10): | |
| rand+=random.choice(string.ascii_letters) | |
| print(rand) |