port for new passerelle django.apps support (#7514)
This commit is contained in:
parent
75772b3b63
commit
986135e8bf
|
@ -14,12 +14,16 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
class Plugin(object):
|
||||
def get_apps(self):
|
||||
return [__name__]
|
||||
import django.apps
|
||||
|
||||
class AppConfig(django.apps.AppConfig):
|
||||
|
||||
name = 'passerelle_montpellier_sig'
|
||||
verbose_name = 'Montpellier GIS Connector'
|
||||
|
||||
def get_after_urls(self):
|
||||
from . import urls
|
||||
return urls.urlpatterns
|
||||
|
||||
default_app_config = 'passerelle_montpellier_sig.AppConfig'
|
||||
|
|
Loading…
Reference in New Issue