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

My page cannot be rendered #166

Open
HanchuQin opened this issue Mar 11, 2025 · 3 comments
Open

My page cannot be rendered #166

HanchuQin opened this issue Mar 11, 2025 · 3 comments

Comments

@HanchuQin
Copy link

Image

When I started the project as required, the page couldn't look as beautiful as the preview image in Readme.md, but rather had such an ugly interface. May I ask what I should do?

@DjangoCRM
Copy link
Owner

If you are running CRM on a web server, such as Apache, you will need to collect static files (css, js) into the "static" directory. Run:

python manage.py collectstatic

or

python manage.py collectstatic --settings=webcrm.local_settings

@HanchuQin
Copy link
Author

Image
I have the static files , but 404

@DjangoCRM
Copy link
Owner

I see you are running CRM using a development server.
In this case, the DEBUG setting (in the file settings.py or local_settings.py) should always be True.
Otherwise, static files will not be served by this server.
If False, it is assumed that static files are served by an external server (such as Apache).

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

2 participants