Re: Django for data management in a no-UI application?

2015-09-09 Thread jsachs
Thanks, that's a clear answer. As a bonus, it's the one I was hoping for. :)

The UI will be web-based. A native OS GUI would be cool, but 'way overkill. 
The application that will be used internally by a small number of people. 
It automates some production processes, and having a GUI at all is a 
convenience rather than a necessity.

The only reason there will an application running on the client at all is 
that this application must execute a native OS GUI application (a 
commercial application, not part of my development project).

-- 
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/27f3c4d4-2d39-4e36-81ec-30df11aafd24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for data management in a no-UI application?

2015-09-08 Thread Carl Meyer
On 09/08/2015 04:06 PM, jsa...@nvidia.com wrote:
> I have been planning to develop a standard web application using Django.
> Due to a change in direction, the development plan has been changed to:
> 
>  1. Develop a suite of no-GUI applications that run in a command line
> window on a server. One other application will run on _clients _in a
> command line window, and will perform certain operations on the
> server through a REST API service. However,
>  2. All of the applications will use an SQL database that runs on the
> server.
>  3. In a later phase of the project, the server applications will be
> combined and modified to present a GUI.
> 
> My question is this: Is it feasible to make all of the server
> applications use Django to communicate with the database server in step
> 1, and then use it to implement the GUI in step 3? By doing so, I would
> avoid having to (1) code all of the database operations without Django
> in step 1, then recode them with Django in step 3, or (2) end up with a
> "hybrid" application that implements the GUI in Django but the database
> operations outside Django.

Sure, you can write the command-line server applications as Django
management commands, or just as Python scripts that use
`django.conf.settings.configure()` and call `django.setup()` before
using the ORM to communicate with the database.

And you can use the same ORM models to drive your REST API, built in Django.

How you approach step 3 depends on whether "browser-based GUI" is
acceptable, or you need to build an OS-native application. Django is
oriented towards the former, but you can certainly build an OS-native
Python application using a GUI toolkit like Qt or whatever, and still
use the Django ORM within it to talk to the database.

Carl

-- 
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/55EF5D03.4020503%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Django for data management in a no-UI application?

2015-09-08 Thread jsachs
I think I failed to explain my situation clearly, and I need to try again.

I have been planning to develop a standard web application using Django. 
Due to a change in direction, the development plan has been changed to:


   1. Develop a suite of no-GUI applications that run in a command line 
   window on a server. One other application will run on *clients *in a 
   command line window, and will perform certain operations on the server 
   through a REST API service. However,
   2. All of the applications will use an SQL database that runs on the 
   server.
   3. In a later phase of the project, the server applications will be 
   combined and modified to present a GUI.

My question is this: Is it feasible to make all of the server applications 
use Django to communicate with the database server in step 1, and then use 
it to implement the GUI in step 3? By doing so, I would avoid having to (1) 
code all of the database operations without Django in step 1, then recode 
them with Django in step 3, or (2) end up with a "hybrid" application that 
implements the GUI in Django but the database operations outside Django.

I haven't looked at the "Django REST" link yet, but I appreciate the 
suggestion. The project will require a REST API, as I mentioned, although 
most of the applications will run on the server, and will *not* need an API.

-- 
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/b5e7850e-7e33-47a9-8373-87e3d21ae9bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for data management in a no-UI application?

2015-09-03 Thread Mulianto
Hi ,

Gui as webapp in django is included, which is admin interface.

But if you will build own web gui for the frontend, you still can use django , 
but with the result as an API , whic you can build with DRF or without.

With the API your client can be web client, mobile phone, desktop app, embedded 
app , you name it.

Mulianto

Sent from my Mini Ipad 

> On 3 Sep 2015, at 06.02, Avraham Serour  wrote:
> 
> +1 to DRF, you may also use the django admin as a quick CRUD to your data
> 
>> On Sep 2, 2015 10:34 PM, "Rafael E. Ferrero"  
>> wrote:
>> I don't quite understand very well your use case, but, i think that you can 
>> go with REST, maybe?? [http://www.django-rest-framework.org/]
>> 
>> --
>> Rafael E. Ferrero
>> 
>> 2015-09-02 16:20 GMT-03:00 :
>>> I'm designing a program which was originally meant to be a server 
>>> application, and I planned to write it with Django. I haven't used Django 
>>> before, so I've been reading about it to help me think about the design.
>>> 
>>> Now there has been a change in direction. I'm being asked to develop the 
>>> program as a no-UI service. A browser-based user interface will be added 
>>> later.
>>> 
>>> However, the program will make extensive use of a SQL database. I'd like to 
>>> use Django's data management features from the start, so that when the GUI 
>>> is added I won't have to choose between rewriting the data management and 
>>> leaving it outside the Django framework.
>>> 
>>> None of the tutorial material I've read addresses this case, where Django 
>>> is used for data management but there is no UI. Will I have any problems 
>>> developing a program this way?
>>> -- 
>>> 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/c9e96c5a-689f-4b20-bd9d-c23fc34e844d%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> 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/CAJJc_8U8_ZAP3MGADz6T1jDxmm%3DoDTKoAc-hYTqfLRpx-PyzJA%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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/CAFWa6tK7uhM%2BgiR_aCibH%2BfR3Rmn3XQj6eBTVL5-W_XwRzYO5g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/E9516599-209B-4864-8B75-962EA661959C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for data management in a no-UI application?

2015-09-02 Thread Avraham Serour
+1 to DRF, you may also use the django admin as a quick CRUD to your data
On Sep 2, 2015 10:34 PM, "Rafael E. Ferrero" 
wrote:

> I don't quite understand very well your use case, but, i think that you
> can go with REST, maybe?? [http://www.django-rest-framework.org/]
>
> --
> Rafael E. Ferrero
>
> 2015-09-02 16:20 GMT-03:00 :
>
>> I'm designing a program which was originally meant to be a server
>> application, and I planned to write it with Django. I haven't used Django
>> before, so I've been reading about it to help me think about the design.
>>
>> Now there has been a change in direction. I'm being asked to develop the
>> program as a no-UI service. A browser-based user interface will be added
>> later.
>>
>> However, the program will make extensive use of a SQL database. I'd like
>> to use Django's data management features from the start, so that when the
>> GUI is added I won't have to choose between rewriting the data management
>> and leaving it outside the Django framework.
>>
>> None of the tutorial material I've read addresses this case, where Django
>> is used for data management but there is no UI. Will I have any problems
>> developing a program this way?
>>
>> --
>> 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/c9e96c5a-689f-4b20-bd9d-c23fc34e844d%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CAJJc_8U8_ZAP3MGADz6T1jDxmm%3DoDTKoAc-hYTqfLRpx-PyzJA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFWa6tK7uhM%2BgiR_aCibH%2BfR3Rmn3XQj6eBTVL5-W_XwRzYO5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for data management in a no-UI application?

2015-09-02 Thread Rafael E. Ferrero
I don't quite understand very well your use case, but, i think that you can
go with REST, maybe?? [http://www.django-rest-framework.org/]

--
Rafael E. Ferrero

2015-09-02 16:20 GMT-03:00 :

> I'm designing a program which was originally meant to be a server
> application, and I planned to write it with Django. I haven't used Django
> before, so I've been reading about it to help me think about the design.
>
> Now there has been a change in direction. I'm being asked to develop the
> program as a no-UI service. A browser-based user interface will be added
> later.
>
> However, the program will make extensive use of a SQL database. I'd like
> to use Django's data management features from the start, so that when the
> GUI is added I won't have to choose between rewriting the data management
> and leaving it outside the Django framework.
>
> None of the tutorial material I've read addresses this case, where Django
> is used for data management but there is no UI. Will I have any problems
> developing a program this way?
>
> --
> 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/c9e96c5a-689f-4b20-bd9d-c23fc34e844d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJJc_8U8_ZAP3MGADz6T1jDxmm%3DoDTKoAc-hYTqfLRpx-PyzJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.