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

TemplateSyntaxError at /en/admin/login/ when starting server #6844

Closed
edraobdu opened this issue Apr 24, 2020 · 7 comments
Closed

TemplateSyntaxError at /en/admin/login/ when starting server #6844

edraobdu opened this issue Apr 24, 2020 · 7 comments

Comments

@edraobdu
Copy link

Description

Following the installation tutorial (http://docs.django-cms.org/en/latest/introduction/01-install.html#installing-django-cms) and found a TemplateSyntaxError at /en/admin/login/ when running the server for the first time. This guy also have the same error:
https://stackoverflow.com/questions/61417238/templatesyntaxerror-at-en-admin-login-staticfiles-is-not-a-registered-tag-li

Steps to reproduce

After downloading the installer pip install djangocms-installer (new virtual environment python 3.7.3) creating a folder, and run the new project command djangocms mysite, it starts creating all the required files, creates the django project, make migrations, etc etc, after that, I run python manage.py runserver as the tutorial suggests. Go to http://127.0.0.1:8000 and get the error

Expected behaviour

Should expect to be redirected to the admin login page as the tutorial suggests:

Open http://localhost:8000/ in your browser, where you should be invited to login, and then
create a new page.

Actual behaviour

Instead I get the following error:

TemplateSyntaxError at /en/admin/login/

'staticfiles' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_style_tags
admin_tree
admin_tree_list
admin_urls
cache
cms_admin
cms_alias_tags
cms_js_tags
cms_static
cms_tags
djangocms_text_ckeditor_tags
easy_thumbnails_tags
filer_admin_tags
filer_image_tags
filer_tags
i18n
l10n
log
menu_tags
sekizai_tags
snippet_tags
static
thumbnail
tz

Additional information

Screenshot from 2020-04-24 18-08-01

Screenshot from 2020-04-24 18-07-56

@PanosTrak
Copy link

The same also happens on me!
From what i searched this looks like the {% load staticfiles %} has be changed to {% load static %} in django 3, i went to the source and replaced them where it needed and then i could login but many things was broken and got the following error:
The form could not be loaded. Please check that the server is running correctly.

@pupattan
Copy link

pupattan commented Apr 25, 2020

I am also facing this issue.
Its with the latest version 3.7.2 due to change to django 3.0
Please fix

@yakky
Copy link
Member

yakky commented Apr 25, 2020

@edraobdu @pupattan @PanosTrak we are working on a fix on djangocms-installer
A release should be available really soon

@yakky
Copy link
Member

yakky commented Apr 25, 2020

I am closing the bug here as it's a djangocms-installer one
Please followup at nephila/djangocms-installer#366

@yakky yakky closed this as completed Apr 25, 2020
@yakky
Copy link
Member

yakky commented Apr 25, 2020

Expect djangocms-installer 1.2.3 release in the next hours
Thanks all for reporting this issue

@yakky
Copy link
Member

yakky commented Apr 25, 2020

@edraobdu @pupattan @PanosTrak djangocms-installer 1.2.3 released with fix

@edraobdu
Copy link
Author

Thank you so much

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

No branches or pull requests

4 participants