Changes between Version 11 and Version 12 of django_gheat
- Timestamp:
- Apr 14, 2011, 6:45:59 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
django_gheat
v11 v12 75 75 NOTE: that on this moment only the gheat_meting(lat, lng, signaal) are used for generating heatmaps, so make sure you at least put some data in those columns. 76 76 77 You can use one of the php scripts in the db/ folder to insert data into the database. 78 The csv_to_db.php inserts data from a csv, and the random_to_db.php inserts random points into your database. Make sure to edit the following lines: 79 {{{ 80 // edit with personal settings 81 82 $location = ' '; 83 84 $username = ' '; 85 86 $password = ' '; 87 88 $database = ' '; 89 }}} 90 91 If you will use the csv_to_db.php, also edit the following: 92 {{{ 93 // csv to open 94 $file = ' .csv'; 95 }}} 96 97 These ways of inserting data will be temporarily, a python script is in the making. 98 77 99 == Prerender heatmap == 78 100 You can prerender a heatmap with the following command: … … 92 114 }}} 93 115 116 == Display heatmap == 117 To display the heatmap, you can run the webserver: 118 {{{ 119 $ cd samples/persisted 120 $ ./manage.py runserver 121 }}} 122 Then browse to 'localhost/home/'. 123 94 124 == Troubleshooting == 95 125 If something is unclear or isn't working as it should, feel free to create a ticket.