WebFaction
Community site: login faq
3
1

I can't overcome this task. I just want to have possibility to run python manage.py shell in my /webapps/myproject/djangoproject/myproject directory. i add line to myproject.wsgi:
sys.path = ['/home/myusername/webapps/djangoproject/myproject', '/home/myusername/webapps/djangoproject/lib/python2.7'] + sys.path

i also add to my .bashrc:
export PYTHNONPATH=$PYTHONPATH:$PWD export DJANGO_SETTINGS_MODULE=myproject.settings

but it did not help. Have i any chances to overcome this problem?

asked 24 Oct '11, 17:31

celtrun
33115
accept rate: 0%

edited 24 Oct '11, 17:39


You need to use "python2.7" instead of "python". For example:

python2.7 manage.py shell

Hope that helps!

permanent link

answered 24 Oct '11, 17:40

seanf
12.2k41836
accept rate: 37%

It helps, thank You.

(24 Oct '11, 17:41) celtrun

Why isn't this specified in the Webfaction docs?

(28 Sep '13, 01:39) Xiuyuan

It is; it's specified here.

(28 Sep '13, 02:07) ryans ♦♦

Yes,the default python edition is 2.6.6

permanent link

answered 30 Sep '13, 09:07

laike9m
29415
accept rate: 0%

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:

×908
×15

question asked: 24 Oct '11, 17:31

question was seen: 18,430 times

last updated: 30 Sep '13, 09:07

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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