Questions tagged as 'django'

0
answers

Django 2.0.9 - Upload file and send by email

I'm new to Django and I'm creating a web environment that sends emails. I can send the email without the attachment, however I need to include attachment. I'm using the form with the FILE FIELD field, but when I send the email the following erro...
asked by 28.10.2018 / 15:27
0
answers

How can Google SingIn not log in automatically when entering the login page?

I have a login page where there is the option to login via Google SingIn to web, however I want to avoid the following behaviors: If I have already logged into the google account in the browser, when entering the site it automaticall...
asked by 23.10.2018 / 16:02
1
answer

APÍ django-storages dropbox error url pattern

I'm using the following API: link I have everything exactly configured, from the installed lib to the settings of settings.py. The lib 'storages' in INSTALLED_APPS and the three dropbox connection variables: DEFAULT_FILE_STORAGE = '...
asked by 24.11.2018 / 15:56
1
answer

Notification system [closed]

I have the following template: from django.db import models from django.utils.timezone import now # Create your models here. class Event(models.Model): name = models.CharField('nombre',max_length = 255) place = models.CharField('lugar...
asked by 04.10.2018 / 03:22
1
answer

ERROR - DJANGO 2.0.9 - TypeError: create_superuser () missing 1 required positional argument: 'email'

Can you help me with the following problem, I'm new to Django: So, I'm doing a course on the internet to set up a distance learning platform to learn about Django. I'm using the Django 2.0.9 version, I'm having trouble creating the super user...
asked by 15.10.2018 / 01:54
1
answer

How to simulate production in dev while maintaining data confidentiality?

When an error occurs in production, the programmer needs to simulate the error to correct. But I do not want the developer to have access to all production data. The solution I thought was to have a specific dump mechanism, where I generate a...
asked by 09.08.2018 / 20:15
1
answer

Django + Python how to update a table item

Speak people, I have a registration flow where in a first step except the student and then the data of the responsible, but after that I need the student to make a description and that description has to be inserted in the respective student, ho...
asked by 17.08.2018 / 15:18
0
answers

Error loading a video and creating an object in django

My role in Django will receive a video from my site, it is working normally. Then I created the function create : def create(self, request): Video.objects.create(file=request.data['file'], creator=self.request.user) retu...
asked by 07.06.2018 / 14:57
1
answer

"ArrayList" in Django

I am developing an application for the generation of reports of fiber-optic certifications, and such reports are elaborated by importing XML and TXT files. The question is this: A certification is made within an "Excerpt", which has the follo...
asked by 09.07.2018 / 23:34
1
answer

Web Crawler with Django view.py

I am doing a simple web crawler, using django 2.0, I want to capture only the "title" class of the news and then render "return render" to a simple html, below my view.py. At the moment I'm using the "Return HttpRensonse". how can I get the data...
asked by 31.05.2018 / 03:08