Questions tagged as 'django'

0
answers

Move the date with Jquery from a datatimeField generated with Django

I have a view that has a datetimepicker that I generate with Django such that: class una(forms.Form): start_edited_date = forms.DateTimeField(label="Fecha inicio", widget=DateTimeWidget(usel10n=True, bootstrap_version=3), required=False) end_e...
asked by 06.02.2018 / 19:23
1
answer

Save related forms Django

At first I wanted to make a dynamic form in Django, but I found it impossible using only Django ... so now I decided to create several forms from their own Form and render them in different but consecutive templates, my question is how can I sav...
asked by 24.01.2018 / 20:12
1
answer

how would I do to know if a field of a model in django has been updated?

I have a model in Django in which I need to validate if a specific field has been updated, based on that I will perform an action, I would appreciate your help. the field that I want to validate is to assign, I just need to capture its value to...
asked by 25.01.2018 / 17:01
1
answer

Reverse_lazy parameter in Django

class CrearClienti(CreateView): template_name = 'clienti.html' form_class = RegCliModelForm success_url = reverse_lazy('clienti:crear_clienti') I get this error 'clienti' is not a registered namespace I'm trying to work wit...
asked by 23.01.2018 / 11:47
1
answer

Correct use "related_name" in Django

I surely have not formulated the question correctly, I explain what the problem is. I have in the model: models.py class Muro(models.Model): tema = models.ForeignKey(Tematica, on_delete=models.CASCADE, verbose_na...
asked by 22.01.2018 / 21:42
2
answers

Extend the Django model

The problem I have not to extend Django's model is that I need to create more than one type of user in particular two Student and Teacher each with attributes in common but with others own of each one, someone could give me some idea or example....
asked by 23.01.2018 / 01:02
0
answers

Can not I change language in Django?

I'm trying to create a page in which you can change the language through a select, I followed a tutorial and just when I thought I had achieved it, I realize that nothing happens when doing the post. This is what I have in settings.py: # SE...
asked by 17.01.2018 / 08:00
0
answers

does not load the template in django 1.11.8

Good morning to all, the end of this message is for you can help me find the error because I do not load a template removing the 404 error: Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/manager/panel/notici...
asked by 09.01.2018 / 20:06
0
answers

How to get an email and password encrypted in django url?

Good afternoon dear stackoverflow friends. I know how I can take a email and encrypted password from a url in django thanks. url.py path('validate_email/<slug:username>/(?P<slug:email>[\w-@]+)/<slug:password>', views.va...
asked by 02.01.2018 / 04:24
1
answer

Access web django through Moodle

I'm trying to access my Django application through Moodle, I've been reviewing 3 ways: External Tool (LTI) External Database Connection URL The simplest I have found is through the URL resource, but the problem is that it is very inse...
asked by 06.01.2018 / 21:03