Posts by Guilherme Henrique • 23 points
7 posts
-
1
votes0
answers33
viewsQ: Write PC screen to Ruby
I need to create a Cucumber report with video and for that I need to know if there is a Ruby Gem that saves the PC screen.
-
0
votes1
answer196
viewsQ: Problem with Celery and Django/Python
I am trying to implement a tasks system with Celery in Django, but it is giving error and I do not know how to solve... Error that appears on console: tasks py. from __future__ import…
-
0
votes2
answers368
viewsA: Django Rest compare user 'sector' id with publication 'sector' id
Well, I found the solution in a different way,: ps: I also put an OR condition to search for the 'General' sector, which should appear for all users from django.db.models import Q class…
-
0
votes2
answers712
viewsA: Rename application in Django Admin
Place your application inside INSTALLED_APPS, the rest is correct!! INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions',…
-
1
votes2
answers368
viewsQ: Django Rest compare user 'sector' id with publication 'sector' id
Well, I’m messing with an API and I want it to return content only when the user sector is equal to the publishing sector API for publications: The user has a sector field also equal to this, and…
-
0
votes1
answer1564
viewsQ: How to use token to validate a Django Rest Framework user login
Hello, I’m a little lost when authenticating a user by Django-Rest-framework, I was following the tutorial of the channel Codingentrepreneurs in the video 32 of the Blog API…
-
0
votes2
answers186
viewsA: Django Rest and Angularjs Cors error
Install Cors on Django: pip install django-cors-headers Then in Settings.py put in your apps: INSTALLED_APPS = [ .............. 'corsheaders', ] And last still in Settings.py : CORS_ORIGIN_ALLOW_ALL…