Monday, December 7, 2020

Re: 'python manage.py startapp polls' doesn't generate urls.py in polls

Nevermind. I managed to create the missing file myself.

On Monday, December 7, 2020 at 9:48:59 AM UTC-5 Julie Reier wrote:
Hi! I'm following the tutorial at https://docs.djangoproject.com/en/3.1/intro/tutorial01/.

When running the 'python manage.py startapp polls' command, the urls.py file is generated in the top level directory, but not in the polls directory. I even tried the tutorial a second time, naming the site 'secondsite'.

Here's the content:

manage.py

polls

secondsite


./polls:

__init__.py

admin.py

apps.py

migrations

models.py

tests.py

views.py


./polls/migrations:

__init__.py


./secondsite:

__init__.py

__pycache__

asgi.py

settings.py

urls.py

wsgi.py

./secondsite/__pycache__:

__init__.cpython-37.pyc

settings.cpython-37.pyc


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1e456ba9-c395-42e7-ab71-f20a2f437524n%40googlegroups.com.

No comments:

Post a Comment