How to add askbot to PyCharm?
Can somebody explain how to add askbot in pycharm and setup run configuration? Or maybe I'am looking in the wrong way? How to start develop?:)
Can somebody explain how to add askbot in pycharm and setup run configuration? Or maybe I'am looking in the wrong way? How to start develop?:)
I actually use PyCharm for askbot development.
This may not be optimal, but here is my setup.
I cloned askbot-devl git repo into direcotry myaskbot.
Then I went to PyCharm and
[File] -> [Open Directory...] to open the directory myaskbot which I have just created.
In order to set up run configuration, I created a askbot project (I'm not sure if this terminology is correct) with
askbot-setup to create a new directory called myforum
Then I went to PyCharm again to open the directory myforum in the same manner as previously described.
With myforum opened in PyCharm, I then went to
[Run] -> [Edit Configurations...]
and typed for Script
path/to/myforum/manage.py
and for Script parameters
test askbot
You can change Script parameters if you want to run a single test rather than the whole test suite. Happy coding with PyCharm!
Maybe have a look at how to set up PyCharm for django?
But askbot-devel git repo doesn't look like django project...
It is a django app, not a project - if the IDE works for the projects - set up a project, then install askbot into that project via "python setup.py develop".
So, I should work with setup-result project, not with git repo? But how to push changes to git repo? Sory for stupid questions, thats not trivial for me right now. Maybe you can describe your development workflow in some words?
The same way, no difference, except possibly you might need to add some files to the .gitignore (like files made by the IDE). I develop the same way, except I use vim.
I do standard deployment into a virtual environment, but the key is to use "python setup.py develop" to leave all the askbot files in the current directory instead of copying them into the environments' site-packages.
To enter a block of code:
Comments