mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 19:10:35 +00:00
Set application version number in settings
This commit is contained in:
parent
673d70aca9
commit
5623c268d6
2 changed files with 5 additions and 5 deletions
|
@ -7,6 +7,7 @@ import requests
|
|||
|
||||
env = Env()
|
||||
DOMAIN = env('DOMAIN')
|
||||
VERSION = '0.0.1'
|
||||
|
||||
PAGE_LENGTH = env('PAGE_LENGTH', 15)
|
||||
|
||||
|
@ -153,6 +154,5 @@ STATIC_ROOT = os.path.join(BASE_DIR, env('STATIC_ROOT', 'static'))
|
|||
MEDIA_URL = '/images/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, env('MEDIA_ROOT', 'images'))
|
||||
|
||||
USER_AGENT = "%s (BookWyrm/%s; +https://%s/)" % (requests.utils.default_user_agent(),
|
||||
"0.1", # TODO: change 0.1 into actual version
|
||||
DOMAIN)
|
||||
USER_AGENT = "%s (BookWyrm/%s; +https://%s/)" % (
|
||||
requests.utils.default_user_agent(), VERSION, DOMAIN)
|
||||
|
|
|
@ -6,7 +6,7 @@ from django.http import JsonResponse
|
|||
from django.utils import timezone
|
||||
|
||||
from bookwyrm import models
|
||||
from bookwyrm.settings import DOMAIN
|
||||
from bookwyrm.settings import DOMAIN, VERSION
|
||||
|
||||
|
||||
def webfinger(request):
|
||||
|
@ -76,7 +76,7 @@ def nodeinfo(request):
|
|||
'version': '2.0',
|
||||
'software': {
|
||||
'name': 'bookwyrm',
|
||||
'version': '0.0.1'
|
||||
'version': VERSION
|
||||
},
|
||||
'protocols': [
|
||||
'activitypub'
|
||||
|
|
Loading…
Reference in a new issue