You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure, but the event.title attribute is not unique, so we will have to add a unique slug field. Then we can call the slug in the URL. We aren't working with thap app at the moment, so pull requests are very welcome.
TO DO:
Add slug field
Create a datamigration, which generates unique slugs from the event's title
Add functions to auto-generate slugs on event creation, if no custom slug has been set
Prepopulate fields in admin.py
Then URLs should look like http://localhost:8000/calendar/party-all-night-vol-two and for a second event with the same title http://localhost:8000/calendar/party-all-night-vol-two-2.
I think there should be a possible more friendly URL for users as domain.com/calendarium/event-name
Is there any way to implement this method?
The text was updated successfully, but these errors were encountered: