Connect django website/database with desktop application - django

So I am creating a sign up page in django that will also have a sqLite database which won't be accessible from the webpages to the users.
As I want it to be only accessible with the desktop application. After reading up I came across an article that said that Tkinter and django don't mix together.
What can I use instead of tkinter for the application? And what else am I missing in this picture?
database? (check)
desktop application (????)
server side will only provide the info for the client side and 'reward users'
client side will do the tasks and handshake with the server on completion for 'reward'

Have you considered Electron for the desktop app? Electron is basically a framework for using web technologies to build desktop applications and is used for things like Slack and Visual Studio Code.
It seems perfect for this purpose. You could just create a custom app in Django for the management of the database that can only be accessed via the Electron client. The entire desktop application could be built as a webpage and justed linked to in Electron.

Related

Is it possible to use ionic Capacitor with a Django application?

I have a Django application that loads a React app on a child page. Is it possible to use the ionic Capacitor with this setup?
Yes, you can. Ionic allows you to build iOS, Android and web apps with a single codebase, and Capacitor enables access between your application and the device the application is running on. Therefore, you can build either a web or mobile application that consumes your Django APIs, similar to what your React app is currently doing. You can learn more at https://capacitor.ionicframework.com.

2 local servers (logic server on C++ and Web Server for Web pages) data interchange. How to?

we have an application made with Qt C++ and Http server with logic (logic server) Qt C++.
Yet it worked without web page (web app) and now we want to launch a web application (in browser)
I see no solution with 2 separate servers and fast operating data interchange.
What approach should we pick up to solve this problem? And what web server should we take to be able to interchange data efficiently with C++ logic server? Or is there some solution for Qt C++ to make our server on C++ generate wep pages?
What is now?
Server side
http logic server C++ with Sqlite database
Client side
Android, ios, windows applications working with logic server.
What we need?
Server side
http logic server C++ with Sqlite database + functionality to generate web pages (separate server or addon to C++ server)
Client side
Android, ios, windows applications working with logic server. + web application in browser
Check out Wt, a C++ Web Toolkit. It mimics the Qt API to allow webdevelopment in C++. You can instantiate widgets which compile into a webserver that renders these widgets, using html and css, on the client's browser.

Is it possible to make a call out to a remote server from within a SharePoint 2013 app?

I am very new to SharePoint development as well as SharePoint overall, so I apologize if this question seems like a no-brainer. I'm currently working on a SharePoint 2013 app and I'm wondering if it's possible to make a call out to some URL from within the SharePoint environment. Basically, I want to do this within an event receiver after some action is done to a list, and from there I want to make a call to some web service on my server to update my system. Using the REST API to poll the SharePoint server isn't a good option for this scenario since it won't scale very well.
When dealing with SharePoint 2013 apps you can access any resource using standardized APIs. In addition to REST SharePoint is offering the JS Client Object Model (CSOM).
In order to access data from another web than the current one, your app needs the permission to interact with the entire tenant.
If you're trying to query data from another host, you have to use JSONP because of the same origin policy.
if you are building an app using the "new App Model" for wiring up Remote Event Receivers it is possible to do anything, in which your app hosting framework/environment allows you to. If you are building a Classic App (Farm Solutions) you'll have access to perform operations which are allowable from the SharePoint servers directly...typically this is a lot as GAC deployed assemblies are granted full trust.
depending on what you are trying to do and what kind of resources you app will consume. I'd consider moving the dependancies away from SharePoint and building using the new App Model versus the older farm solutions. As you sound like you are starting in SharePoint, this gives you an opportunity to learn the new ways of doing development for SharePoint.
Lastly, you might consider building a workflow. Not sure what kind of app you are building but the new workflow capabilities include actions which can make RESTful calls. Potentially making your application a "no code" solution. Again it all really depends.

Could Web server and Application server be developed separately?

My friend has developed a recommend system in C++, now we want to make a web information system based on his work. As we both do not have no Web technology knowledge, I have some questions:
If we want to develop a web site which based on this recommend system, we should implement the recommend system in the application server and make a web server that could return the pages, right?
Then what web server we should use or use what technique to develop a web server to call the function in the recommend system? How the web server communicates with the application server?
Some web frameworks, such as Django, does it act as web server or application server or it is both?
As we have so much basic questions, do you have some books or website to recommend?
You can think of your C++ app as a service that your Django app can execute to return values to your users. You could easily execute any application on the same server as Django and capture the response or you could create a thin HTTP API and put your C++ app on its own server and call it by HTTP from your Django app to make requests for your users.
https://www.djangoproject.com/ is a great place to start.

Sync Framework and SQL Server in a centralized model - does SF need to be installed on the central server?

Good Day Everyone,
Excuse the newbie question, I am new to Microsoft Sync Framework. I've done extensive research on the Internet in order to find my way in this puzzle with the different versions of Sync Framework, of SQL Server, of Sync Services for ADO.NET, of SyncAgent vs SyncOrchestrator, etc. etc. and what should be used in which type of scenario. Unfortunately, after about a week of struggling all day long with how to code my ASP.NET 2.0 C# web application right, I am still lost.
My current situation is this: I am developing applications for a large Department and I cannot expect to get approval for installing new stuff on the server side. I am stuck with SQL Server 2008 and (I believe), the server has Sync Framework 1.0 installed on it. However, I have the freedom to install later versions on the client computers that will connect to the server. These will have SQL Server 2008 Express (NOT Compact) and will each run the web app. in their localhost IIS. The synchronization model is centralized in that the clients will only connect to the server for bidirectional synchronization (in a star-shaped network topology, do we call this the hub-spoke model?) but will not connect to each other (no peer-to-peer collaboration).
I have prepared both sides of the database for synchronization (enabled Change Tracking, put GUID data type for Primary Keys, etc. etc.)
The core of the synchronization, the program that makes the interface between the two nodes to synchronize, seem to be exclusively the web application on the client side. Right?
QUESTION: If I want to use Sync Framework v2.0 or v2.1, can I just ignore what version is installed on the server? In other words, is the Sync Framework on the server side even doing something? The SQL Server does not have the web application installed on it.
Unfortunately I could not find answer to this rather simple question on the web!
Thanks very much for your help! Have a great day!
Kindest Regards,
Zyxy
No, you don't need to install sync framework on the central sever. All you need from the central database is a connection string. As long as you can access the central database with a login that has sufficient rights, then you don't need to install anything on it. The sync application can run from anywhere as long as it is able to connect to the central server.
depends how you build your application.
if all sync code is on your app and you simply point it to connect the central sql server, then no need to have sync framework on the server.
if however you decide to use WCF such that you have a service component of the sync on the server side, then you need sync framework on the server. you client will have a proxy for the server side service and part of the synchronization will be executed server side on the wcf service.
with regards to SQL Express on the client side, SQL Ce is the only supported client database is you use VS Local Database Cache Project item or if you manually code against the SyncAgent/SQLCeClientSyncProvider/DbServerSyncProvider.
if you use SQL Express, you will have to use the newer SyncOrchestrator/SqlSyncProvider combo but that doesnt use the built-in SQL Change tracking.