Scaffold Django project and add first-run auth flow

Sets up the Evection project structure: split settings supporting both
SQLite and PostgreSQL via DATABASE_URL, Celery+Redis wiring, and the
planned app layout (accounts, feeds, articles, rules, search, reader,
pwa, core). Implements multi-user auth with a FreshRSS-style first-run
setup wizard, login/logout, and admin-only user management, covered by
automated tests.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ksmithandClaude Sonnet 5 committed 2026-10-30 15:56:58 -06:00
1 parent 986206fe40
commit c635cd9330
84 files changed
+897

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}Create user — Evection{% endblock %}
{% block content %}
<h1>Create user</h1>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Create</button>
</form>
{% endblock %}
+10
View File
@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}Log in — Evection{% endblock %}
{% block content %}
<h1>Log in</h1>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Log in</button>
</form>
{% endblock %}
+11
View File
@@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block title %}Manage users — Evection{% endblock %}
{% block content %}
<h1>Users</h1>
<p><a href="{% url 'accounts:create_user' %}">Create user</a></p>
<ul>
{% for user in users %}
<li>{{ user.username }}{% if user.is_staff %} (admin){% endif %}{% if not user.is_active %} (disabled){% endif %}</li>
{% endfor %}
</ul>
{% endblock %}
+11
View File
@@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block title %}Set up Evection{% endblock %}
{% block content %}
<h1>Welcome to Evection</h1>
<p>Create the first admin account for this instance.</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Create admin account</button>
</form>
{% endblock %}
+22
View File
@@ -0,0 +1,22 @@
{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Evection{% endblock %}</title>
<link rel="stylesheet" href="{% static 'css/base.css' %}">
</head>
<body>
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li class="message message-{{ message.tags }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block title %}Stream — Evection{% endblock %}
{% block content %}
<h1>Your stream</h1>
<p>No feeds yet. The reading UI lands in a later milestone.</p>
<p><a href="{% url 'accounts:logout' %}">Log out</a></p>
{% endblock %}