Questions tagged as 'django'

1
answer

How to remove elements placed by django (1.7.5) in the template

Well I'm creating my project template in django 1.7.5 (I have reasons to use this version and I can not change it) but django insists on putting these polka dots, and as it was generated by django I do not know how to remove I'm learning)...
asked by 09.08.2016 / 16:06
1
answer

Problem with urls and views inside the server

I was studying python and django, and I decided to make my wedding website in django. The project runs perfectly on my local pc, the problem is when I deploy to digital ocean and it gives this error here. The admin works right. The prob...
asked by 10.08.2016 / 14:15
1
answer

Error updating form with ImageField [closed]

Registering a new record with uploaded saves normally, but updating shows the following error: I gave a print in the var picture and when I register a new sample image.png, but when updating it will be directory / image.png.     
asked by 09.09.2016 / 12:32
0
answers

How to edit files and compile them in Python + Django

I edited a .py file, compiled the same but says I am not allowed. [Error 13] Permission denied: 'models.pyc'     
asked by 23.08.2016 / 18:44
1
answer

Grouping only the first item in ManyToMany in Django

I have two tables: Author and Book where Book has an author = ManyToManyField Look at the examples with A1 (author one) and L1 (book one), and so on. Author - Book A1 - L1, L2, L3 A2 - L1 A1 - L3 A1 - L1 A1 - L1 A2 - L2, L3 A1 - L...
asked by 19.07.2016 / 16:51
0
answers

Server 500 error reverse openshif with django

I deployed an application in openshift and basically the same is a crud, what happens, whenever I try to register a new client the server returns me "server error 500", can someone tell me why this error? , I'm finding that the problem may be du...
asked by 03.05.2016 / 02:28
1
answer

How to print page

I want to create a template for printing data but I'm kind of lost in how to do this, I have a print name button, it's in a table that contains the customer's name, phone number, in it it should take the id of this client and the data of the sam...
asked by 10.05.2016 / 00:52
1
answer

Returning get_status_display on json (Django)

I created an Issue. link I made a chart using Morris JS link Question:HowdoIreturnget_status_displayinjson?importjsonfromdjango.db.modelsimportCountfromdjango.core.serializers.jsonimportDjangoJSONEncoderfromdjango.httpimportHttp...
asked by 03.04.2016 / 01:47
0
answers

Error migrates: TypeError: Required argument 'year' (pos 1) not found

I'm having difficulty executing python manage.py migrate , until I get to create the tables more at the end I get the following error:    TypeError: Required argument 'year' (pos 1) not found Can anyone help me?     
asked by 28.03.2016 / 20:12
0
answers

Exporting data to a .cfg file

Can anyone give me an example of how to export the data from my models by pk to a .cfg file? I tried to use Mymodel.objects.get(pk=pk) but it did not work very well.     
asked by 18.03.2016 / 00:18