visible workflow engine with django or python? - python

Is there visible workflow engine with django or python? in front-end webpage, user could handle workflow without coding via visible workflow interface.
if have these workflow, pls recommend to me its name.
thanks a lot!

did you mean workflow patterns, like http://workflowpatterns.com/
then in python we have spiff workflow engine: https://github.com/knipknap/SpiffWorkflow
specification is created based on the Business Process Model and Notation (BPMN)

Related

Authenticate a Django/Appengine project using Firebase

I currently have google and facebook authentication for my application. I would like to add firebase-auth as the backend for my Django/appengine backend. The tutorial i followed (https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine) only show how to use it for a python Flask backend.
Does anyone know how to set up firebase in a Django backend that uses appengine?
You should follow the same logic mentioned in the tutorial that you indicated here. As per the documentation informs:
The sample app uses Flask because of its simplicity and ease of use, but the concepts and technologies explored are applicable regardless of which framework you use.
So, the concepts are the same for any framework, which should work for you using Django. Since there isn't a specific tutorial for the use of Django, I recommend you take a look at the below article, to better understand the integration of Firebase and Django, so you can implement it on your
Python Django with Google Firebase : Getting Started, Intro, Basic Configuration & Firebase Authentication #Part1
Let me know if the information helped you!

Access files and its contents in Github repository from Django using REST API

I'm fairly new to Django. Looking to access folders/files in a github repository, display file contents using REST APIs. Any suggestions/examples are really appreciated.
I'm sure there are plenty of ways to achieve this but if I were taking on your project I would begin look in to the Github API and using a background worker like Celery to scrape the data you need, using something like Requests. The worker would then store the data in some database that you have setup through Django.
Now that you have the data, I would start to build out your Django app and just access the data you need using the regular Django model methods. Having an architecture like this means that you don't need to make the calls to Githubs API while a user is requesting data from your site since it has already been populated in your database.

How to define permission sets in web application in python flask?

I am making a web applicaion in python with flask framework in which different types of users are there like admin, editior, normal user etc. So the application access is different for each. How to implement this?. After login application need to redirect to user related views . Please help to make this in a better way
There is a Flask extension Flask-RBAC which does exactly what you need:
Flask-RBAC provides a Role-based Access Control module in Flask
applications. It can help you to control different role of users to
access your website.

Django Flowchart Model

Is anyone aware of a Django app for designing and storing flowcharts in a database? After searching for variations of "Django flowcharts", I've only found flowcharts of Django's internal design, not anything about authoring or storing flowcharts in a Django webapp.
As asked in a similar question, I've found several impressive Javascript and JQuery based libraries for browser-based flowchart design, but nothing for persisting these server-side.
I wrote an app that stores and controls state machines in Django 1.2:
https://bitbucket.org/canassa/zinaflow
It uses a per-object permission model for controlling the transitions and GenericForeignKeys for attaching the state machine to any model in your application. With the per-object permissions you can assign a Django user for each transition.
Depending on what you need to do, this app might be a overkill for you. But reading the source code can give you some ideias on how to implement an app yourself.
Why couldn't you do it yourself? The behavior and presentation is already implemented in the several truly impressive JavaScript libraries you've referenced, now all that's left to be done is to store the models in the database for your favorite pick you'd like to persist through Django.
There is a library that implements Modified Preorder Tree Traversal on the model level that I'm sure would be of great use to you to store the logical relations between the flowchart elements and other presentation data, such as the coordinates, shape, it's transformations and other visual properties can be easily stored alongside.
I'm sure that if you'd give it some thought you could quickly execute it; hell it's even probable that there are many people who need the same thing, which would make it even more useful if you weren't developing it just for yourself. This seems like a good candidate for an OS Django app.
I am not aware of an existing app that does this, but if you want to start developing your own a good place to start would be exploring the code for GraphModels, a command from the excellent django-command-extensions project. It is a django manage.py extension that creates database diagrams from models using graphviz.

Can Django be used for web services?

My friend said, "Pylons is so much better for web services."
My other friend said, "You can modify Django in a way to do exactly whatever you like."
In Django, what is necessary to be modified (urls.py? models classes? settings?) in order to do "web services" with APIs and REST and versioning, etc etc.?
Yes Django can be used for web services. Check out django-piston:
A mini-framework for Django for
creating RESTful APIs.
Piston is a relatively small Django
application that lets you create
application programming interfaces
(API) for your sites.
Yes, we use it directly. We have view functions that respond to some URI's with serialized JSON or XML objects instead of pretty HTML pages.
Absolutely.
Django is in fact made to be used on server side. But first you need to understand that it is a framework.
A framework is a set of tools which get the common activities done in web development (e.g Login or Sign up module).

Categories