Search code examples
django

Cannot start any django app


I am a newbie at Django and everytime I try to run python panel/manage.py startapp %app% (panel is my project) it gives me the error:

Error: '%app%' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.

Am I doing something wrong?

Surely companies or contacts or stats is not the name of an existing Python module?


Solution

  • Perhaps you need to

    cd panel
    python manage.py startapp yourappname
    

    I'm not sure running the command from a directory above your project will work properly.