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

Using the example project #42

Closed
dgleba opened this issue May 14, 2024 · 1 comment
Closed

Using the example project #42

dgleba opened this issue May 14, 2024 · 1 comment

Comments

@dgleba
Copy link

dgleba commented May 14, 2024

I follow the instructions here: https://github.com/fle/django-jsignature?tab=readme-ov-file#example-project
I altered the commands a bit for windows. I did the following.

d:
cd D:\code\pyprj\jsig\
git clone https://github.com/fle/django-jsignature.git
cd django-jsignature
python -m venv venv
.\venv\Scripts\activate.bat
rem      source venv/bin/activate
pip install -r requirements.txt
pip install -e .
cd example_project
python manage.py migrate

I have looked at #17 and #41, but I don't think they cover this situation.

I get the following error.

(venv) d:\code\pyprj\jsig\django-jsignature\example_project>python manage.py migrate
Traceback (most recent call last):
  File "d:\code\pyprj\jsig\django-jsignature\example_project\manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\prg\python128\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "C:\prg\python128\Lib\site-packages\django\core\management\__init__.py", line 416, in execute
    django.setup()
  File "C:\prg\python128\Lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\prg\python128\Lib\site-packages\django\apps\registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\prg\python128\Lib\site-packages\django\apps\config.py", line 193, in create
    import_module(entry)
  File "C:\prg\python128\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'example_project'
(venv) d:\code\pyprj\jsig\django-jsignature\example_project>

I believe I have followed the instructions. Should that work, or am I doing something wrong?

@dgleba
Copy link
Author

dgleba commented May 26, 2024

Since I could not get it working as is, I created a new project and app using the standard tools - startproject - new app using startapp.

I copied the code over piece by piece and got it working.

@dgleba dgleba closed this as completed May 26, 2024
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

1 participant