Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/var/www/sentinela_site/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/var/www/sentinela_site/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/sentinela_site/env/lib/python3.5/site-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/sentinela_site/env/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 59, in execute
[Tue Oct 09 01:56:28.975199 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] mod_wsgi (pid=25746): Target WSGI script '/var/www/sentinela_site/sentinela/wsgi.py' cannot be loaded as Python module.
[Tue Oct 09 01:56:28.975351 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] mod_wsgi (pid=25746): Exception occurred processing WSGI script '/var/www/sentinela_site/sentinela/wsgi.py'.
[Tue Oct 09 01:56:28.975574 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] Traceback (most recent call last):
[Tue Oct 09 01:56:28.975636 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] File "/var/www/sentinela_site/sentinela/wsgi.py", line 15, in <module>
[Tue Oct 09 01:56:28.975649 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] application = get_wsgi_application()
[Tue Oct 09 01:56:28.975664 2018] [wsgi:error] [pid 25746] [remote 191.6.113.63:52101] File "/var/www/sentinela_site/env/lib/python3.5/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
[Tue
# get message in terminal
message = input("Enter with your message: ")
# dictionare is the list of symbols and codes, and the meaning of them
dictionare = {
"G1": {
"!": "a",
"@": "b",
"#": "c"
},
"G2": {
// code to consult the google api to return the best route to two points
$origin = urlencode($req->origin);
$destination = urlencode($req->destination);
$ch = curl_init("https://maps.googleapis.com/maps/api/directions/json?optimize=true&mode=walking&origin=$origin&destination=$destination&key=AIzaSyCB_KsYe9Iy2stJHASf7QQ1BnzPQRlKdI0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = json_decode(curl_exec($ch));
$json = json_encode([