Questions tagged as 'django'

0
answers

Logging request.META does not work with Django Channels + Asgi_redis

I have a custom class for logging and my settings look like this: base.py LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(levelname)s|%(asctime)s|%(mod...
asked by 01.06.2017 / 21:42
0
answers

Django Admin football game registration

Please help me. I'm learning Django. I have a site that registers some games in my city. Here is an example to understand the doubt: Championship: Holidays 2017 It has 2 groups (Group 1 and Group 2) I registered 6 teams (São Paulo, B...
asked by 25.06.2017 / 23:53
1
answer

How to implement a priority queue that still meets other requirements?

I need to implement a priority queue, this queue in addition to the priority, needs to take into account some other requirements, such as switching between services and professionals, in addition to respecting the customer's order of arrival for...
asked by 02.07.2017 / 15:46
0
answers

Python with django is giving problem when migrating a template

   C: \ Program Files Python \ mysite> python manage.py makemigrations polls   Traceback (most recent call last):     File "manage.py", line 22, in       execute_from_command_line (sys.argv)     File "C: \ Python27 \ lib \ site-packages \ django...
asked by 07.05.2017 / 21:06
2
answers

How to configure the Django environment and keep the settings?

Hello, I'm starting to learn Django and well part of the material teaches to do the setting of Environment with Virtualenv. But I'm having a lot of trouble configuring the System. First, I use a Macbook Pro with Sierra OSX. Second, I have alr...
asked by 18.05.2017 / 05:31
1
answer

How to set email as username in django

I have the following code to create a custom User: from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin,UserManager class User(AbstractBaseUser,PermissionsMixin): username = models.CharField('Nome de Usuário',max_len...
asked by 28.03.2017 / 14:11
0
answers

Invalidation of several caches efficiently in Django

In my project I have the following template: class Item(models.Model): month = models.DateField('month', null=False, blank=False, db_index=True) kg = models.BigIntegerField('kg') tags = models.ManyToManyField('Tag', related_name='i...
asked by 27.07.2017 / 02:11
1
answer

How to access data from a dynamic imput of a form with django?

I'm participating in a project where we're using django. I created a form with two initial fields and can add more dynamically using javascript. <div class="form-group"> <div class="panel-title"><b>Informe os Crit...
asked by 18.02.2017 / 20:22
0
answers

Python I can not import ReCaptchaField

There is a project that has been sent to me on which I will work on it. I created an environment to upload the project and in design I had the requeriments where I circled it. But when I run the command python manager.py runserver it is g...
asked by 01.11.2016 / 21:04
1
answer

OAuth v2 in Django 1.4

Friends, I'm studying how to implement the OAuth v2 protocol in my application. I've researched a lot here and found nothing that could solve my problem. So far I have a database in PostgreSQL and authentication with a Django middleware. I've...
asked by 11.11.2016 / 19:55