WebFaction: Django mod_wsgi 4.2.8 Python 3.4 - mhulse/mhulse.github.io GitHub Wiki
Steps to Django bliss on WebFaction servers.
WebFaction control panel
Domains
-
Click Domains/Websites > Domains.
-
Click Add new domain button and enter desired domain name into text area.
Applications
-
Click Add new application button and enter:
- Name:
appname_root
- App category:
mod_wsgi
- App type:
mod_wsgi 4.2.8/Python 3.4
(i.e., choose the latest versions)
- Name:
-
Click Save button.
-
Click Add new application again, and enter:
- Name:
appname_static
- App category:
Static
- App type:
Static only (no .htaccess)
- Name:
-
Click Save button.
Websites
-
Click Domains/Websites > Websites.
-
Click Add new website button and enter:
-
Name:
appname
-
Domains: Click in field and search and select domain name you entered above.
-
Contents: Click on Add an application and choose Reuse and existing application
- Make
appname_root
the root application for your domain and click Save button. - Repeat this step for
appname_static
and appendstatic
(no slashes) to theURL
field.
- Make
-
Click Save button.
-
-
Click Save button.
Databases
-
Click Databases > Databases.
-
Click Add new database button and enter:
-
Name:
appname_root
(matches application name) -
Database type:
PostgreSQL
-
Database owner: Choose
create a new postgresql user
- Username:
appname
- Password: ***************
- Confirm password: ***************
- Username:
-
-
Click Save button.
Finally, in terminal, navigate to your app and delete the htdocs
folder:
$ rm -r htdocs
Next, follow these instructions: