-
Notifications
You must be signed in to change notification settings - Fork 1
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
error: Can not get API up without using cms.urls (Headless only mode) #8
Comments
Gotcha: For hybrid mode, I have to make sure to use api first in urls: path('api/', include('djangocms_rest.urls')),
path("", include("cms.urls")), |
metaforx
changed the title
error: Can not get API up without using cms.urls , but with cms.urls i do only get root API level
error: Can not get API up without using cms.urls (Headless only mode)
Sep 13, 2024
What's your urls.py for fully headless? |
http://127.0.0.1:8080/api/en/pages
|
Ah, ok. This should work on django CMS 4.2+, on 4.1.x you'd have to have the CMS urls exposed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Django 5.0.6
Django CMS: 4.1.2
Default is English, not multi-lingual or multi-site setup
If I run headless only, I get API Overview for languages, but not for pages.
HEADLESS:
If I disable cms.urls i loose frontend edit capabilities because if I have to disable {% cms_toolbar %} in templates. It might be related.
Initially, I also got this error: Reverse for 'pages-root' not found. 'pages-root' is not a valid view function or pattern name. When creating a website for the first time.
API Return:
HYBRID: SOLVED (order of API in urls.py)
The expected result would be an API return for the test page, right?
I get standard 404 from django.
The text was updated successfully, but these errors were encountered: