Re: standalone script to call a view

2013-06-28 Thread Larry Martell
On Fri, Jun 28, 2013 at 7:47 AM, Javier Guerra Giraldez wrote: > On Fri, Jun 28, 2013 at 8:21 AM, Larry Martell > wrote: >> I don't really understand what you mean by "create a function which is >> be called by view and your script." > > > AFAICT, your situation looks like this: > > you have thi

Re: standalone script to call a view

2013-06-28 Thread Sergiy Khohlov
for this case you can use django shell Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jun 28, 2013 at 4:47 PM, Javier Guerra Giraldez wrote: > On Fri, Jun 28, 2013 at 8:21 AM, Larry Martell > wrote: > > I don't really understand what you mean by "create a function which is

Re: standalone script to call a view

2013-06-28 Thread Javier Guerra Giraldez
On Fri, Jun 28, 2013 at 8:21 AM, Larry Martell wrote: > I don't really understand what you mean by "create a function which is > be called by view and your script." AFAICT, your situation looks like this: you have this: def myview(request, maybesomeparams...): does lots of things

Re: standalone script to call a view

2013-06-28 Thread Larry Martell
On Fri, Jun 28, 2013 at 7:12 AM, Sergiy Khohlov wrote: > View is used for serving web requests not for serving bash script . Ok > you have called a view and receive a http page. Ia it expected result? > I think more easy way is create a function which is be called by view and > your script.

Re: standalone script to call a view

2013-06-28 Thread Sergiy Khohlov
View is used for serving web requests not for serving bash script . Ok you have called a view and receive a http page. Ia it expected result? I think more easy way is create a function which is be called by view and your script. Many thanks, Serge +380 636150445 skype: skhohlov On Fri,