Posts

Heroku Postgres Database Backup

Image
Hi I have Heroku ,And I face lot of problems in upgrading the models based on the changes . http://www.panhidhalyrics.com/ Based on lot of discussions  the migrations of Heroku ,  doing in local and apply them in the remote after pushing not gives me the expected outcome. Rather application ends up in  errors. 1. $ heroku run python manage.py makemigrations panhidhaapp 2. Push the changes to git   3.  $ heroku run python manage.py migrate The other thing we can do it  we change the Model and apply the change in the DB manually trough PgAdmin Frist you need to login and get the db Cardinals https://id.heroku.com/login Navigate to the following location Application >> Addons >> Heroku Postgres :: -- >> Overview Section Open PgAdmin and  give the detail as it is .The value in the database will be given to the maintenance db in pgAdmin.   After login you have to navigate to your own database which does not indicated the access restriction by cros

Heroku Django manage.py makemigrations - Error settings.DATABASES Please supply the ENGINE value

Image
Hi ,While I'm dying hard for the make the migration done with heroku ,,, the following command  always lead to the above error . $ python manage.py makemigrations  "raise ImproperlyConfigured("settings.DATABASES is improperly configured. " django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly co nfigured. Please supply the ENGINE value. Check settings documentation for more details" However it Takes me lot of time to understand  I'm using wrong command in heroku environment .Thanks for the below post ,Save a lot of time http://stackoverflow.com/questions/28138706/heroku-database-migration-does-not-create-tables Correct Command : $ heroku run python manage.py makemigrations panhidhaapp

කල් බලා පිපුණා පුංචිතරුවක් සඳ ළඟින් අහසේ *සුනිල් එදිරිසිංහ සංඛනී එදිරිසිංහ

Image
කල් බලා පිපුණා  පුංචිතරුවක්  සඳ ළඟින් අහසේ  ඒ තරකා මල සඳක් වී  ඔබේ දෑසේ රැඳේ අද දවසේ... රැඳේ අද දවසේ ... ඉගිළිලා සමනල් හැඟුම් අරුණ ගෙන එයි නව පැතුම් අවදි වී නොපියූ නෙතින්  සෙනෙහසේ මාවත සොයන් මල් සිනා වැට පීදිලා රොන් පිරී සුපහන් වෙලා තුන් සිතින් හිනැහී බලන් මං ඔබේ ලොව රජ වෙලා සිව්දිසා කිලි සෝදමින් එයි ගලා නොපහන් දසුන් නෑසුනා නොදුටූ වෙසින් මුදු සරින් කව් ගී ගයන් ඔබ නෙතේ ආලෝකයෙන් දිනූ ලොව විමසා බලන් ගෙවා ආ මග ඔබ රැඳී මහා නුග තුර සේ හිඳී .. ගී පද - කුමාරදාස සපුතන්ත්‍රි ගී තනු - රෝහණ වීරසිංහ ගායනය -සුනිල් එදිරිසිංහ සමග සංඛනී එදිරිසිංහ

django TextFeild print as a text Area

When printing django  TextFeild  without <p> </p> tag encoding it will display  just as a sentance without <br/> , \n ,\r ( breaks , newlines) However text area can encoded with <p> </p>  and supported with  linebreaks   which result the paragrh with expected breaks and newlines <p>     {{ post.song |linebreaks }}  </p>

අහම්බෙන් කවියක් ලියවුනා

ප්‍රශ්න ගොඩක් ඔහේ ,,, තව ප්‍රශ්න ඇත මෙහේ ,, ඊයේ රැ වගේ,, හොරෙන් FB එන්න වගේ,, අදහසක් නැද්ද අනේ ,,

Dahas Pethiya Male - Kasun Kalhara - දහස් පෙතියා මලේ,,

Image
ගැහැණිය මේ ලෝකයට බිහිවෙලා  ඉන්නේ ජිවිත කාලය පුරාම හඬන්නවත්,,හිනැහෙන්නවත් නොවේ. හැඩ්මත් සිනහවිමත් අතර රැදෙමින්,,,ලෝකය තවත් ලස්සන කරන්නටයි... දහස් පෙතියා මලේ,, වැටුණු පිනි බිදු,,,, අරුනොදේ,,, උණු කදුළැලි වේදෝ,,, පෙති දහස විසිරිලා සුලගට...... ඈත සිතිජයේ පාවෙලා.........  මත් වු බිගු රජු මලින් පියබා..ඈත සිතිජයේ තනිවෙලා.....  පියබලා......තනිවෙලා සැරසුවා,,,  දඟකාර කෙහෙරැල්ල දහස් පෙතියා මලින් රැවටිලා රොන් ගන්න වැසුවා කෙහෙරැල්ලේ ,,,, විසිරුනා පෙති දහස,,,, දහස් පෙතියා මලේ// සැරසුවා ,,,පෝරු මස්තකය දහස් පෙතියා මලින් මිලින  වු පෙති,,මුකුලිත වේදෝ අසිනිය මල් මතදී.,,, විසිරුනා පෙති දහස,,,, දහස් පෙතියා මලේ//

Malakai Kiya -Kasun Kalhara මලකැයි කියා - කසුන් කල්හාර

Image
මලකැයි කියා,,මලකැයි කියා,,,සිතුවෙම නැ ඔසු මලකයි කියා ,,,, යමෙකු උපතින්ම තියුණු බුද්ධියකට උරුමකම් කියන්නට පුළුවන. ඔහු අතිදක්ෂයෙක් වන්නටද පුලුවන. ඔහුගේ බුද්ධිය මෙහෙයවා අතිවිශාල සාර්ථකත්වයන්ටද ඔහු ළඟාවී සිටින්නටද පුළුවන. එහෙත් යම්දවසක ඔහුගේ බුද්ධිය හදවතට කතාකරන දිනයක් ජීවීතයේ කවර හෝ දිනෙක උදාවනු ඇත.. .ඒ බුද්ධිය හෙම්බත්වී ඇති මොහොතකය... © Tharindu Prabash https://plus.google.com/+TharinduPrabash/posts