Friday, May 10, 2013

Re: not able to create a site, instead text document pops out.

On 10/05/2013 10:23pm, gintare wrote:
>
> Windows7 computer.
> Django 1.5.1
> Python 2.7
>
> Not able to create a site, instead text document pops out.
> Command:
> c:\Python27\Scripts>c:\Python27\Scripts\django-admin.py startproject mysite

This looks as though you changed directory to c:\python27\scripts and
issued the command there. That's not a good thing to do.

Instead, created a fresh empty directory and issue commands like this in
a DOS prompt:

>chdir \Users\Gintare
C:\Users\Gintare> mkdir my_project
C:\Users\Gintare> chdir my_project
C:\Users\Gintare\my_project> django-admin.py startproject mysite

This will work because when you installed Python, the installer put
C:\Python27\Scripts on the path. You shouldn't have to specify the
location of django-admin.py.

Afterwards, you should see C:\Users\Gintare\my_project\mysite and be
able to follow the tutorial easily

Good luck

Mike

>
> does not create folder 'mysite', instead (as any other commands like
> version, help..)
> commnad gives a tetx documents poping out with text contents:
>
> #!c:\Python27\python.exe
> from django.core import management
> if __name__ == "__main__":
> management.execute_from_command_line()
>
>
>
>
>

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate