Making a Website with idea from Console Application using Django
I'm sorry if the title are too abstract or not clear enough. I already have a console application [findtext] with python and i want to make a django website [findtext] with the same funcionality of the console application. The main function of the console findtext are to find text with the same text in wordlist. File input in this findtext application are file .txt and the output are print in the console.
Before reading my question, please see this image.. image : http://i.imgur.com/i8keTYX.png
And my question are : In my console application, i'm using input file .txt , and in django using textfield, anything user type in textfield goes to database and when user click process, there's a code to check similarity of the text/words (text/words that stored in database) with wordlist, and after processing, program will printout an html output showing how many text/words are found the similarity with wordlist.
I found these : Django design: storing and retrieving text files, [http://stackoverflow.com/questions/24655680/django-design-storing-and-retrieving-text-files ] but this just about retrieving text.
I found these too : integrating Django with a console application, [http://stackoverflow.com/questions/23581196/integrating-django-with-a-console-application ] my question are not about integrating application, but more like making my application becoming online with django.
1. What i'm still confuse are how after retrieving text and then processing it, just in 1 button process.. So, there's 2 onclick event in process button that.. first -> store any text user type to database second -> process text from database to find the similarity How to make this happen?
2. In my console, i'm using library and there's some other python file which contain method, etc. and this findtext need those libraries. Example : nltk, python link parser, etc. How to add those libraries in django?
How i can achieve those 2 Confusing question with django? If there's some example or reference link, it will be great, and Thanks for reading my long post..
You must be logged in to post. Please login or register an account.