AWS |
lambdaタグが付けられた新着投稿 - Qiita |
【AWS】Lambdaコンテナイメージ利用に対する覚え書き |
https://qiita.com/deeptail/items/f523007481f72813e1e8
|
lambda |
2022-09-19 01:08:39 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
とりま何か公開してぇならChrome拡張もええんでない? |
https://qiita.com/takestart08nine/items/3a22fbc4cadd0f1c8cd7
|
chrome |
2022-09-19 01:22:32 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
shopify-api-ruby の ShopifyAPI::ResourceName.all でデータを全件取得する方法 |
https://qiita.com/kazama1209/items/b684f006f2070be35937
|
shopifyapires |
2022-09-19 01:24:24 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【AWS】Lambdaコンテナイメージ利用に対する覚え書き |
https://qiita.com/deeptail/items/f523007481f72813e1e8
|
lambda |
2022-09-19 01:08:39 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
【AWS】Lambdaコンテナイメージ利用に対する覚え書き |
https://qiita.com/deeptail/items/f523007481f72813e1e8
|
lambda |
2022-09-19 01:08:39 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
GCP Cloud Spanner をローカル環境で動かすための手順 |
https://qiita.com/ototonari/items/497391b6e407eb7669ce
|
cloudspaner |
2022-09-19 01:18:11 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
コード譜投稿アプリを作る #4(apolloを使ってnextとrailsをつなぐ) |
https://qiita.com/t_sekky/items/f589877d575fa1f480e4
|
graph |
2022-09-19 01:33:29 |
海外TECH |
MakeUseOf |
How to Set Up and Use Parental Controls on Your Nintendo Switch |
https://www.makeuseof.com/how-to-set-up-use-parental-controls-nintendo-switch/
|
switch |
2022-09-18 16:15:13 |
海外TECH |
MakeUseOf |
10 Tips to Have Secret Text Conversations on Your iPhone |
https://www.makeuseof.com/secret-texting-on-iphone-tips/
|
secret |
2022-09-18 16:15:13 |
海外TECH |
MakeUseOf |
7 Ways to Fix “The Remote Computer Requires Network Level Authentication (NLA)” Error on Windows |
https://www.makeuseof.com/fix-remote-computer-requires-network-level-authentication-nla-on-windows/
|
Ways to Fix “The Remote Computer Requires Network Level Authentication NLA Error on WindowsSometimes Windows won t let you connect to a remote computer citing an issue with NLA Fortunately it s an easy fix |
2022-09-18 16:15:13 |
海外TECH |
DEV Community |
Makefile for your Django project |
https://dev.to/daiquiri_team/makefile-for-your-django-project-577n
|
Makefile for your Django projectDuring the development process you often need to run some commands in your terminal create migrations run tests linters etc Usually you execute these commands regularly It s helpful to have shortcuts for such commands And even better to share them among other developers on the project For this goal I use Makefile Here is the list of useful commands for a Django project Installing dependenciesI m not a big fan of Poetry It has some problems with Dependabot and doesn t play with Renovate at all I use pip tools with separate requirements in and requirements dev in for local and prod environments pip install dev pip install upgrade pip pip tools pip sync requirements txt requirements dev txtpip install pip install upgrade pip pip tools pip sync requirements txtpip update pip install upgrade pip pip tools pip compile requirements in pip compile requirements dev in pip sync requirements txt requirements dev txtCommands pip install dev Installs all requirements including local It is the main command for installing the project s dependencies so I put this command at the top pip install I don t use this command often but it could be helpful to run your code with production dependencies only pip update Updates your requirements txt and requirements dev txt after you add a new package to the requirements in or requirements dev in Running the projectserver python manage py migrate amp amp python manage py runserverworker python m celery A project name worker loglevel infobeat python m celery A project name beat loglevel infoThat is an obvious one The commands to run local web server and Celery Also I like to apply new migrations automatically when I run the server Running linterslint flake palyanytsya mypy palyanytsyablack python m black palyanytsyacleanimports isort autoflake r i remove all unused imports ignore init module imports project nameclean lint cleanimports black lintcheckmigrations python manage py makemigrations check no input dry runCommands lint Runs flake linter and mypy type checker black Automatic code formatting with Black cleanimports runs isort and removes unused imports with Autoflake Be sure to set up profile black in isort settings to avoid conflicts with Black clean lint run all the stuff above You can run this command before committing to formatting your code properly checkmigrations prevents you from committing model changes without migrations Really cool stuff Also I use make lint amp amp make checkmigrations in the CI pipeline and in the git pre commit hook You can also create a command for setting up such a hook install hooks echo make lint amp amp make checkmigrations gt git hooks pre commit amp amp chmod git hooks pre commit Running teststest pytest n xRuns pytest in multiprocess mode using pytest xdist Compiling messagesmessages python manage py makemessages all ignore venv extension html py python manage py translate messages s en l uk l es u python manage py compilemessages ignore venvCollects all string literals for translation Also I use Django Autotranslate to translate phrases using Google Translate automatically The endAs long as the project goes on new local commands appear Maybe you need to shell into the dev server to run some python code Or download a fresh database dump without sensitive data for local bug reproducing It s better to keep this knowledge in the codebase not in your head Also you won t need to explain how to do exactly the same operation to your colleagues For more complex tasks you can even create a shell script and call it from Makefile So it would be easier to find this new command for other devs |
2022-09-18 16:52:41 |
ニュース |
BBC News - Home |
Arsenal: Ethan Nwaneri, 15, becomes youngest Premier League player |
https://www.bbc.co.uk/sport/football/62946036?at_medium=RSS&at_campaign=KARANGA
|
Arsenal Ethan Nwaneri becomes youngest Premier League playerFifteen year old Ethan Nwaneri becomes the youngest player in Premier League history when he comes off the bench in Arsenal s win at Brentford |
2022-09-18 16:14:19 |
ニュース |
BBC News - Home |
Italian Open: Robert MacIntyre beats Matt Fitzpatrick in Rome play-off |
https://www.bbc.co.uk/sport/golf/62947520?at_medium=RSS&at_campaign=KARANGA
|
Italian Open Robert MacIntyre beats Matt Fitzpatrick in Rome play offScotland s Robert MacIntyre clinches his second DP World Tour triumph as he beats Matt Fitzpatrick in a play off at the Italian Open |
2022-09-18 16:36:13 |
ニュース |
BBC News - Home |
Why were ITV hosts Holly Willoughby and Phillip Schofield at Queen's lying-in-state? |
https://www.bbc.co.uk/news/uk-62946702?at_medium=RSS&at_campaign=KARANGA
|
Why were ITV hosts Holly Willoughby and Phillip Schofield at Queen x s lying in state Phillip Schofield and Holly Willoughby drew criticism after being spotted by people who were filing past the coffin |
2022-09-18 16:24:08 |
北海道 |
北海道新聞 |
U18野球、日本が米に敗れる 3位決定戦は韓国と |
https://www.hokkaido-np.co.jp/article/733105/
|
韓国 |
2022-09-19 01:07:00 |
コメント
コメントを投稿