Hi Larry,
On Monday, March 26, 2018 at 5:50:49 PM UTC-4, Damon Branch wrote:
-- Thanks for answering - yes that is what I mean I want a stand alone program to access the website server and database.
You said you make 'python requests or instantiating one of my server's objects the same way a request from the browser would' - it's good to know that this can be done - it would help me if there were some samples of this - I cannot find any in the django documentation so I'm having to piece it together from various posts/forums - do you know of any good examples/documentation on this please?
Thanks - Damon
On Monday, March 26, 2018 at 5:50:49 PM UTC-4, Damon Branch wrote:
Hi,I'm developing a website which contains a database. I then need to be able to update that database from a separate python application like a desktop or mobile app.I am new to Django and fairly new to Python (few months).After reading the introductory materials I'm thinking the way to do this is:1. Write the website application which can update database entries with a call like ' myModel.Create(info1='blah', info2='blah') '2. Package this application/website into something like 'django-myWebsite'3. In my other program/app import my package like 'from django-myWebsite import *'4. Make calls to the website via my package like ' myModel.Create(info1='blah', info2='blah') 'Is this the right approach/will it work or is there a better way to do it? Also, are there any examples of accessing a django built website through another program?Thanks - Damon
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4b9de695-5a7a-45f3-a239-0d3b351a7914%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment