Code Monkey home page Code Monkey logo

cookbook's Issues

Column title for composite key

It would be nice if CompositeKey column names refer to model fields instead of database column names. In a legacy database name could be far from today standars. When I tried to use I had to use real column name in CompositeKey, if I use my "new" model name (Django standard) it complains because the column doesn't exist. So I used database column name in model name which makes less clear my code because I'm referring to a related entity by its foreign key instead of my "pretty Django" name.

Not able to install django-viewflow-pro==1.4.1

I cloned the respository. And run pip install -r requirements.txt , but it gives me error
ERROR: Could not find a version that satisfies the requirement django-viewflow-pro==1.4.1 (from versions: none)
ERROR: No matching distribution found for django-viewflow-pro==1.4.1

How to use viewflo-pro?

Migrate workflow101: AttributeError: module 'subprocess' has no attribute 'PIPE'

Hi,
I'm just trying to follow the README of workflow101's cookbook to run it

Traceback (most recent call last):
  File "/home/simco-dev/cookbook/workflow101/manage.py", line 14, in <module>
    from django.core.management import execute_from_command_line
  File "/home/simco-dev/cookbook/workflow101/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 17, in <module>
    from django.conf import settings
  File "/home/simco-dev/cookbook/workflow101/venv/lib/python3.10/site-packages/django/conf/__init__.py", line 19, in <module>
    from django.utils.deprecation import RemovedInDjango60Warning
  File "/home/simco-dev/cookbook/workflow101/venv/lib/python3.10/site-packages/django/utils/deprecation.py", line 4, in <module>
    from asgiref.sync import iscoroutinefunction, markcoroutinefunction, sync_to_async
  File "/home/simco-dev/cookbook/workflow101/venv/lib/python3.10/site-packages/asgiref/sync.py", line 1, in <module>
    import asyncio
  File "/usr/lib/python3.10/asyncio/__init__.py", line 8, in <module>
    from .base_events import *
  File "/usr/lib/python3.10/asyncio/base_events.py", line 40, in <module>
    from . import events
  File "/usr/lib/python3.10/asyncio/events.py", line 204, in <module>
    class AbstractEventLoop:
  File "/usr/lib/python3.10/asyncio/events.py", line 499, in AbstractEventLoop
    stdin=subprocess.PIPE,
AttributeError: module 'subprocess' has no attribute 'PIPE'

Middleware clean-up error introduced

First, I really appreciate your work on this! That said, I'm very new to JS and know very little about securing logins, but on your last push, when line 20 was added to middleware.js, postponedRSAAs = [] attempts to reallocate a constant array...and fails when compiled. Although slightly slower, I think that this can be avoided with postponedRSAAs.length = 0

Get flow in shell?

Thanks to author project for this beautiful and helpful app, but I'm a novice and all work fine from demo frontend and nothing from the django code...so I kindly ask you: how the flow can be managed without frontend:

x, created =TestProcess.objects.get_or_create()
Out[1]: (<TestProcess: <Process 19> - NEW>, True)

The process exist

In [12]: x.status
Out[12]: 'NEW'

the status is correct

x.task_set.exists
Out[23]: <bound method BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_method of <django.db.models.fields.related_descriptors.create_reverse_many_to_one_manager.<locals>.RelatedManager object at 0x7f0d917c1438>>

In my flow I've put:

class HellxoWorldFlow(Flow):
    start = (
        flow.Start(
            flow_views.CreateProcessView,
            fields=['text', 'wo_rif'],
            task_title=_('Start'))
        .Permission(auto_create=True)
        .Next(this.secondstep)
    )

but x.flow_class seems to be '', and a "x.next_flow_step" doesn't exist, how can I get the next step for this process?
Thanks, BR

cookbook helloworld requirement install failure

pip install -r requirements.txt 
Collecting pytz (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting django~=2.2 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/2b/b2/eb6230a30a5cc3a71b4df733de95c1a888e098e60b5e233703936f9c4dad/Django-2.2.10-py3-none-any.whl
Collecting django-material-pro<2.0 (from -r requirements.txt (line 3))
  Could not find a version that satisfies the requirement django-material-pro<2.0 (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for django-material-pro<2.0 (from -r requirements.txt (line 3))

Action on_delete needed

In the Blood Test model (model.py) classes BloodSample, Biochemistry, TumorMarkers, Hormones, BloodTestProcess require a second argument on_delete = for ForeignKey() and OneToOneField() functions

Issue with import storage from 'redux-persist/es/storage'

Hello!
I'm new to React\Redux and I encountered with the problem. I try to follow the Django+React article in my project and get an error. The only presence of that import storage in store.js is enough to get the error.
The example in your repo works just fine, but I can not find the difference between your example and my code. I am using Webpack however.
Here's the error:
VM6423:1 Uncaught SyntaxError: Unexpected identifier at Object.<anonymous> (bundle.js:126) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:10:16) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:43:27) at eval (eval at <anonymous> (bundle.js:109), <anonymous>:44:30) at Object.<anonymous> (bundle.js:109) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:108), <anonymous>:21:23)

Here's my webpack.config.js, just in case: https://pastebin.com/q2yye7jy
And here's my dependencies: https://pastebin.com/KuAuw5qD

cookbook react_ui backend requirements error

ERROR

ERROR: Invalid requirement: 'pyaml=3.13' (from line 4 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
ModuleNotFoundError: No module named 'celery'

django==2.1.2
djangorestframework==3.9.0
django-rest-swagger==2.2.0
was pyaml=3.13 change to pyaml==3.13
django-viewflow-pro==1.4.1
django-material-pro==1.4.1
added celery

Feature Request: Logout functionality in redux-jwt-auth

So, I can login and obtain tokens. Any suggestions on how to implement logout functionality?
I think logout can be achieved by deleting the tokens from localStorage, but is there any cleaner way to do the same?

I have followed the this medium article.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.