Skip to content

WebFaction: Django mod_wsgi 4.2.8 Python 3.4

Michael Hulse edited this page Jan 18, 2015 · 2 revisions

Steps to Django bliss on WebFaction servers.

WebFaction control panel

Domains

  1. Click Domains/Websites > Domains.

  2. Click Add new domain button and enter desired domain name into text area.

Applications

  1. Click Domains/Websites > Applications.

  2. 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)
  3. Click Save button.

  4. Click Add new application again, and enter:

    • Name: appname_static
    • App category: Static
    • App type: Static only (no .htaccess)
  5. Click Save button.

Websites

  1. Click Domains/Websites > Websites.

  2. 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 append static (no slashes) to the URL field.
    • Click Save button.

  3. Click Save button.

Databases

  1. Click Databases > Databases.

  2. 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: ***************
  3. Click Save button.

Finally, in terminal, navigate to your app and delete the htdocs folder:

$ rm -r htdocs

Next, follow these instructions:

Clone this wiki locally