Skip to content

Instantly share code, notes, and snippets.

View FMFigueroa's full-sized avatar
🦀
Rustacean

Felix Figueroa FMFigueroa

🦀
Rustacean
View GitHub Profile
@FMFigueroa
FMFigueroa / Localhost config Https.txt
Last active July 19, 2021 21:52
Localhost config Https
New-SelfSignedCertificate -Subject "localhost" -TextExtension @("2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1&IPAddress=::1")
@FMFigueroa
FMFigueroa / Authenticator_Facebook.txt
Last active July 19, 2021 21:49
Authenticator_Facebook
#agregar en requirements.txt
social-auth-app-django
#agregar a installed_apps
'social_django',
#en el archivo principal de urls
path('social-auth/', include('social_django.urls', namespace="social")),
@FMFigueroa
FMFigueroa / paginator.html
Created July 8, 2021 15:23
DJANGO BOOTSTRAP PAGINATOR
{% if paginator.num_pages > 1%}
<div class="d-flex justify-content-center">
<ul class="pagination">
{% if entity.has_previous %}
<li class="page-item d-none d-sm-block"><a class="page-link" href="?page={{ entity.previous_page_number }}#pagtable">Anterior</a></li>
{% endif %}
{% for page in paginator.page_range %}
{% if forloop.last and page != entity.number and paginator.num_pages > 7 %}
{% if entity.next_page_number != paginator.num_pages%}
<li class="page-item">