Questions tagged as 'django'

0
answers

Get modal data in Django

I have a list of clients on the responsible screen, in case he presses to deny the client, opens a modal with the field Reason to fill it. I want to get what was typed in this field and save it to the Profile_Post table in the database. However,...
asked by 26.09.2017 / 14:52
1
answer

Save User Location

I'm trying to save the user's location in a database, to later generate user reports by country, state, and region. I initially downloaded databases that contained the names of all cities in the world, in multiple languages, but this left the...
asked by 02.09.2017 / 15:33
0
answers

Firebase Messaging with Django

I've been struggling for a long time. After hours and days I could see a light at the end of the tunnel. I'm using a plugin for Django, this one: link In my INDEX.HTML I have the following code: <script src="https://www.gstatic.com/...
asked by 03.10.2017 / 01:38
0
answers

Generic menu using Python, Django and tree structure

I am creating a generic menu where a parent can have 1 child and so on (tree structure) and I had a question about how to render parents in a menu and when hovering over the parent open their children laterally CurrentlyIonlyhavethiscodethat...
asked by 17.08.2017 / 17:45
2
answers

Django Rest compare user id 'sector' id with publication 'sector' id

Well, I'm messing with an API and I want it to return the content only when the user sector is the same as the publishing sector. Publications API: The user has a sector field also equal to this, and I am already getting the id of th...
asked by 11.09.2017 / 02:57
0
answers

Django MEDIA_URL is not working

Until yesterday I was working quietly on the /media/ route in DEV, and went to do a deploy for production and a production dump for my environment to match, and started to give that problem. I also had to add new features of several branc...
asked by 23.08.2017 / 19:56
0
answers

Django + Postfix password reset email is not sent

I've set up a server with my Django application and now I'm trying to enable password reset via email using postfix as an e-mail server. I started configuring my views and testing if everything was correct through Django's console email...
asked by 22.08.2017 / 16:37
1
answer

Rendering Foreign Key in Django

I am using CreateView in django and rendering my components with tweak widget would like to know if there is any way to swap this first combo option rendered form in the template {% render_field form.category class="form-control" %}...
asked by 10.07.2017 / 03:01
0
answers

Receiving user input, using Django Class Based Views

   If you need more information about the problem (urls.py, complete template code, etc.) just ask that I post, I just did not put it to not pollute the post a lot. Problem overview: Refresh the chart created in a view according to user in...
asked by 10.07.2017 / 18:56
1
answer

Can you extend the admin form for my page?

I have a form created and displayed with the admin the way I want it ... however it is a site for user registration, so the user does not have access to the admin, I want the admin form to be used outside of it . In my case the option fields...
asked by 31.07.2017 / 13:58