Doubt with Python+Django

Asked

Viewed 138 times

4

I’m starting with Python and Django, following a tutorial I found: https://docs.djangoproject.com/en/1.9/intro/tutorial01/

When I execute the command django-admin With startproject, it doesn’t generate that folder structure that it shows in the tutorial, it just creates a file that opens directly in the visualstudio. My doubt is the following, the structure is automatically generated, or needs to be created in the hand, if it is automatic, what did I do wrong.

I’m using python 3.5 and django 1.9.7

  • Wellington, please put which file was generated as name and extension.

  • once I’m home I put it here.. Thank you so much for while Rubico

2 answers

2

Wellington, good afternoon.

I’m also starting in Python and if I’m not mistaken, when you’re in Windows environment, the commands in the command prompt should not use ". py" at the end.

Only on Linux or MAC environment do you use ". py" at the end.

I’ll run some tests when I have my environment ready at home to confirm.

0

People giving a better search in the Django documentation, I believe I discovered my fault, I was running the `Django-admin.py command using the . py at the end of the command, being that in this link, says to use without the . py at the end of the command. Doing my tests and now created the hierarchy of folders that I was waiting for.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.