I'm working my way through the tutorial and creating the application I
want rather than the articles example. I've become stuck between two
sections of the tutorial.

  Creating the project (section 2.3.1 worked fine from the TLD,
~/development/:

django-admin startproject crm

created ~/development/crm/ containing the files it should (page 14).

  Moving to section 2.3.2 I start the runserver and, sure enough, I can see
the web page it created.

  The problem occurs in section 2.3.3 when I try to create the crm
application. I cannot do this while the development server is running; there
is no system or python prompt. When I kill the running development server
(^C), and issue the command
        python3 manage.py startapp crm

I'm told that application already exists:
        ~/development/crm]$ python3 manage.py startapp crm
        CommandError: 'crm' conflicts with the name of an existing Python 
module and
        cannot be used as an app name. Please try another name.
but I have no idea where django thinks it exists.

  Not all the files are found:
        ~/development/crm/crm]$ ls
        __init__.py  __pycache__/  settings.py  urls.py  wsgi.py

These were created by the startproject command.

  Now knowing how I dug this hole I'm in I'd appreciate your teaching me how
to get out of the hole and move on.

Rich

Reply via email to