Changes between Version 5 and Version 6 of InstallationGuidelines/PythonAnywhere


Ignore:
Timestamp:
08/05/19 05:24:30 (3 years ago)
Author:
rommelsotto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/PythonAnywhere

    v5 v6  
    232315. 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.
    2424
    25 '''Creating MySQL Database'''
     25'''Creating Database'''
     26
     27[[BR]]
     28MySQL
    26291. In your pythonanywhere account go to Databases Tab
    27302. Go to MySQL Tab
    28313. 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 4 The details of you database will be shown once you have successfully created it.
     324. In the Create Database portion enter the database name that you want, then click create.
     335. The details of you database will be shown once you have successfully created it.
    3134   Database host address : ''username.mysql.pythonanywhere-services.com''[[BR]]
    3235   Database name : username$databasename
    3336
     37[[BR]]
     38Postgres (you would need to pay for this service)
     391. go to Database tab, then postgres
     402. create password for super
     413. go to postgres console
     424. Create Database
     43        CREATE DATABASE name_of_database;
     44        CREATE USER username WITH PASSWORD password
     45
     46
    3447'''Connecting your Database to Eden'''
     48
     49[[BR]]
     50MySQL
    35511. 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
    36522. 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''"
     
    38544. Go back to your dashboard and proceed to Web Tab
    39555. Click Reload and then proceed to accessing your Eden Site
     56
     57[[BR]]
     58Postgres
     591. 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
     602.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"
     653. Save it.
     664. Go back to your dashboard and proceed to Web Tab
     675. Click Reload and then proceed to accessing your Eden Site