Now you have your first Django project and you can run it using this command: python manage.py runserverĪ link will appear on the terminal and you can open it by copying and pasting it on your favorite browser or pressing Ctrl button and the link. (note the dot at the end, it will make sure not to create an additional folder called 'myProject' inside your existing folder) The Python extension enables many features that will be useful for. Then activate your venv: envName\Scripts\activate.bat (the path should be in the same folder as the env)Ĭreate your Django project: django-admin startproject myProject. When using VS Code for Python development, we recommend installing the Python extension. The terminal appears on the bottom but I prefer to keep it on the right side by right-clicking on top of "Terminal" and choosing 'Move to the right".Ĭreate a virtual environment (venv) using the following command: python -m venv envName This will add a new workspace and your folder will always appear on the Explorer section unless you remove it.įrom the menu bar on top of VS Code click Terminal - New terminal (if you have multiple work spaces, you'll have to choose the one you want to work with) or use the shortcut Ctrl + Shift + `. You can drag your work folder and drop it on the 'Explorer' section on the left side of VS Code and then click 'Add folder to workspace' from the dialog box that appears. The latest version of Django which can be installed using pip package manager (described below)Ĭreate a new folder for your Django project and open VS Code.The latest version of Python: download from here.Visual Studio Code (VS Code), an easy-to-use IDE.I see this platform as a good way to 'save notes' and reinforce my knowledge by trying to explain it to othersįor my projects development I use the following:.helping other fellow developers by giving a set of steps I've follow in order to develop different software projects.During the development process I've come across multiple issues and I decided to start writing on this platform for a couple of reasons: Hello everyone! I am a software developer graduated recently and working in some personal projects. Short introduction (you can skip this part)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |