mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
show base url in settings
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
import logging
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from django.conf import settings
|
||||
import plugins.plugin as plugin
|
||||
|
||||
|
||||
@ -30,6 +31,10 @@ class IntegrationPlugin(plugin.InvenTreePlugin):
|
||||
return self.urlpatterns
|
||||
return None
|
||||
|
||||
@property
|
||||
def base_url(self):
|
||||
return f'{settings.PLUGIN_URL}/{self.plugin_name()}/'
|
||||
|
||||
@property
|
||||
def urlpatterns(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user