Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the basics of the CMS #25

Merged
merged 3 commits into from
Sep 28, 2019
Merged

Add the basics of the CMS #25

merged 3 commits into from
Sep 28, 2019

Conversation

danniel
Copy link
Collaborator

@danniel danniel commented Sep 28, 2019

Create the basics of the CMS page system. You can create and edit pages from Django Admin (no WYSIWYG editor for now).

Published pages can be accessed on the frontend by using the slug ("url_name") generated from the title, like: http://localhost:8000/page/titlul-paginii/

Non-published pages will raise an Error 404.

@costibleotu
Copy link
Member

You should autogenerate the slug on save (see - https://docs.djangoproject.com/en/2.2/ref/utils/#django.utils.text.slugify)

@costibleotu
Copy link
Member

You should rename url_name to slug

@costibleotu costibleotu merged commit 7b57c13 into code4romania:master Sep 28, 2019
chalx pushed a commit to chalx/seismic-risc that referenced this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants