Questions tagged as 'django'

1
answer

Import CSV into the Django database

I have a database in CSV and wanted to import into my Django models, CSV has this structure: NAME,CLUB,LEAGUE,POSITION,RATING,PACE,SHOOTING,PASSING,DRIBBLING,DEFENDING,PHYSICAL,LOADDATE Tore Reginiussen,Rosenborg BK,Tippeligaen,CB,82,65,53...
asked by 24.07.2018 / 19:54
1
answer

Set a css class and render the form in django

I created the following class: from django import forms class FormDefault(forms.Form): def __init__(self, *args, **kwargs): super(FormDefault, self).__init__(*args, **kwargs) for field_name, field in self.fields.items():...
asked by 04.08.2018 / 04:59
1
answer

Django datetimefield as text

I am creating an application in django where I will have a form for creating a query schedule, my model looks like this: class Agenda(models.Model): """Criação da agenda de consultas da Clinica""" data_consulta = models.DateTimeField() pacient...
asked by 18.07.2018 / 16:49
0
answers

how to call a django application through wordpress

I have a website created in wordpress and I have an application created in django. On the site, there is an option on the menu that should call the django application. In this case, I need the django application to appear inside the site. How to...
asked by 11.07.2018 / 16:34
0
answers

Error heroku-Django

I developed a project with django, it ran normal on my internal server however, I did the deploy on heroku and when I went to open the app on the same site, I presented the following message: "An error " I checked the logs of my application and...
asked by 04.07.2018 / 17:12
0
answers

"Django celery beat" table is not filled

I started in a Django project that already had Django Celery Beat and some records of some Task's in their tables: django_celery_beat_crontabschedule django_celery_beat_intervalschedule django_celery_beat_periodictask django_celery_b...
asked by 10.07.2018 / 14:58
0
answers

Clear browser address bar without refresh in Django

Personal oops! I'm having a problem, I need to clear the URL of the browser when I sign in, I need it to place the default URL. In the image you see that the URL is / logout /, I want the login URL which is / accounts / login / VLW FOR HELP \...
asked by 05.07.2018 / 19:40
1
answer

Variable of context processors does not work with render_to_string

In some places on my system, I render a page with render_to_string , because I want to render only a small content. In these cases I do not get my variables that I created in context_processors . Does anyone have a solution other tha...
asked by 05.07.2018 / 01:00
1
answer

How to clear fields from a form in Django

I'm studying Django and I'm following a course, which is setting up a Spending Control. However I am not 100% faithful to the course, I am making some modifications. My problem is this, when I register a transaction, the form fields are not clea...
asked by 04.07.2018 / 02:38
1
answer

List_Display in Django / Python

sXDw.png My class Models are like that class Produto(models.Model): NomeRazao = models.CharField('Nome',max_length=50,unique=False,blank=False) CpfCnpj = models.IntegerField('Quantidade',blank=False) Telefone = models.Flo...
asked by 25.06.2018 / 23:26