django_jsonforms are not displayed in the browser

78 views Asked by At

I want to run a ready python project in virtual environment. When I run the project I face no error. And when I write this in the terminal "py manage.py runserver" , I can see just a label of the project in the browser and forms are not being shown. I searched a lot, this project is almost complete and is working in other systems. I don't know what changes I should apply to the project.

2

There are 2 answers

0
aida jbigloo On

By using this setting I could solve the problem.

STATIC_URL = '/static/'
# STATIC_ROOT = os.path.join(BASE_DIR, "static")
# STATIC_DIR = os.path.join(BASE_DIR, "static")
STATICFILES_DIRS = [
 os.path.join(BASE_DIR, "static"),
]
DEBUG = True
0
Abdolahi On

I also faced the same problem.

Because I had not executed the python manage.py collectstatic command after installing django_jsonform, the form that should have been displayed by django_jsonform was not displayed.

After activating the virtualenv, run the python manage.py collectstatic command.