Browse Source

Merge branch 'master' of git.blinkenbunt.org:blinkenbunt.org/bam

master
Fr3deric 6 years ago
parent
commit
e28131f6fd
  1. 15
      README.md
  2. BIN
      bam/static/bam/favicon.png
  3. 2
      bam/templates/bam/base.html
  4. 5
      bam/urls.py
  5. 4
      setup.py

15
README.md

@ -29,26 +29,29 @@ ln -sr bam PROJECT_NAME/bam @@ -29,26 +29,29 @@ ln -sr bam PROJECT_NAME/bam
5. Set `bam.hashers.LDAPPBKDF2PasswordHasher` as the first item of the
`PASSWORD_HASHERS` array in the project's `settings.py`.
6. Insert the configuration values described below according to your setup
6. Set `LOGIN_URL` to `/login/` and `LOGIN_REDIRECT_URL` to `/` in the
project's `settings.py`.
7. Insert the configuration values described below according to your setup
into the project's `settings.py`.
7. Append `path('', include('bam.urls')),` to the project's `urls.py`.
8. Append `path('', include('bam.urls')),` to the project's `urls.py`.
8. Initialize database:
9. Initialize database:
```
./manage.py migrate
```
9. Create a superuser account:
10. Create a superuser account:
```
./manage.py createsuperuser
```
10. Download _Pure.css_ to `bam/static/pure-min.css`.
11. Download _Pure.css_ to `bam/static/pure-min.css`.
11. Start the development server:
12. Start the development server:
```
./manage.py runserver

BIN
bam/static/bam/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

2
bam/templates/bam/base.html

@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Blinkenbunt Account Manager</title>
<link rel="shortcut icon" type="image/png" href="{% static "bam/favicon.png" %}">
<link rel="stylesheet" href="{% static "bam/pure-min.css" %}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

5
bam/urls.py

@ -7,7 +7,6 @@ from bam.forms import HashedEmailPasswordResetForm @@ -7,7 +7,6 @@ from bam.forms import HashedEmailPasswordResetForm
import django.contrib.auth.views as auth_views
urlpatterns = [
path('accounts/profile/', RedirectView.as_view(pattern_name='profile')),
path('', RedirectView.as_view(pattern_name='profile')),
path('profile/', ProfileView.as_view(), name='profile'),
@ -53,8 +52,4 @@ urlpatterns = [ @@ -53,8 +52,4 @@ urlpatterns = [
template_name='bam/password_reset_complete.html'
),
name='password_reset_complete'),
#path('password_reset_hashed/',
# PasswordResetHashedView.as_view(),
# name='password_reset_hashed'),
]

4
setup.py

@ -15,6 +15,10 @@ setup( @@ -15,6 +15,10 @@ setup(
#license='',
description='Blinkenbunt Account Manager',
long_description=README,
install_requires=[
'django>=2.2',
'python-ldap>=3.0.0',
],
url='https://git.blinkenbunt.org/blinkenbunt.org/bam',
classifiers=[
'Environment :: Web Environment',

Loading…
Cancel
Save