WebFaction
Community site: login faq

Hello,

I would like to do it right way, can you help me to setup Django-Oscar on Webfaction server? It is installing Django as a dependency and I know I can setup Django via Control Panel but how to make these work together.

http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html

Thanks

asked 17 Sep '13, 11:47

rentgeeen
4721319
accept rate: 0%


Our Django installation documentation and the Oscar official installation documentation outline the general process required to set up the Apache server and the oscar app.

You would start by installing the Django/Apache application in our control panel and than executing the commands from the Oscar docs within the new application directory via SSH.

I would use the virtualenv method in their docs like this,

easy_install-2.7 pip
pip install virtualenv
cd ~/webapps/<Name of Django application in control panel/
virtualenv venv
. ./venv/bin/activate
pip install django-oscar
django-admin.py startproject frobshop

Once the Oscar project directory is created you would copy the wsgi.py file from the default myproject directory and edit it from this to this,

os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
os.environ['DJANGO_SETTINGS_MODULE'] = 'frobshop.settings'

Than edit the apache httpd.conf file,

WSGIDaemonProcess oscar processes=2 threads=12 python-path=/home/<you>/webapps/oscar:/home/<you>/webapps/oscar/frobshop:/home/<you>/webapps/oscar/lib/python2.7:/home/<you>/webapps/oscar/venv/lib/python2.7/site-packages/

WSGIScriptAlias / /home/<you>/webapps/oscar/frobshop/wsgi.py

I used this method to get the base application they provide bound to Apache. The rest of the install doc covers database management and how to set up the URLs.

permanent link

answered 17 Sep '13, 19:42

johns
5.4k312
accept rate: 23%

edited 17 Sep '13, 19:44

Hello, thanks for advice, I did exactly as you said but now I am having:

Not Found, The requested URL / was not found on this server. Is there a way you can look at my account? I can open a ticket but not sure how to get to you. Let me know. Thanks a lot.

(23 Oct '13, 20:29) rentgeeen

Sure, we can look at your account.

The problem is that you're specifying a WSGIScriptAlias to a file that doesn't exist:

WSGIScriptAlias / /home/(you)/webapps/(yourapp)/(djangoapp)/wsgi.py

But /home/(you)/webapps/(yourapp)/(djangoapp)/wsgi.py doesn't exist. This is defined in your httpd.conf file at /home/(you)/webapps/(yourapp)/apache2/conf/httpd.conf

(23 Oct '13, 21:19) ryans ♦♦
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:

×909
×113
×97
×44
×15

question asked: 17 Sep '13, 11:47

question was seen: 5,372 times

last updated: 23 Oct '13, 21:19

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