Thuenen-GeoNode-Development / thuenen_atlas

The Thünen Atlas GeoNode project
1 stars 0 forks source link

add urls to urls.py #12

Closed gannebamm closed 6 months ago

gannebamm commented 7 months ago

I need to add two urls to urls.py for rendering the legal notice and accessibility htmls. See:

https://atlas.thuenen.de/accessibility/ https://atlas.thuenen.de/legal_notice/

in our old geonode fork based instance I have added those lines to urls.py ():

    url(r'^legal_notice/$',
        TemplateView.as_view(template_name='legal-notice.html'),
        name='legal-notice'),
    url(r'^accessibility/$',
        TemplateView.as_view(template_name='accessibility.html'),
        name='accessibility'),

How would I accomplish such task with geonode-project? I have found this but it is still not clear how to change / add in our project based setup.

https://stackoverflow.com/questions/23614960/add-urls-from-a-django-app

I likely have to create a urls.py in geonode/geonode (https://github.com/Thuenen-GeoNode-Development/thuenen_atlas/tree/thuenen_4.x/geonode/geonode) next to settings_override.py?

ridoo commented 7 months ago

@gannebamm did you try to add this urls.py in the apps/thuenen_app contrib module? Alternatively, you could try to add the code snippet to the __init__.py file under the run_setup_hooks method.

gannebamm commented 6 months ago

closed by 572606cd7da7e938f9cff9cba7bc713545c90f17