On Fri, Jul 17, 2015 at 12:55 PM, Jake Rudolph 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 wrote:
>> > If I have a separate Python script that I want to interact with my
>> > Django
>> > project, how do I s
For a standalone script (and django 1.7+), you'll need to add this at the
top of your script:
import django
django.setup()
https://docs.djangoproject.com/en/1.8/ref/applications/#django.setup
https://docs.djangoproject.com/en/1.8/intro/tutorial01/#playing-with-the-api
On Friday, July 17, 2015
I think what you really need is a custom Django management command. You can
take a look at the implementation of createsuperuser, it takes some input
and creates a user based on this info.
On 17 Jul 2015 18:55, "Jake Rudolph" wrote:
> So basically I have my Django app that takes in information fr
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.
On Thu, Jul 16, 2015 at 7:44 PM, Jake Rudolph 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 th
U can just import the modules in the script file the way you import django
modules.
On Jul 17, 2015 12:55 AM, "Jake Rudolph" 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?
>
> --
> You received this message becaus
If I have a separate Python script that I want to interact with my Django
project, how do I set them up to communicate?
--
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 em
7 matches
Mail list logo