I am using the python django, and i wanted to know to get use thingsboard dashboard, and database as postgresql - django

I am using the Python3, Django and database as Postgresql, and I wanted to use the Thingsboard dashboard in my web application. can anyone pls guide me how can I use this

ThingsBoard has APIs which you can use. You may also customise it based on your requirements.

Go to THINGSBOARD_URL/swagger-ui.html get the list of all available REST APIs and use it as per your requirements. http://localhost:8080/swagger-ui.html

Related

AWS Drupal Headless CMS

Want to start implementing drupal on headless cms ( Drupal backend and frontend react)
May I have a proper documentation guiding me?
I have already asked for help on other but they are in general about server less which I am already aware about AWS services.
Like https://opensenselabs.com/blog/articles/serverless-computing-drupal
The first thing is understanding drupal content. So you will need to create your content. It may variate a lot depending on your strategy.
Then, understand the drupal views. Most of decoupled headless drupal sites uses views to provide the API.
This can be done using JSON API module.
You can take this tutorial here https://drupalize.me/tutorial/add-rest-endpoint-views?p=3377

Integration of cloudant with django

I am new to cloudantdb and django. Is there any way to integrate cloudantdb with danjgo framework. Is it possible to connect cloudant with django?
As you may be aware, Cloudant is built on Apache CouchDB, so if you can't find references for Cloudant, it's usually worth also searching for CouchDB. I don't really use Django, but a quick search throws up the following references:
http://leok.me/2013/05/02/what-you-need-to-know-couchdb-django/
https://lethain.com/an-introduction-to-using-couchdb-with-django/
http://eflorenzano.com/blog/2008/11/10/using-couchdb-django/
https://djangopackages.org/grids/g/couchdb/
Most if not all solutions on the web are very outdated.
The solution used by IBM in a capstone project on Coursera was:
Use SQLite backend in your Django app
Create Cloud Functions for communicating with Cloudant
Create REST API definitions in your Django app that utilize the Cloud Functions to communicate with Cloudant
I don't know if it's the best solution, but it works. I do feel like SQLite is redundant at this point but without it, I couldn't get the app to work.

How make [Web Forms for Marketers] module works when using Sitecore Azure?

Recently, i am working on a project using Sitecore Azure.
when creating a web form, we use Web Forms for Marketers module provided by Sitecore.
It works fine in local environment. but when we publish it to Azure. it dose not work.
Because there is no database for web form in Azure.
Has anyone experienced this before, maybe you guys can help me. Thanks
Finally, i get it down.
first, you need to create a same database for WFFM as the local one Sitecore_WebForms in SQL Azure.
Here is a link tells you how to do it.
second, change the connection string in forms.config to point to the database in sql azure.
here is a example.
<formsDataProvider type="Sitecore.Forms.Data.DataProviders.WFMDataProvider,Sitecore.Forms.Core">
<param desc="connection string">Database=Sitecore_WebForms;Data Source=tcp:YOURSERVERNAME.database.windows.net,1433;user id=YOURID;password=YOURPASSWORD;Connect Timeout=60</param>
</formsDataProvider>
This is how i fix it. Hope it helps if anyone has the same problem.
Only Web Forms for Marketers (WFFM) 2.4 or higher is compatible with Sitecore Azure module. Additionally, you must use SQL Server version of WFFM database, which must be shared between all WebRole Instances. Please check the details here: https://kb.sitecore.net/articles/880886
How to add WFFM database in Sitecore Azure and automatically deploy it with entire Sitecore solution read in the following article: https://kb.sitecore.net/articles/179306
Best Wishes, Oleg

interact with cassandra in django?

I am trying to make django interact with the cassandra database. I was going through the forums and found this
Can this interact with cassandra in django? and are there any libraries that can interact with cassandra in django?
In order to use cassandra (or any other NoSql db) with django you need to have a backend which can support it. Luckily for you though, you're not the first to come up with the idea/need.
Take a look at these resources:
Django NoSql Support
django_cassandra_backend
django-nonrel
nosql-to-people
making django and nosql play nice
I haven't tried any on my own so can't say if anything is stable enough or gives an answer out of the box, but it should send you in the right direction.
Hope this helps.
The best Python client is https://github.com/pycassa/pycassa. You can easily use this from django; https://github.com/twissandra/twissandra is one example.
In my opinion the best way to use Cassandra with Django is cqlengine. It provides beautiful, django-like ORM and is really easy to use. The project seems active, last commit is from few days ago.
You can use it as is or with simple custom django database wrapper django-cassandra-engine.

Should I use google-app-engine-django or app-engine-patch or neither or something else?

Do I need either to make Django easier to use on GAE? Anyone had good or bad experience of either or any equivalent? Is there much difference between these? Which is easier to use?
Regards
Geoff
I am assuming you want to run django on app engine (otherwise using appengine API directly is the best solution).
Altho' Google App engine supports django 1.0 out of the box, django admin, auth doesn't work on it, as they are dependent on the models.
Appengine patch patches django to make the admin work even on the Bigtable API.
Appengine patch also often makes sure to work on the latest release of django.
So, again, "You should use App engine patch"
Google App Engine Patch seems to have died sometime around August 2009.
http://code.google.com/p/app-engine-patch/issues/detail?id=253
I think it depends on what exactly you want to develop.
You should use app-engine-patch if you need the Django Admin interface, otherwise google-app-engine-django should be enough.
Use Django patch if you already have django application that you know that you want to use. Remember that GAE comes with its own API/applications.