Questions tagged as 'django'

1
answer

Custom Admin Django

I'm trying to change the login screen to a new custom screen, but it is not working. link I configured the settings: 'DIRS': [os.path.join(BASE_DIR, 'templates_admin')], I created folders and templates link But it is not wor...
asked by 22.02.2016 / 21:17
1
answer

Django Authentication with Legacy Database

I am developing a project with a legacy database (Firebird), and I was able to configure settings.py and it is working with the database. At the time of creating a login using forms, I am not able to create authentication with the database, a...
asked by 12.11.2014 / 19:49
1
answer

Problem with Django authentication

I'm having trouble validating login, I'm using a legacy firebird 2.5 database. Could someone help me?     
asked by 11.11.2014 / 16:18
1
answer

fetch api GET method with Django

I'm trying to do this with ajax, but it always returns form , it follows my line of code: / p> recovery-id.js: const recoveryButtom = document.querySelector('#recovery-id'); const inputs = document.querySelectorAll('input'); r...
asked by 03.12.2018 / 14:10
1
answer

Error: Deploy Python Heroku - runtime (python-3.4.0) is not available

Pesoal, all good. Can anyone help me solve the following problem: I'm doing an application in Django and now I'm in the process of doing the upload to the server. I'll send it to Heroku. I made the following commands: Creating git re...
asked by 18.11.2018 / 21:01
1
answer

How to relate a model to another model in Django 2

I'm doing a system in which I need to show data that is registered in another Model, which in this case is the Category field that is in Model Items and in showing them, the user would select one of them and the system would show the data that a...
asked by 13.11.2018 / 08:25
1
answer

Importing an HTML Table into a Database

Hello, I'm a beginner in Django and JS. I'm having a lot of work to import an HTML table into a SQL database. Can you do that? Would it be better to collect this data and import it directly through html or better with a backend? If so, how wo...
asked by 08.11.2018 / 03:52
2
answers

ELIF using not in, within a FOR

I would like to know if there is any way to refine the ELIF within a FOR, so that it does not enter in the FOR whenever the date does not exist, but rather if that date does not exist. Here's the problem: For each meeting date {%for u in...
asked by 08.11.2018 / 00:37
1
answer

Toggle bootstrap menu is not expanding

My menu with toggle-icon, being used just like the bootstrap4 sample documentation does not just expand. I tried this solution but did not change anything . Currently the code looks like this: <!DOCTYPE html> {% load staticfiles %}...
asked by 02.12.2018 / 23:11
1
answer

ADD Column - Django

How can I add a column to a table in the database using django? I tried the following migration and did not update my table: from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('api'...
asked by 18.10.2018 / 15:29