Changes between Version 5 and Version 6 of InstallationGuidelines/PythonAnywhere
- Timestamp:
- 08/05/19 05:24:30 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/PythonAnywhere
v5 v6 23 23 15. You can now navigate to other tabs(or do other things) and the bash console will keep running as a separate thread. In order to kill the current console you can go to "Console" tab and kill the desired bash console from the list. 24 24 25 '''Creating MySQL Database''' 25 '''Creating Database''' 26 27 [[BR]] 28 MySQL 26 29 1. In your pythonanywhere account go to Databases Tab 27 30 2. Go to MySQL Tab 28 31 3. Set the password for you MySQL connection then proceed 29 3. In the Create Database portion enter the database name that you want, then click create.30 4The details of you database will be shown once you have successfully created it.32 4. In the Create Database portion enter the database name that you want, then click create. 33 5. The details of you database will be shown once you have successfully created it. 31 34 Database host address : ''username.mysql.pythonanywhere-services.com''[[BR]] 32 35 Database name : username$databasename 33 36 37 [[BR]] 38 Postgres (you would need to pay for this service) 39 1. go to Database tab, then postgres 40 2. create password for super 41 3. go to postgres console 42 4. Create Database 43 CREATE DATABASE name_of_database; 44 CREATE USER username WITH PASSWORD password 45 46 34 47 '''Connecting your Database to Eden''' 48 49 [[BR]] 50 MySQL 35 51 1. Proceed to the File Tab and navigate to your ''000_config.py'' file. if you didn't change the name in the setup it will be in /home/username/web2py/applications/eden/models 36 52 2. Uncomment and edit the following lines[[BR]]settings.database.db_type = "mysql"[[BR]]settings.database.host = "''username.mysql.pythonanywhere-services.com''"[[BR]]settings.database.database = "''username$databasename''"[[BR]]settings.database.username = "''your pythonanywhere username''"[[BR]]settings.database.password = "''MySQL password you created''" … … 38 54 4. Go back to your dashboard and proceed to Web Tab 39 55 5. Click Reload and then proceed to accessing your Eden Site 56 57 [[BR]] 58 Postgres 59 1. Proceed to the File Tab and navigate to your 000_config.py file. if you didn't change the name in the setup it will be in /home/username/web2py/applications/eden/models 60 2.Uncomment and edit the following lines 61 settings.database.db_type = "postgres" 62 [[BR]]settings.database.host = "username-autonumber.postgres.pythonanywhere-services.com" 63 [[BR]]settings.database.username = "your database username" 64 [[BR]]settings.database.password = "password you created" 65 3. Save it. 66 4. Go back to your dashboard and proceed to Web Tab 67 5. Click Reload and then proceed to accessing your Eden Site