First time here? Check out the FAQ!
2

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?:)

bluebyte's avatar
65
bluebyte
asked 2013-03-11 15:42:45 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

3

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!

apg's avatar
167
apg
answered 2013-09-28 04:06:02 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Maybe have a look at how to set up PyCharm for django?

Evgeny's avatar
13.2k
Evgeny
answered 2013-03-11 16:45:02 -0500
edit flag offensive 0 remove flag delete link

Comments

But askbot-devel git repo doesn't look like django project...

bluebyte's avatar bluebyte (2013-03-11 17:10:53 -0500) edit
1

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".

Evgeny's avatar Evgeny (2013-03-11 17:12:15 -0500) edit

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?

bluebyte's avatar bluebyte (2013-03-11 17:28:18 -0500) edit

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.

Evgeny's avatar Evgeny (2013-03-11 17:30:07 -0500) edit

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.

Evgeny's avatar Evgeny (2013-03-11 17:33:38 -0500) edit
add a comment see more comments