mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 10:12:56 +00:00
✨ Features: - Complete Django project with authentication - Email/password and social login (Google, Facebook) - Role-based access control (admin, staff, user) - Docker and Docker Compose setup - Production-ready configuration - Static file handling with WhiteNoise - PostgreSQL database integration - Comprehensive documentation - GitHub CI/CD workflows - Dokploy deployment configuration 🚀 Ready for deployment on Dokploy, Heroku, Railway, and other platforms
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
{% extends 'base.html' %}
|
|
{% load socialaccount %}
|
|
|
|
{% block title %}Login - Django Boilerplate{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="mb-0">Login to Your Account</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<button type="submit" class="btn btn-primary">Login</button>
|
|
</form>
|
|
|
|
<hr class="my-4">
|
|
|
|
<div class="text-center">
|
|
<h6>Or login with:</h6>
|
|
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
|
|
<a href="{% provider_login_url 'google' %}" class="btn btn-outline-danger">
|
|
Google
|
|
</a>
|
|
<a href="{% provider_login_url 'facebook' %}" class="btn btn-outline-primary">
|
|
Facebook
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="my-4">
|
|
|
|
<div class="text-center">
|
|
<p>
|
|
Don't have an account?
|
|
<a href="{% url 'account_signup' %}">Sign up here</a>
|
|
</p>
|
|
<p>
|
|
<a href="{% url 'account_reset_password' %}">Forgot your password?</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |