On 03/05/18 06:59, Daisy wrote:
Thank you very much for your reply, and here I my answers:
* Does the directory show up when you do a *dir* command in
projectdir ? It does not show up, although it says that there are 2
directories (see attachment).
Those two directories '.' & '..' are standard in every directory
* Can you do anything on the *mysite* directory - can you rename it,
or even delete it ? I can't - system cannot find the file specified.
Very odd - points to a an OS/disk problem to be honest - I am not sure
Django is doing anything clever.
* Can you see it in File explorer - No.
* Can you manually create a directory in your *projectdir* ? - Yes,
and it is displayed after command *dir*.
* Can you create a different projectdir - and run *django-admin
startproject mysite* in there ? - I tried creating it on different
paths, both on C and D disk, but it was the same behavior.
What can I do now? :)
Have you tried write a small Python application that creates a directory :
from os import mkdirs
top_dir = path.join(os.getcwd(), name)
mkdirs(top_dir)
Copy that to a python file called '*create_dir.py*' in your *projectdir*
- and run it by this command '*python create_dir.py*'
One you run it you should have a new empty directory called
'python_created_me' - running the comand again should result in an error.
The reason for doing this is to check that the Python code that Django
is using does work ok.
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
четвртак, 03. мај 2018. 01.08.04 UTC+2, TonyF-UK је написао/ла:
Lets troubleshoot:
* Does the directory show up when you do a *dir* command in
projectdir ?
* Can you do anything on the *mysite* directory - can you rename
it,
or even delete it ?
* Can you see it in File explorer
* Can you manually create a directory in your *projectdir* ?
* Can you create a different projectdir - and run *django-admin
startproject mysite* in there ?
My gut feeling is that this is a diskdrive/OS type issue - rather
than
Django specific
You may have a corrupted directory - or a bad section of disk; try
the
troubleshooting steps above first.
On 02/05/18 22:09, Daisy wrote:
> I installed django according to provided instructions and I am
trying
> to follow the Django article: Writing your first Django app, part 1
> <https://docs.djangoproject.com/en/2.0/intro/tutorial01/
<https://docs.djangoproject.com/en/2.0/intro/tutorial01/>> but I am
> stuck at Creating a project with command: django-admin startproject
> mysite.
> The problem is that I CAN execute command but when I try to access
> directory with cd mysite I get the message "The system cannot
find the
> path specified." although when I try to execute command
startproject
> again I get the message that it already exists. (see attachment)
> I cannot find new directory via windows explorer neither.
> I have installed django 2.0.5 version and python 3.6.3 (32-bit).
> --
> 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 <javascript:>
> <mailto:django-users+unsubscr...@googlegroups.com <javascript:>>.
> To post to this group, send email to django...@googlegroups.com
<javascript:>
> <mailto:django...@googlegroups.com <javascript:>>.
> Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/django-users/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com>
>
<https://groups.google.com/d/msgid/django-users/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=email&utm_source=footer
<https://groups.google.com/d/msgid/django-users/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
--
Anthony Flury
email : *anthon...@btinternet.com <javascript:>*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/
<https://twitter.com/TonyFlury/>>*
--
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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3a53370d-c4f5-1116-cfee-888c440c8466%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.