Click here to Skip to main content
15,885,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am trying to integrate my existing code into django. How do i access models.py from my external code.I tried putting it in the same apps directory it did not work. Is there a way ?

My Case: I have a web parsing code that takes data from the web and prints it. I want to integrate it with django so as to save that data in the db and print it out in the web page. I want the input to come from the webpage and when i hit submit it triggers the parsing code and gives output on the page.

I have the django server up and running, created the apps (startapp), have the table created via models.py, have the urls.py setup. My question is how or where do I put my external code to make it trigger to access models .py, will it execute by itself when I start the server and hit the submit button ( i know i have to configure this one)

What I have tried:

Google Search
joined a Udemy course
youtube
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900