Dev_Configure CodaLab Visual Studio
Clone this wiki locally
You can increase your productivity by writing code, running and debugging the web site in Visual Studio using the Python Tools for Visual Studio.
Create the codalab project:
- In Visual Studio File menu click New Project. Under Templates, select Other Languages, then choose Python.
- Select the From Existing Python Code template.
- Name the project "codalab".
- Location should be the codalab subdirectory within the codalab project (for example C:\Users\user\Documents\GitHub\codalab\codalab).
- Uncheck the Create directory for solution option.
- Click OK. The Create New Project from Existing Python Code dialog appears.
- Enter the path for the codalab subdirectory within the codalab project (for example C:\Users\user\Documents\GitHub\codalab\codalab)
- add *.scss to the filter list.
- Click Next.
- Select manage.py as the file to run when F5 is pressed. If no files are showing up, then you may have used an incorrect project directory in steps 2 or 5.
- Click Next.
- Enable Django as a feature of your project.
- Click Finish. The Visual Studio project file and solution files should be located in the codalab subfolder within the codalab project: codalab\codalab\codalab.pyproj & codalab\codalab\codalab.sln.
After you have created the project:
- In Solution Explorer right-click the Python Environments node and select "Add existing virtual environment...".
- Pick the codalab\venv directory.
- Save your solution.
- In Solution Explorer, right-click on the codalab project node, then choose Django > Validate Django App... The Django Management Console should appear and report zero errors found.