Skip to content

Instantly share code, notes, and snippets.

View josylad's full-sized avatar
👨‍💻
Building the Future!

Joseph Adediji josylad

👨‍💻
Building the Future!
View GitHub Profile
@josylad
josylad / DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Created October 3, 2019 08:14 — forked from newtonkiragu/DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Deploying Django Applications to heoroku

How to Deploy Django Applications on Heroku

Install heroku CLI

Sign up to Heroku.

Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps

After installing the Heroku Toolbelt, open a terminal and login to your account:

@maraujop
maraujop / date.html
Last active October 9, 2021 19:56
Datepicker template for django-crispy-forms
{% load crispy_forms_field %}
<div id="div_{{ field.auto_id }}" class="control-group{% if form_show_errors and field.errors %} error{% endif %} {% if field.field.widget.attrs.class %} {{ field.field.widget.attrs.class }}{% endif %}">
{% if field.label %}
<label for="{{ field.id_for_label }}" class="control-label {% if field.field.required %}requiredField{% endif %}">
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
</label>
{% endif %}