Showing posts with label featured. Show all posts
Showing posts with label featured. Show all posts

Django Basic Commands while developing Application


1) Go to: /var/www/html/django-apps (Your project directory) 

2) Activate virtual environment:  
.  env/bin/activate

3) TO create tables at backend(First time):
python manage.py migrate                 

4) To Run server:
 python manage.py runserver 10.0.1.89:8000     

5) TO create admin user in Django application: 
python manage.py createsuperuser      

6) TO create new app in Django:
django-admin startapp boards

7) To generate SQL Queries in boards/migrations/0001_initial.py file :
python manage.py makemigrations

8) Above SQL Queries will execute in database:
python manage.py sqlmigrate boards 0001

9) The next step now is to apply the migration we generated to the database:
python manage.py migrate

10) TO create new app in project:
django-admin startapp accounts

11) If you get error like Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Run below commands:
python manage.py makemigrations
python manage.py migrate
python manage.py sqlmigrate boards 0001


Gaddalasari Waterfall - Third Highest waterfall in India

Jayashankar Bhupalpalli: Thsi waterfall Hidden in the deep forest, Gaddalasari waterfall was known only to the locals and a few others till recently. However, this waterfall said to be the third highest fall in the country and can become a major tourist attraction for the State of Telangana.

The waterfall height can be some 700 feet. If it is confirmed by taking measurements, it can be on par with the highest waterfalls of India.


Unknown to many, the country’s third highest waterfall could be hidden away in a remote corner of Jayashankar Bhupalpally district.


People constructed floors and bunds on and against the currents flowing from the waterfall. Based on the material like pebbles seen here which belongs to three successive ages Upper Palaeolithic ,Lower Palaeolithic and Middle Palaeolithic it can be said that prehistoric people lived there right from at least 1,25,000 years BP (Before Present) to 20,000 years BP.


Surprisingly, this waterfall is located 25 km away from Bogatha waterfall which is also known as the ‘Telangana Niagara’.

How to configure moodle configuration file.

File: config.php


$CFG->dblibrary = 'native';
$CFG->dbhost    = '11.0.1.94';
$CFG->dbname    = 'dbname';
$CFG->dbuser    = 'dbusername';
$CFG->dbpass    = 'dbpassword';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbsocket' => 0,
);
$CFG->wwwroot   = 'http://mysite.leeway.org';
$CFG->dirroot   = '/usr/share/nginx/html/My_Proj/My_branch';   // moodle file dir  root
$CFG->dataroot  = '/usr/share/nginx/html/My_Proj/moodledata/';  moodle data root
$CFG->admin     = 'admin';
$CFG->localcachedir = '/usr/share/nginx/html/My_Proj/My_branch/cache_data';
$CFG->directorypermissions = 0777;
$CFG->passwordsaltmain = '1MlzkL&C](u,PZsJPIM8s&B,/i';
$CFG->showuseridentity = 'username';
require_once(dirname(__FILE__) . '/lib/setup.php');


Bermuda Trangle


This is top most mysterious place in the world. It is also known as Devil Triangle.  Located in the Western part of the north Atlantic Ocean near south America


      On December 5th 1945   Flight 19:  Five TBM average torpedo bomber airlines disappeared around 15 men during a training flight up on the triangle. The team was known as flight 19 and the episode is the most well known of all the Bermuda triangle cases.

  On October 30th  Flight 441:  The flight 441 took of with 41 traveller including navel officers and there families on there way to lazes in the Azores island. The plain was about 400 miles of the coast the Bermuda triangle when communication was last trade and no SOS call was put in. Flight 441 was never arrived to ITS destination and literally disappeared without a trace. making it one of the most notable disappearances to date.


       On December 29th 1948 Flight DC-3:   A Douglas DC-3 Aircraft with 32 passengers on  board disappeared while on route from San Juan Puerto Rico to Miami Florida. The plain was initially low on batteries but the pilot continued to flay anyway. The plain , Nor trace of the people or Wreckage were ever found