This guide will help you set up a working development environment for Tsune
- A working and configured Git (download)
- VirtualBox compatible with Vagrant (download)
- Vagrant (download)
- PyCharm Professional (download)
- VirtualBox installation folder in PATH environment variable
- Open PyCharm
- Select Open from Version Control
- Select either Github or Git and input the repository information
- When asked whether PyCharm should open the project for you, select Yes
- Select Tools > Vagrant > Up and wait for Vagrant to finish. This will take a long time (~30min), so grab a coffee or get some sleep. When it's finished, you will see Process finished with exit code 0
- Select File > Settings and click on Project Interpreter > Configure Interpreters
- Click the + button on the right and select Remote...
- Click Fill from vagrant config and Ok
- Click Test Connection. Answer the authenticity warning with Yes and click Ok
- Click Ok to close the interpreter setup and wait for the process to finish. This may take a few moments
- When asked whether you want to set the interpreter as Project Interpreter, select Yes
- Click Ok to close the settings window
- Select File > Settings and click on Django Support. Make sure that Enable Django Support is ticked
- Click the ... button next to Settings. Select tsune/settings.py. Click Ok
- Close the Settings window with Ok
- Click Run > Edit Configurations
- If Django server has an entry named tsune, select the entry and continue with step 7
- Click the + button. Select Django server
- Configure everything exactly as follows:
Name: tsune Host: 0.0.0.0 Port: 8000 Run Browser: http://127.0.0.1:8080
- Close the Run configurations dialog by clicking Ok