django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

meetings does not work out of the box #45

Closed galkinAIP closed 1 year ago

galkinAIP commented 5 years ago

Meetings app is set in base/local.py. Django admin allows to create a new meeting, but Page not found (404) is thrown for .../meetings/2019.

Copied registration.html to app/templates/meetings, no difference.

Request Method: GET

http://mimosa:9494/meetings/2019/registration/ daiquiri.meetings.views.registration


* .../meetings/2019:

Page not found (404) Request Method: GET Request URL: http://mimosa:9494/meetings/2019 Using the URLconf defined in config.urls, Django tried these URL patterns, in this order:

[name='home'] accounts/ archive/ auth/ conesearch/ contact/ files/ meetings/ api/ meetings/ /registration/ [name='registration'] meetings/ /registration/done/ [name='registration_done'] meetings/ /participants/ [name='participants'] meetings/ /contributions/ [name='contributions'] meetings/ /management/ [name='management'] meetings/ /export/participants// [name='export_participants'] meetings/ /export/abstracts/ [name='export_abstracts'] meetings/ /export/emails/ [name='export_emails'] metadata/ oai/ registry/ serve/ stats/ query/ tap/ uws/ layout/ [name='layout'] admin/ The current path, meetings/2019, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

jochenklar commented 5 years ago

I think this is a misunderstanding: .../meetings/2019 does not have any view so it will always return 404. .../meetings/2019/registration/ is the registration form. /participants/ and /contributions/ are also public if the corresponding boxes are checked in the admin interface.