The script works fine, I am just curious about the message 404 appears on 
terminal window. I have highlighted them.

Mohammad@6600K C:\TW\201. Python server                                    
   
$ python server.py                                                          
  
127.0.0.1 - - [29/Dec/2019 09:14:54] "GET / HTTP/1.1" 200 -                
   
127.0.0.1 - - [29/Dec/2019 09:14:54] code 404, message File not found      
   
127.0.0.1 - - [29/Dec/2019 09:14:54] "GET /favicon.ico HTTP/1.1" 404 -      
  
127.0.0.1 - - [29/Dec/2019 09:15:37] "GET /wikis/ HTTP/1.1" 200 -          
   
127.0.0.1 - - [29/Dec/2019 09:15:40] "GET /wikis/tw.html HTTP/1.1" 200 -    
  
127.0.0.1 - - [29/Dec/2019 09:15:41] "OPTIONS /wikis/tw.html HTTP/1.1" 200 
-  
127.0.0.1 - - [29/Dec/2019 09:15:42] code 404, message File not found      
   
127.0.0.1 - - [29/Dec/2019 09:15:42] "GET /wikis/favicon.ico HTTP/1.1" 404 
-  
127.0.0.1 - - [29/Dec/2019 09:16:16] "PUT /wikis/tw.html HTTP/1.1" 200 -    
  
127.0.0.1 - - [29/Dec/2019 09:16:16] "HEAD /wikis/tw.html HTTP/1.1" 200 -  
   
127.0.0.1 - - [29/Dec/2019 09:41:05] "GET / HTTP/1.1" 200 -                
   
127.0.0.1 - - [29/Dec/2019 09:41:06] code 404, message File not found      
   
127.0.0.1 - - [29/Dec/2019 09:41:06] "GET /favicon.ico HTTP/1.1" 404 -      
  



On Sunday, December 29, 2019 at 1:30:42 AM UTC+3:30, UBi wrote:
>
> I will describe my use case on Linux, Windows should work in a similar 
> fashion.
>
> My TiddlyWiki files live in /home/ubi/TW, abbreviated ~/TW. There I placed 
> the script as twserver.py.
> For a first test, I started it manually in a terminal window:
>
> /usr/bin/python3 ~/TW/twserver.py
>>
>
> Then I pointed my browser to http://localhost:8080/. Status messages 
> started appearing in the terminal window.
>
> In the browser window a list of files and directories below ~/TW appeared.
>
> I opened one of my TW files, notes.html, and created a new Tiddler. The I 
> saved the changes.
> This
> 1) backed up ~/TW/notes.html html to 
> ~/TW/twBackups/notes.html.YYYYMMDDhhmmss, creating ~/TW/twBackups on the 
> fly.
> 2) saved the changes to ~/TW/notes.html.
>
> Now I have to find out how / where I can add a call to the script to my 
> startup or login procedures.
>
> HTH UBi
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9c3cde88-dc86-432a-bf4c-2c146b93e2a7%40googlegroups.com.

Reply via email to