django beginner

43 views
Skip to first unread message

george.v...@gmail.com

unread,
Mar 13, 2015, 12:58:55 PM3/13/15
to django...@googlegroups.com
i am at the start
i use windows7, python 2.7.6 and django 1.7.6

after installation i tried to run "django-admin startproject mysite"
and it only opened notepad++ the file django-admin.py

i then went in the directory that it was found and coppied the three files in the folder i want my project to be in...

will that be a problem later int he tutorial? i feel like a passed a problem but not in the right way.....

george.v...@gmail.com

unread,
Mar 13, 2015, 1:24:22 PM3/13/15
to django...@googlegroups.com


Τη Παρασκευή, 13 Μαρτίου 2015 - 6:58:55 μ.μ. UTC+2, ο χρήστης george.v...@gmail.com έγραψε:
i am at the start
i use windows7, python 2.7.6 and django 1.7.6

after installation i tried to run "django-admin startproject mysite"
and it only opened notepad++ the file django-admin.py

i then went in the directory that it was found and coppied the three files in the folder i want my project to be in...
   it made the folders normally 
but
will that be a problem later in the tutorial? i feel like a passed a problem but not in the right way.....

Ilya Kazakevich

unread,
Mar 13, 2015, 1:34:55 PM3/13/15
to django...@googlegroups.com
django-admin creates infrastructure required for your project, and there should be more than 3 files.

On *nix systems django-admin is py script with shebang, but due to windows command processor limitations (cmd) on windows there is executable file which actually calls django-admin.

So, you should open cmd console and type "c:\Python27\Scripts\django-admin.exe startproject mysite". (I believe you have python on c:\Python27\ and Django is installed).

george.v...@gmail.com

unread,
Mar 13, 2015, 1:40:53 PM3/13/15
to django...@googlegroups.com


i have django installed correctly i checked witht he version test
my python folder is on c:\

#!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe
from django.core import management

if __name__ == "__main__":
    management.execute_from_command_line()

this is what is in the django-admin.py

this file in the beginning was int the folder after the hash.
is this command: "django-admin startproject mysite"
supposed to run another way????
like from every folder i am currently working at the cmd?

george.v...@gmail.com

unread,
Mar 13, 2015, 1:47:45 PM3/13/15
to django...@googlegroups.com
ok i put the folder that the django-admin file is in at the variables path of windows
i hope that deals with later problems with files

luis zarate

unread,
Mar 13, 2015, 2:16:46 PM3/13/15
to django...@googlegroups.com
what is the output of django-admin --version ?

Instructions:
 1) open cmd
2) change your current directory to your work directory
3) run django-admi --version
4) copy and paste the output  here.

The output will be like "1.7.2"

2015-03-13 11:47 GMT-06:00 <george.v...@gmail.com>:
ok i put the folder that the django-admin file is in at the variables path of windows
i hope that deals with later problems with files

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e8554c44-f7fa-4ee8-a5b7-52594bc97fb1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
"La utopía sirve para caminar" Fernando Birri


george.v...@gmail.com

unread,
Mar 13, 2015, 2:22:21 PM3/13/15
to django...@googlegroups.com
the verson is 1.7.6.... why?

Luis Zárate

unread,
Mar 13, 2015, 3:55:54 PM3/13/15
to django...@googlegroups.com
Your python configuration is ok. so I guest you have someone of this problem.
 - Your work path has spaces and python confuse with them.
 - Your system mimetype for .py use notepad++ for open it.

I don't know if this solve your issue but I think that check this prevent you a headache

I test doing a simple project and this is my result.

$ django-admin startproject mysite
$ tree
.
└── mysite
    ├── manage.py
    └── mysite
        ├── __init__.py
        ├── settings.py
        ├── urls.py
        └── wsgi.py

2 directories, 5 files

2015-03-13 12:22 GMT-06:00 <george.v...@gmail.com>:
the verson is 1.7.6.... why?

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages