How to use visual studio code to debug django

For VSCode (full disclosure, I’m one of the VSCode developers) try installing the Python extension to get started. This documentation covers debugging Django. There should be a included debug configuration or you can add your own to the launch.json file: { “name”: “Django”, “type”: “python”, “request”: “launch”, “stopOnEntry”: false, “pythonPath”: “${config.python.pythonPath}”, “program”: “${workspaceRoot}/manage.py”, “args”: [ … Read more

Develop and Debug Atom Package

When working on packages locally, here’s the recommended workflow: Clone your package from GitHub using apm develop <package-name>. This will clone the package’s repo to your local ~/.atom/dev/packages/<package-name> cd into this directory Start Atom in this directory using atom -d . Now you can work on the package, make changes, etc. Once you’re ready to … Read more

Atom opens a new file called ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false

I am going to make several assumptions. You are running on Ubuntu and you’ve installed Atom via Snap. If these assumptions are correct the cause of the issue is a misconfigured application menu item from the Snap package author. To fix it you just need to run this command: sudo sed -i ‘s/Exec=env BAMF_DESKTOP_FILE_HINT=\/var\/lib\/snapd\/desktop\/applications\/atom_atom.desktop \/snap\/bin\/atom … Read more

Atom, search in all the files

This is probably due to the Exclude VCS Ignored Paths setting in Atom’s Core settings. Please try the search again after unselecting the respective checkbox in the settings: You can find this setting on the first page of the Atom Settings, a bit down under Core Settings. The setting’s description describes what is excluded from … Read more

How do I write a custom command in Atom?

You can add the following code to your init.coffee file: atom.commands.add ‘atom-text-editor’, ‘custom:cut-line’, -> editor = atom.workspace.getActiveTextEditor() editor.selectLinesContainingCursors() editor.cutSelectedText() You can get the code to execute from the source by searching for strings in the command palette. And once you have a command created, you can map a key to it by editing your keymap.cson … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)