Compare commits

...

8 Commits

  1. 15
      CHANGELOG.md
  2. 3
      MANIFEST.in
  3. 15
      README.md
  4. 0
      bam/management/__init__.py
  5. 0
      bam/management/commands/__init__.py
  6. BIN
      bam/static/bam/favicon.png
  7. 2
      bam/templates/bam/base.html
  8. 5
      bam/urls.py
  9. 6
      setup.py

15
CHANGELOG.md

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
# bam - Changelog
## [Unreleased]
## 1.0.1
### Added
* Favicon
* Page title
### Fixed
* Improved packaging (added missing files, dependencies)
* Include instructions for login url configuration
## 1.0.0
Initial release

3
MANIFEST.in

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
include README.md
recursive-include bam/static *
recursive-include bam/templates *

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

0
bam/management/__init__.py

0
bam/management/commands/__init__.py

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'),
]

6
setup.py

@ -9,12 +9,16 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) @@ -9,12 +9,16 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='bam',
version='1.0.0',
version='1.0.1',
packages=find_packages(),
include_package_data=True,
#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