port for new passerelle django.apps support (#7514)

This commit is contained in:
Serghei Mihai 2015-06-15 16:16:50 +02:00
parent 75772b3b63
commit 986135e8bf
1 changed files with 8 additions and 4 deletions

View File

@ -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'