Questions tagged as 'django-urls'

1
answer

page not found django 2.0.2 python 3.5

I request of your wisdom and wisdom to determine the reason that you receive the famous 404 error when I try to load my web pilot in Django, the difference that I have in relation to this same topic already explained several times is that I in t...
asked by 20.02.2018 / 06:24
0
answers

how to open pdf entered into my django database?

I need help My form enters data of documents and the scanned document is attached when I want to open it to see from another form I get this error attached images     
asked by 31.10.2018 / 17:14
1
answer

Error in django urls

My file urls.py : #home/urls.py from django.urls import path, re_path from home.views import homePageView urlpatterns = [ path('',homePageView.as_view(),name='home'), re_path('activate/(?P<code_>[a-zA-Z0-9]{15})/(?P<email_&g...
asked by 30.06.2018 / 13:43
1
answer

Get MAC in Django / python from a Device that accesses a certain URL

I want to get the mac from a device when the device runs or accesses the URL: 127.0.0.1/Response, which is defined in URLs such as: url (r '^ answer $', app.views.resviewViewiew, name = 'Reply'), from uuid import getnode as get_mac def respue...
asked by 15.06.2018 / 21:10
0
answers

How can I use Form Wizard in Model Forms with django?

I want in the same template to capture 3 different forms through a step by step (steps). I did it initially with dividing the forms to capture, but I keep losing info of the first, or second step ... I was looking at something from Form Wizard i...
asked by 15.06.2018 / 16:31
1
answer

Error sending delete by ajax - Django Rest framework

I have 2 serializers: class DetalleSerializer(serializers.ModelSerializer): producto = serializers.CharField(source='producto.nombre') class Meta: model = DetalleVenta fields = ('cantidad','producto') class PedidoSer...
asked by 04.04.2018 / 02:48
0
answers

Access documents in the middle directory

I have a form that uploads several documents, but at the time of wanting to use them, I can not access them or the admin, I get an error 404, but the document is loaded to media_cdn. The project was made with django 1.10 Path of media_cdn    ...
asked by 02.03.2018 / 06:33
0
answers

How to validate the form and show the user's data?

views.py from django.shortcuts import render from django.template import loader, Context from django.core import serializers from django.views.generic import TemplateView from django.shortcuts import redirect,render_to_response from django.htt...
asked by 12.02.2018 / 22:07
1
answer

Receive pk of an object in a CreateView Django

How can I get in a CreateView the pk of an object to assign it to another that has a ForeignKey field. Model.py class Manga(models.Model): author=models.ForeignKey(settings.AUTH_USER_MODEL) title = models.CharField(max_length = 10...
asked by 12.11.2017 / 00:12
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