Questions tagged as 'django'

1
answer

Insert attributes in all fields in a ModelForm Django 1.8

Hello friends, I'm having a problem with a modelForm in django 1.8, the code is as follows: class TrabajoForm(forms.ModelForm): class Meta: model = Trabajo exclude = ['fecha_solicitud', 'revisado'] def __init__(self, *...
asked by 24.07.2016 / 18:59
2
answers

Change the administrator interface of Django 1.9

I want to access my custom administration interface in Django and disable the default admin I have my own custom form to login. I would like that at the time of login, access my own personalized administration site. I do not want to use...
asked by 14.04.2016 / 17:32
1
answer

Help with ajax and Django 1.9

I find myself doing a search engine with ajax and django that throws me results as soon as I write a word in the search engine but I have not been successful. supposedly I already have everything. in the console shows me this when I do a sear...
asked by 26.04.2016 / 03:43
1
answer

Error loading static folder in django with heroku

Good afternoon everyone, I present a problem regarding that you already configure the django application, so that it runs on heroku, this step is already achieved, but when you load the page, it does not load everything that contains the static...
asked by 30.03.2016 / 21:55
1
answer

error when starting pycharm. project configuration

When I open pycharm it always opens in the last project I was working on, how can I make it open when I open it in the first screen where you ask me if I open one of my projects or create a new one?     
asked by 23.11.2018 / 13:59
3
answers

Problem csrf_token generated models admin

As I can put {% csrf_token %} to the forms that I generate in the Django admin, I have this problem about these forms and I do not know how to edit them because I have consulted and the solution is to put {% csrf_token %} in the fo...
asked by 15.12.2015 / 20:27
1
answer

switch case JavaScript: Variable Django is not recognized

I have a function that makes a switch case to select a specific time for a certain element. The problem is that the cases are generated based on the number of elements in the database using the ID as the case number. example: swicth(---meto...
asked by 23.09.2017 / 04:30
1
answer

can explain me the methods get_context_data and get_queryset [closed]

I would like to get an explanation explicit enough, the documentation with django is excellent but in some cases a bit confusing, I would like to know how to use both methods and a practical case if possible. Thanks     
asked by 24.04.2018 / 06:44
1
answer

Migrate Django project from one PC to another

Hello first of all, greetings and thanks for your interest, I have the following problem; I have developed a basic django project but I want to pass it from my pc to another new pc that I have bought and I do not know if I do the same as when I...
asked by 29.10.2018 / 22:57
1
answer

Form that tells me what is the value of transportation with DJANGO. when selecting the school and the place where I live, I see the rate (value)

] 3 Form that tells me what is the value of transportation with DJANGO. when selecting the school and the place where you live, I see the rate (value)     
asked by 29.10.2018 / 21:31