Importing python file to views and dynamic url

Viewed 39

I have a particular function established in a task.py file. I want to create a views file in django which imports task.py file,calls the function,links it to dynamic url and displays output using HttpResponse.

I have tried but my server just doesn't run. I'm a beginner.

0 Answers
Related