On Fri, Jul 17, 2015 at 12:55 PM, Jake Rudolph <jidrudo...@gmail.com> wrote:
>> On Friday, July 17, 2015 at 5:12:51 AM UTC-7, larry....@gmail.com wrote:
>>
>> On Thu, Jul 16, 2015 at 7:44 PM, Jake Rudolph <jidru...@gmail.com> wrote:
>> > If I have a separate Python script that I want to interact with my
>> > Django
>> > project, how do I set them up to communicate?
>>
>> Not 100% sure what you mean. Do you mean you want to have a standalone
>> python script that uses the ORM? I do this all the time. Just import
>> what you need.

> So basically I have my Django app that takes in information from a user to
> make new objects, and I need to send some of that information to a separate
> script that performs logic and such with that information. When certain
> events occur I need to send information from the script to the database.

Invoke that script with an ajax call. I do that all the time. I have a
view function that get called by the ajax request and that runs a
script and returns results back to the browser.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY4bqnc%2Bg7O3dkjRD4YuUiHaHx9mGg14v4R0_UGZ-eZ-pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to