Wrong Django rootFolder detected (using non-default project structure)

Hello,

I don't use the default Django project structure and I am having problems with PyCharm.

I have a folder named "other" in my project directory (it contains configuration files and other stuff which is used while deploying) and PyCharm detected this as a Django root folder (probably because it also contains two files named manage.py and settings.py).

The problem is that this is not the actual Django root folder and because of this, I cannot run the Django dev server or debug the application using PyCharm.

I have also tried manually changing the rootFolder variable in the file name projectName.iml, but it seems that everytime when I restart PyCharm or access the project settings, this variable is set back to "$MODULE_DIR$/other" (basically, my change has no effect).

"Quick and dirty" solution would be to move this "other" directory elsewhere, but I really can't do this, because this directory is under version control.

Any help would be more then appreciated.

P.S. Great work on the IDE, I love it so far (I have actually already tested the first preview version when it was released but it was useless to me at that time because it didn not supoort virtualenvs).

2 comments

Hello,

Could you please file an issue describing your problem at http://youtrack.jetbrains.net/

? Right now there isn't any way to override the root folder autodetection.

Hello,

I don't use the default Django project structure and I am having

problems with PyCharm.

I have a folder named "other" in my project directory (it contains

configuration files and other stuff which is used while deploying) and

PyCharm detected this as a Django root folder (probably because it

also contains two files named manage.py and settings.py).

The problem is that this is not the actual Django root folder and

because of this, I cannot run the Django dev server or debug the

application using PyCharm.

I have also tried manually changing the rootFolder variable in the

file name projectName.iml, but it seems that everytime when I

restart PyCharm or access the project settings, this variable is set

back to "$MODULE_DIR$/other" (basically, my change has no effect).

"Quick and dirty" solution would be to move this "other" directory

elsewhere, but I really can't do this, because this directory is under

version control.

Any help would be more then appreciated.

P.S. Great work on the IDE, I love it so far (I have actually already

tested the first preview version when it was released but it was

useless to me at that time because it didn not supoort virtualenvs).

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.