Questions tagged as 'django'

0
answers

Error Downloading Share Share in mega

Hi, I'm installing the necessary packages to work with sql server but Microsoft Visual C ++ Build Tools asks me to download it from this address link but when I try to access it tells me that I am restricted, I can share visual cpp build tools...
asked by 10.07.2018 / 16:08
1
answer

Create first project in Django

Hi, I need to create my first project in Django but when I execute the command to create the project I get the following error: C:\casa>django-admin startproject casa Traceback (most recent call last): File "C:\Users\Alfonso\AppData\Local\P...
asked by 08.07.2018 / 19:32
0
answers

reorder formset Django

I have a problem editing a formset that I am using to create several forms and link them to the same object. Models class Tallaje(models.Model): id = models.BigAutoField(primary_key = True) nombre = models.CharField(max_length = 20,...
asked by 11.07.2018 / 10:21
0
answers

Data entry form with Django

Someone can help me, I have the following model: class Citas2(models.Model): laboratorio = models.CharField(max_length=10, default=LABORATORIO_1, null=True) paciente = models.ForeignKey(Pacientes, on_delete=models.CASCADE) doctor =...
asked by 12.07.2018 / 17:20
2
answers

Django Do not run "django-admin.py startproject test" command

In my console I can not run that command django-admin.py startproject test how do I do it? PS: I already have Python and Django installed     
asked by 03.07.2018 / 03:45
0
answers

How to create a user for a profile in the django API

I have this in this serializer: class ProfileSerializer(serializers.HyperlinkedModelSerializer): shops = ShopListingField(read_only=False, required=False) publishers = PublisherListingField(read_only=False, required=False) profile_typ...
asked by 04.07.2018 / 09:15
0
answers

ImportError at / No module named 'django.urls'

I'm totally new to this in Python in web pages, I consulted and well, I decided to use Django as a framework, I followed a tutorial and I have come to the part of uploading it to the web, the page is called pythonanywhere , then when I try to v...
asked by 01.07.2018 / 23:01
1
answer

Problem when defining a backend.py django

I am extending the functionality of Django users and have created my own backend as follows: backends.py from home.models import Usuario class UserAuthentificacionBackend(object): def authenticate(self, username=None, password=None):...
asked by 01.07.2018 / 09:50
0
answers

How to make a redirect by passing request.POST

I am doing a purchase process in which I want the user to follow the following steps: Fill card data Validate that the data is correct Check result For them, the first function they enter is this: def proceso_compra(request, slug, t...
asked by 28.06.2018 / 11:41
0
answers

how do I restrict login to logged in users - Django (python)

urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), ] I have something like that, I do not handle something personalized. Is there a way to restrict the login view, so that it is only shown to non-logged in users?     
asked by 27.06.2018 / 03:30