Posts by Gabriel • 105 points
12 posts
-
0
votes0
answers38
viewsQ: identation with Highlight.js
I’m having trouble indenting with Highlight.js, the code being generated by marked.js. Has anyone been through it or knows any solution? index.html: <!-- highlight.css --> <link…
-
0
votes2
answers121
viewsQ: Generate querysets from dynamically generated rules
I’d like to make a sort of filter using Django. Imagine the following case: Model: user (Name, sex, age, dia_nasciemnto, mes_nascimento, etc) Rule: Catch all users with Sex=M and Age>20 The…
-
0
votes0
answers43
viewsQ: Send attachments by for forms
People need to send attachments per form with PHP, without using plugins and things like, how do I do this ? My code currently: <?php if (isset($_POST[nome])){ $nome = $_POST[nome]; $email =…
-
0
votes3
answers507
viewsQ: Hide a div
I have two Ivs and I want one to disappear when I reach 'Md' the other to occupy the 12 columns. How can I do this with Bootstrap? <div class="container"> <div class="col"> Essa…
-
1
votes1
answer71
viewsA: What is the right way to do the template in Django/python?
You could make a base template where you would have navbar, footer, and recurring questions in other templates and use the Django templates system{% extends %} of Django to change certain parts such…
-
1
votes2
answers326
viewsA: How to use the Django User part in a model?
People who had the same doubt ta ai the solution, just import and use normally (from Django.contrib.auth.models import User) from django.db import models from django.contrib.auth.models import User…
-
2
votes2
answers326
viewsQ: How to use the Django User part in a model?
I’m blogging and the question arose, has how to use the user system of Django to make a Foreignkey in my Author variable ? from django.db import models class Category(DatastampMixin): name =…
-
0
votes1
answer692
viewsQ: Place data from a spreadsheet in Excel in the database
The database here of the company generates a report in Excel, I need to save this data in a database, initially sqlite3, to be able to display this data in a Django template in the future. Example…
-
0
votes1
answer708
viewsQ: Start a virtualenv with file . bat
I got this . bat cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\.venv\Scripts activate.bat cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\src python manage.py (comando…
-
0
votes1
answer107
viewsQ: Remove link ID when referenced with href
I have a project of a template, in his footer has a button that leads to the top of the site, when pressing it leads to the top of the site but leaves the id "#top" in the link of the site…
-
0
votes1
answer132
viewsQ: How to put html links/tags in models.Textfield
Everybody, all with you? I have a Description field and it is a Textfield, how do I format a link in it ? (make it cute) I tried to put html tags but it n accepts. py.models: description =…
-
5
votes2
answers2562
viewsQ: Static files on Django
Whoa, guys, I’m having trouble uploading static files. Static folder is in the core application, also tested with it at the root of the project and also did not take I made a test index file: {%…