Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start any django app

Tags:

django

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?

like image 993
Darren Avatar asked Aug 10 '11 23:08

Darren


People also ask

Why Django admin is not working?

Problems running django-admin django-admin should be on your system path if you installed Django via pip . If it's not in your path, ensure you have your virtual environment activated and you can try running the equivalent command python -m django .

Why does python manage py Runserver not work?

The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.


1 Answers

This is a fun one - your project and your app need to have different names. You probably created a project, then tried to startapp with the same name.

like image 115
Derek Avatar answered Oct 13 '22 13:10

Derek