====== Basic Django Setup Instructions ====== Installation instructions from http://wiki.dreamhost.com/Django. - Create domain (e.g., django.bikmort.com). - Add "/public" to the web directory (in "Users, Files, and Paths" section). - Turn on "Passenger" (checkbox under "Web Options"). - Create a database (at MySQL Database panel): - Database name (bikdjango) - Hostname (mysql.django.bikmort.com) - First user (jtkorb) - Download and run the Django setup wizard - ''wget http://wiki.dreamhost.com/django-setup.py'' - ''python django-setup.py'' - Name project (mysite) - MySQL database (bikdjango) - MySQL username (jtkorb) and password - Create a superuser (admin, but deleted later for just jtkorb) - Found problem with Oracle configuration using "paste" to intercept and display errors from Django. See [[http://wiki.dreamhost.com/Passenger_WSGI#500_Errors_with_Passenger_WSGI_Workaround|here]] for details. Current status is that the "purdue" Oracle section of the settings.py file is commented out. - Verify installation [charvel] $ python Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> print django.get_version() 1.2.1 [charvel] $ mysql -u jtkorb -h mysql.bikmort.com bikdjango mysql> show tables; +----------------------------+ | Tables_in_bikdjango | +----------------------------+ | auth_group | | auth_group_permissions | | auth_message | | auth_permission | | auth_user | | auth_user_groups | | auth_user_user_permissions | | django_admin_log | | django_content_type | | django_session | | django_site | +----------------------------+ 11 rows in set (0.05 sec)