Posts by dhelbegor • 382 points
20 posts
-
1
votes1
answer40
viewsQ: Django returning to Valueerror
I am creating a project to send emails, but I am doing some tests and I came across the following problem: The view send_mail.core.views.index didn’t Return an Httpresponse Object. It returned None…
-
0
votes0
answers282
viewsQ: Create super user inside a Docker container that this used with Compose
I have a Jango project that is running with Docker-Compose, what I need to do and very simple, run python Manage.py createsuperuser, however, even setting the command via dockerfile or in . Compose…
-
2
votes2
answers186
views -
0
votes1
answer533
viewsQ: How to print page
I want to create a template for printing data but I’m a little lost on how to do this, I have a print name button, the same is found in a table that contains the customer name, telephone address etc…
-
0
votes0
answers51
views -
0
votes1
answer33
viewsA: Error while using rhc
The solution I found was the following.... gem install rubygems-update pdate_rubygems gem uninstall rhc gem install rhc and then I finally got the : rhc setup…
-
0
votes1
answer33
viewsQ: Error while using rhc
I’m getting an error when I try to use the $ rhc setup, I can not understand why of the mistake, someone can tell me why of the same and how to resolve it kindly? an excerpt that says it has not…
-
1
votes2
answers915
viewsQ: how to override save method of models
I am trying to overwrite the save method of models so that when a new book is created it is saved and exported immediately to a file. json, this would be a form of automatic backup, but when…
-
-1
votes1
answer117
viewsQ: Export data to a file . cfg
Could someone give me an example of how to export my models data by pk to a file . cfg? tried to use Mymodel.objects.get(pk=pk) but it didn’t work out so well.
-
2
votes2
answers58
viewsQ: Error using alias and read in Shellscript
I’m trying to create a command on. Ubuntu bashrc, however I’m having a problem, I’m trying to create a folder with the variable typed when calling the alias, but it’s giving error. When I open the…
-
0
votes1
answer514
viewsQ: How to work with Updateview and Forms in the template
I’m trying to render a client’s data in the template, but I’d like to do it without using it {{ form.as_p }} or {{ form.as_table }} I would like to know if you have any way of using the id of the…
-
1
votes2
answers772
viewsA: Django and Template
Sara, you don’t need to override, apparently it’s all right, only inside your Settings.py, delete the template_dirs line: TEMPLATE_DIRS = ( os.path.join(BASE_DIR, 'web/templates'), ) why? well, as…
-
0
votes1
answer239
viewsA: Error using glyphicon with bootstrap-Sass
I managed to solve my problem using as a base a comment just above, I just overwritten the path of the face font, so it was like this: @import…
-
2
votes1
answer239
viewsQ: Error using glyphicon with bootstrap-Sass
Good afternoon, I’m trying to work with bootstrap-sass and sass, However, by including an icon in my class, nothing happens. Below follows the line of code that represents the same, I wonder if I…
-
1
votes2
answers23393
viewsA: How to install numpy and other modules?
First to install the pygame there is no need to do it using the Pip because it can be downloaded via official website here, download the version using the option recommended by the site itself, ie…
-
1
votes2
answers2221
viewsA: Dynamically change label value
Ola Wag could try as follows also: import tkMessageBox def Open(): text_contents = text.get() url = str(socket.gethostbyname( text.get() )) if url != '0.0.0.0': webbrowser.open("http://%s" %url)…
-
2
votes1
answer87
viewsQ: python font error 2x
I am trying to create separate fonts for my project in a particular.py file, after creating them I care for the.py project, I do it this way as follows: py. """ Criando as fontes. """ def…
-
5
votes1
answer1266
viewsQ: Help Tables python27
Good Morning, I’m new with Python/Tkinter and I have some projects in mind, but all of them have use of tables along with them, could anyone tell me if there is a library I could use to create these…
-
1
votes2
answers7019
viewsA: Tkinter focus a window ignoring the back?
I managed to solve my problem as follows... note that when opening the window by clicking on open the open window becomes the focus and there is no way to touch the back on how much not to close it!…
-
7
votes2
answers7019
viewsQ: Tkinter focus a window ignoring the back?
In my code there is a frame with a button and it is called "Open", when clicking "Open" another window will appear. The problem is that if I click on the window that this "Open" button again, it…