![]() Run though the wizard, (don't worry, it will not find Django as a framework, so that's expected).Setup your project using the File->New (from existing sources).Maybe one day someone at Jetbrains will actually try and test this very common use case and realize how bad it really is and fix it. Terrible answer (and user experience), I agree, and more of a work around than an answer but it seems to work pretty much every time. What I've found is that you can manually add a facet in order to force Intellij to think it's been setup already. Seems like nobody at Jetbrains has ever used IntelliJ with the pycharm plugin on a Django project that they downloaded from Github? Not sure how that works. This issue dates back further than a year, this was just my attempt to scream about it. I've been spending way too much time fighting with this to just get it to do something it advertises it can do and the documentation is wrong and no help at all. How do I fix this? How do I get this work? What can I do? How can I elevate this issue with your engineers to actually have someone look into this? When is this going to be fixed since I can find people having issues since at least 2013? This is a major for me. ![]() As a paying user of several years, I find this to be a terrible user experience. When running Django from the command line, I do not get this error. Return _bootstrap._gcd_import(name, package, level)įile "", line 956, in _find_and_load_unlocked Mod = importlib.import_module(self.SETTINGS_MODULE)įile "/home/craig/projects/django/venv/lib/python3.5/importlib/_init_.py", line 126, in import_module Self._wrapped = Settings(settings_module)įile "/home/craig/projects/django/venv/lib/python3.5/site-packages/django/conf/_init_.py", line 110, in _init_ Pydev_imports.execfile(file, globals, locals) # execute the scriptįile "/home/craig/.IntelliJIdea2017.1/config/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfileĮxec(compile(contents "\n", file, 'exec'), glob, loc)įile "/home/craig/projects/django/venv/bin/django-admin.py", line 5, in įile "/home/craig/projects/django/venv/lib/python3.5/site-packages/django/core/management/_init_.py", line 363, in execute_from_command_lineįile "/home/craig/projects/django/venv/lib/python3.5/site-packages/django/core/management/_init_.py", line 307, in executeįile "/home/craig/projects/django/venv/lib/python3.5/site-packages/django/conf/_init_.py", line 56, in _getattr_įile "/home/craig/projects/django/venv/lib/python3.5/site-packages/django/conf/_init_.py", line 41, in _setup Globals = n(setup, None, None, is_module)įile "/home/craig/.IntelliJIdea2017.1/config/plugins/python/helpers/pydev/pydevd.py", line 1015, in run Pydev debugger: process 22095 is connectingĬonnected to pydev debugger (build 171.4073.35)įile "/home/craig/.IntelliJIdea2017.1/config/plugins/python/helpers/pydev/pydevd.py", line 1578, in home/craig/projects/django/venv/bin/python3.5 /home/craig/.IntelliJIdea2017.1/config/plugins/python/helpers/pydev/pydevd.py -multiproc -qt-support -client 127.0.0.1 -port 44719 -file /home/craig/projects/django/venv/bin/django-admin.py runserver localhost:63212 No manage.py file specified in Settings->Django Support If I try and create a configuration, I'm left with the message (which holds no bearing since there in no "Settings->Django Support" option anywhere in IntelliJ): I find this workflow flawed and VERY frustrating.Īfter fighting with this for some more hours (yes, hours!!!), I find that if I do an "import project" (instead of using the folder opening the folder), I can get it to recognize the Django project, however, there are NO debug settings. How do I tell IntelliJ that this project uses Django? How can I debug as Django project if I am not able to do this? I click the button, I have 2 options: New Module, Import Module. ![]() I then try to go to Modules page as listed in the Help documentation, Python is listed. I then go to the Facets page, Python is listed, I click the button, I get and error "No suitable Modules for Python facet found" then select Python SDK, then Add Local, I select a local virtual environment (created by virtualenv), it has Django installed, I click apply. I click configure in alert box, it opens a window listed X number python files, I click ok. I open up the project using the folder open, it detects python. I have completely reinstalled the latest IntelliJ from scratch. Any update on how to get this facet to show up? ![]()
0 Comments
Leave a Reply. |