Questions tagged as 'django'

2
answers

connect mysql database with django

Hi, I have my project done in django but I did it using a tutorial that used sqlite3 but I already have my database created and mysql and I want to connect, I modify the settings.py but I do not know what else to modify it: / I only have a singl...
asked by 05.11.2017 / 00:23
1
answer

Error django MultiValueDictKeyError

I have an error when updating it comes out, I have no problems when creating or deleting only when updating a record Request Method: POST Request URL: http://localhost:8000/crud/edit/update/2 Django Version: 1.11.6 Exception Type: MultiValu...
asked by 04.11.2017 / 23:34
0
answers

Django modelFieldFieldField with choices, show value instead of key

I'm working with Django 1.10.6, I'm creating a modelForm with a CharField with a choices attribute: model : class myModel(models.Model, object): ASSIGNED = 'AS' NOT_ASSIGNED = 'NA' INVALID = 'IN' MIGRATED = 'MI' S...
asked by 30.10.2017 / 19:32
0
answers

Run django application on xampp server

I've been trying to run an application django on an Apache server for days, and I can not do it, I tried mod_wsgi and mod_django.dll and with both the Apache server was cracked, some viable solution? Thanks in advance     
asked by 28.10.2017 / 21:39
1
answer

Creating a django master template

Hello my question is this, I am following this tutorial link and leave the point where you go to the templates directory and create an html file but do not know or there is not a directory of that type, check the settings.py and do not know if...
asked by 01.11.2017 / 20:08
1
answer

Error IntegrityError: NOT NULL constraint failed in Django

I want a form to add groups of clients and in turn add clients to these groups, for this I have created the field people in manytomany and using an intermediary Group_member. models.py class Grupo(models.Model): nombre_grupo...
asked by 24.10.2017 / 07:31
1
answer

Edit does not show the data in the input and select Django

Again here, I am now locked with the edit, I am sending the form with the model to the model but the input does not take the values, I have the name with the same name as in the model and nothing, I I have guided this example link , the modal t...
asked by 19.10.2017 / 17:01
1
answer

Protect with django the download of a file to a certain user in apache

I want to protect a file that resides in an apache so that it can only be downloaded if the user that is logged in is allowed. The case is that the django test server works without problems, but it had not fallen that in Apache this approach doe...
asked by 19.10.2017 / 12:09
1
answer

Django manytomany models views and templates

I have the Gammer model that is the User extension and the Competition model. many players can play a competition and a competition can have many players ( ManyToMany ) class Gammer(User): competition = models.ManyToManyField(Compet...
asked by 23.10.2017 / 23:14
1
answer

Formulate Url with return variable in Django

I am currently taking a project in django implementing the jinja2 library, which I need to perform a hyperlink that returns a variable but it is giving me an error and I am not sure if it is because of the syntax. Template: <a href="{{ u...
asked by 13.10.2017 / 14:57