WebFaction
Community site: login faq

Trying to set up PyCharm to develop on Webfaction through remote ssh. I have a project on the server already. I'm creating a new Django project and setting an ssh interpreter pointing to /usr/local/bin/python3. I'm setting the project directory to: /home/<username>/webapps/<project_name>/myproject. It's connecting fine, but then after I finish the creation screen it gives me the error "No module named 'django'" on /home/<username>/.pycharm_helpers/pycharm/.jb_django_project_creator.py".

Any clue how to fix this? Is there a good guide somewhere on how to set up PyCharm with Webfaction? Thanks.

asked 08 Jun, 03:07

crperezt
134
accept rate: 0%


I believe that you need to create a virtualenv on the WebFaction server, install django there, along with the rest of your dependencies, and point pycharm to use the virtualenv's interpreter, not the server-wide python installation.

Finally, if you use our mod_wsgi stack, then you will need to point it to your virtualenv.

Note: I don't use pycharm myself, but after checking their documentation I believe that is what is needed in order to work.

permanent link

answered 08 Jun, 13:15

iliasr ♦♦
2.0k14
accept rate: 36%

edited 08 Jun, 13:20

Finally worked, thank you!

(08 Jun, 19:33) crperezt
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×5

question asked: 08 Jun, 03:07

question was seen: 238 times

last updated: 08 Jun, 19:33

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM