-
Notifications
You must be signed in to change notification settings - Fork 9
WebFaction: Django mod_wsgi 4.2.8 Python 3.4
Steps to Django bliss on WebFaction servers.
-
Click Domains/Websites > Domains.
-
Click Add new domain button and enter desired domain name into text area.
-
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.
-
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_rootthe root application for your domain and click Save button. - Repeat this step for
appname_staticand appendstatic(no slashes) to theURLfield.
- Make
-
Click Save button.
-
-
Click Save button.
-
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 htdocsNext, follow these instructions: