UmSenhorQualquer/pyforms-web

Can't run the first app

Opened this issue · 3 comments

wegel commented

Hi,

When I follow the instructions at https://pyforms-web.readthedocs.io/en/v4/getting-started/first-app.html and I hit http://localhost:8000, I still get the Pyforms demo app. What I'm I doing wrong? The structure is:

.
├── db.sqlite3
├── local_settings.py
├── lockfile.txt
├── manage.py
├── module
│   ├── apps
│   │   ├── __init__.py
│   │   └── site_crawl.py
│   ├── __init__.py
└── FirstProject
    ├── __init__.py
    ├── settings.py
    ├── urls.py
    └── wsgi.py

Also, I'm getting this when I hit http://localhost:8000, is it normal?

System check identified no issues (0 silenced).
March 17, 2019 - 06:51:24
Django version 2.1.7, using settings 'FirstProject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Performing system checks...

System check identified no issues (0 silenced).
March 17, 2019 - 06:51:50
Django version 2.1.7, using settings 'FirstProject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
  File "/project/venv/lib/python3.6/site-packages/orquestra/apps_manager.py", line 66, in search_4_plugins
    apps_module = __import__( apss_modulename, fromlist=[''] )
ModuleNotFoundError: No module named 'pyforms_web.web.apps'
Traceback (most recent call last):
  File "/project/venv/lib/python3.6/site-packages/orquestra/apps_manager.py", line 66, in search_4_plugins
    apps_module = __import__( apss_modulename, fromlist=[''] )
ModuleNotFoundError: No module named 'jfu.apps'
Traceback (most recent call last):
  File "/project/venv/lib/python3.6/site-packages/orquestra/apps_manager.py", line 66, in search_4_plugins
    apps_module = __import__( apss_modulename, fromlist=[''] )
ModuleNotFoundError: No module named 'sorl.thumbnail.apps'
[17/Mar/2019 06:51:55] "GET / HTTP/1.1" 200 1322

Having the same problem. I'm salivating here trying to get this to work and not have to deal with frontend web stuff and just write python code, but I'm embarrassingly stuck at level 0. I opened a StackOverflow question, but no takers yet. :(

[]https://stackoverflow.com/questions/55284804/pyforms-web-sample-now-working-only-djangos-default-site-showing-up

I managed to make it work putting the widget in the apps.py of my module, instead of the apps folder - I`m not and expert, just spent the whole day debugging it, so I dont know if it will work as expected

Sigh.... any support would be appreciated. cant get it to work either. the library seems promising though!