I'm having a strange problem.

When I run

  django-admin startproject mysite

I get a directory structure that is flat in the sense that there is no inner 
mysite directory -- the manage.py and urls.py files are at the same level.

But Part 1 of the django tutorial 
(https://docs.djangoproject.com/en/dev/intro/tutorial01/) shows a directory 
structure with an inner mysite, such that manage.py is at the top layer and 
urls.py is in the inner mysite. And it also says:

Doesn't match what you see?
The default project layout recently changed. If you're seeing a "flat" 
layout (with no inner mysite/ directory), you're probably using a version of 
Django that doesn't match this tutorial version. You'll want to either 
switch to the older tutorial or the newer Django version.


But the tutorial is for version 1.3, and my django.VERSION is (1, 3, 1, 
'final', 0).

So that is inconsistent. I'm wondering if, somehow, my virtualenv 
installation isn't causing the correct django-admin.py to be used. If I do

  which django-admin.py

it shows the version that's in the bin directory for the virtualenv for 
which I get the django.VERSION mentioned above, so I don't see how the 
virtualenv could be a problem.

Anyone have any ideas?

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Wh_zaRROn6sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to