Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users

Serves me right for writing code without testing :-(

It of course should be :

            import os
            top_dir = os.path.join(os.getcwd(), 'python_created_me')
            os.makedirs(top_dir)

Glad you have it sorted - and glad it turned out not to be Django ...

On 03/05/18 17:06, Duška Miloradović wrote:

Anthony, I got this:

D:\projectdir>python create_dir.py
Traceback (most recent call last):
  File "create_dir.py", line 2, in 
    top_dir = path.join(os.getcwd(), 'python_created_me')
NameError: name 'path' is not defined

I searched for it through windows explorer again and I actually *found 
it* on this strange location: C:\VTRoot\HarddiskVolume1\projectdir\mysite

Do you have any clue how this happened?
How to make things right? :)

On Thu, May 3, 2018 at 5:08 PM, Anthony Flury 
> 
wrote:


On 03/05/18 08:06, Anthony Flury wrote:

On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:

    I tried what you suggested and got this:
    D:\projectdir>python create_dir.py
    Traceback (most recent call last):
      File "create_dir.py", line 1, in 
        from os import mkdirs
    ImportError: cannot import name 'mkdirs'

Sorry - that should be :

            import os
            top_dir = path.join(os.getcwd(), 'python_created_me')
            os.makedirs(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.

The other thing you could do is to use the File Manager search to
see if 'my_site' has been created else where on your system


-- 
-- 
Anthony Flury

email : *anthony.fl...@btinternet.com
*
Twitter : *@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/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com 
.

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



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@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/5aeed66b-25ef-200f-22fc-4a0775ea0779%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Ha! I will try to see what will happen when I disable Comodo. I hope it
will work properly then.

Thanks Fidel Leon.

On Thu, May 3, 2018 at 6:24 PM, Fidel Leon  wrote:

> As part of its protection, Comodo Antivirus has something named
> “sandboxing”, so when you execute anything, Comodo catches it, runs it
> inside a protected environment and if it finds it’s not malware, runs the
> actual command.
>
> Seems Comodo is mapping your D: drive to that C:\VTRoot\HarddiskVolume1
> thing, so django-admin gets fooled.
>
> I haven’t used Comodo for decades so I can’t help with this exact issue,
> sorry - maybe disabling the antivirus while you’re at Django? O:-)
>
> Fidel Leon
> fi...@flm.cat
>
>
> El 3 de mayo de 2018 a las 18:19:06, Duška Miloradović (
> daisyfields...@gmail.com) escribió:
>
> Yes? :/
>
> On Thu, May 3, 2018 at 6:09 PM, Fidel Leon  wrote:
>
>> Are you using Comodo Antivirus?
>>
>> https://forums.malwarebytes.com/topic/181573-cvtroot/
>>
>>
>>
>> El jue., 3 may. 2018 a las 18:06, Duška Miloradović (<
>> daisyfields...@gmail.com>) escribió:
>>
>>> Anthony, I got this:
>>>
>>> D:\projectdir>python create_dir.py
>>> Traceback (most recent call last):
>>>   File "create_dir.py", line 2, in 
>>> top_dir = path.join(os.getcwd(), 'python_created_me')
>>> NameError: name 'path' is not defined
>>>
>>> I searched for it through windows explorer again and I actually *found
>>> it* on this strange location: C:\VTRoot\HarddiskVo
>>> lume1\projectdir\mysite
>>> Do you have any clue how this happened?
>>> How to make things right? :)
>>>
>>> On Thu, May 3, 2018 at 5:08 PM, Anthony Flury <
>>> anthony.fl...@btinternet.com> wrote:
>>>
 On 03/05/18 08:06, Anthony Flury wrote:

> On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:
>
> I tried what you suggested and got this:
> D:\projectdir>python create_dir.py
> Traceback (most recent call last):
>   File "create_dir.py", line 1, in 
> from os import mkdirs
> ImportError: cannot import name 'mkdirs'
>
> Sorry - that should be :

 import os
 top_dir = path.join(os.getcwd(), 'python_created_me')
 os.makedirs(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.
>
> The other thing you could do is to use the File Manager search to see
 if 'my_site' has been created else where on your system


 --
 --
 Anthony Flury
 email : *anthony.fl...@btinternet.com*
 Twitter : *@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/ms
>>> gid/django-users/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%
>>> 3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Fidel Leon
>> fi...@flm.cat
>> Phone: +34 622 26 44 92
>> --
>> 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/ms
>> gid/django-users/CAHXg%3DN3rH--NCcJ9TLbLJsjtVv0%3D0KoJLh5x01
>> W%2BmrhzNz0oJw%40mail.gmail.com
>> .
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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.
> 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
As part of its protection, Comodo Antivirus has something named
“sandboxing”, so when you execute anything, Comodo catches it, runs it
inside a protected environment and if it finds it’s not malware, runs the
actual command.

Seems Comodo is mapping your D: drive to that C:\VTRoot\HarddiskVolume1
thing, so django-admin gets fooled.

I haven’t used Comodo for decades so I can’t help with this exact issue,
sorry - maybe disabling the antivirus while you’re at Django? O:-)

Fidel Leon
fi...@flm.cat


El 3 de mayo de 2018 a las 18:19:06, Duška Miloradović (
daisyfields...@gmail.com) escribió:

Yes? :/

On Thu, May 3, 2018 at 6:09 PM, Fidel Leon  wrote:

> Are you using Comodo Antivirus?
>
> https://forums.malwarebytes.com/topic/181573-cvtroot/
>
>
>
> El jue., 3 may. 2018 a las 18:06, Duška Miloradović (<
> daisyfields...@gmail.com>) escribió:
>
>> Anthony, I got this:
>>
>> D:\projectdir>python create_dir.py
>> Traceback (most recent call last):
>>   File "create_dir.py", line 2, in 
>> top_dir = path.join(os.getcwd(), 'python_created_me')
>> NameError: name 'path' is not defined
>>
>> I searched for it through windows explorer again and I actually *found
>> it* on this strange location: C:\VTRoot\HarddiskVolume1\projectdir\mysite
>> Do you have any clue how this happened?
>> How to make things right? :)
>>
>> On Thu, May 3, 2018 at 5:08 PM, Anthony Flury <
>> anthony.fl...@btinternet.com> wrote:
>>
>>> On 03/05/18 08:06, Anthony Flury wrote:
>>>
 On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:

 I tried what you suggested and got this:
 D:\projectdir>python create_dir.py
 Traceback (most recent call last):
   File "create_dir.py", line 1, in 
 from os import mkdirs
 ImportError: cannot import name 'mkdirs'

 Sorry - that should be :
>>>
>>> import os
>>> top_dir = path.join(os.getcwd(), 'python_created_me')
>>> os.makedirs(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.

 The other thing you could do is to use the File Manager search to see
>>> if 'my_site' has been created else where on your system
>>>
>>>
>>> --
>>> --
>>> Anthony Flury
>>> email : *anthony.fl...@btinternet.com*
>>> Twitter : *@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/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%
>> 3D6NQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Fidel Leon
> fi...@flm.cat
> Phone: +34 622 26 44 92
> --
> 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/CAHXg%3DN3rH--NCcJ9TLbLJsjtVv0%
> 3D0KoJLh5x01W%2BmrhzNz0oJw%40mail.gmail.com
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>

--
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/CAJ0SFUC8dLCRZuq%2BF62o29i5MGGi%2B9E13i0gQ%2BvLkwO%3D1KM7OQ%40mail.gmail.com

.
For more 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Yes? :/

On Thu, May 3, 2018 at 6:09 PM, Fidel Leon  wrote:

> Are you using Comodo Antivirus?
>
> https://forums.malwarebytes.com/topic/181573-cvtroot/
>
>
>
> El jue., 3 may. 2018 a las 18:06, Duška Miloradović (<
> daisyfields...@gmail.com>) escribió:
>
>> Anthony, I got this:
>>
>> D:\projectdir>python create_dir.py
>> Traceback (most recent call last):
>>   File "create_dir.py", line 2, in 
>> top_dir = path.join(os.getcwd(), 'python_created_me')
>> NameError: name 'path' is not defined
>>
>> I searched for it through windows explorer again and I actually *found
>> it* on this strange location: C:\VTRoot\HarddiskVolume1\projectdir\mysite
>> Do you have any clue how this happened?
>> How to make things right? :)
>>
>> On Thu, May 3, 2018 at 5:08 PM, Anthony Flury <
>> anthony.fl...@btinternet.com> wrote:
>>
>>> On 03/05/18 08:06, Anthony Flury wrote:
>>>
 On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:

 I tried what you suggested and got this:
 D:\projectdir>python create_dir.py
 Traceback (most recent call last):
   File "create_dir.py", line 1, in 
 from os import mkdirs
 ImportError: cannot import name 'mkdirs'

 Sorry - that should be :
>>>
>>> import os
>>> top_dir = path.join(os.getcwd(), 'python_created_me')
>>> os.makedirs(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.

 The other thing you could do is to use the File Manager search to see
>>> if 'my_site' has been created else where on your system
>>>
>>>
>>> --
>>> --
>>> Anthony Flury
>>> email : *anthony.fl...@btinternet.com*
>>> Twitter : *@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/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%
>> 3D6NQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Fidel Leon
> fi...@flm.cat
> Phone: +34 622 26 44 92
>
> --
> 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/CAHXg%3DN3rH--NCcJ9TLbLJsjtVv0%
> 3D0KoJLh5x01W%2BmrhzNz0oJw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJ0SFUC8dLCRZuq%2BF62o29i5MGGi%2B9E13i0gQ%2BvLkwO%3D1KM7OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
Are you using Comodo Antivirus?

https://forums.malwarebytes.com/topic/181573-cvtroot/



El jue., 3 may. 2018 a las 18:06, Duška Miloradović (<
daisyfields...@gmail.com>) escribió:

> Anthony, I got this:
>
> D:\projectdir>python create_dir.py
> Traceback (most recent call last):
>   File "create_dir.py", line 2, in 
> top_dir = path.join(os.getcwd(), 'python_created_me')
> NameError: name 'path' is not defined
>
> I searched for it through windows explorer again and I actually *found it*
> on this strange location: C:\VTRoot\HarddiskVolume1\projectdir\mysite
> Do you have any clue how this happened?
> How to make things right? :)
>
> On Thu, May 3, 2018 at 5:08 PM, Anthony Flury <
> anthony.fl...@btinternet.com> wrote:
>
>> On 03/05/18 08:06, Anthony Flury wrote:
>>
>>> On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:
>>>
>>> I tried what you suggested and got this:
>>> D:\projectdir>python create_dir.py
>>> Traceback (most recent call last):
>>>   File "create_dir.py", line 1, in 
>>> from os import mkdirs
>>> ImportError: cannot import name 'mkdirs'
>>>
>>> Sorry - that should be :
>>
>> import os
>> top_dir = path.join(os.getcwd(), 'python_created_me')
>> os.makedirs(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.
>>>
>>> The other thing you could do is to use the File Manager search to see if
>> 'my_site' has been created else where on your system
>>
>>
>> --
>> --
>> Anthony Flury
>> email : *anthony.fl...@btinternet.com*
>> Twitter : *@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/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92

-- 
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/CAHXg%3DN3rH--NCcJ9TLbLJsjtVv0%3D0KoJLh5x01W%2BmrhzNz0oJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Anthony, I got this:

D:\projectdir>python create_dir.py
Traceback (most recent call last):
  File "create_dir.py", line 2, in 
top_dir = path.join(os.getcwd(), 'python_created_me')
NameError: name 'path' is not defined

I searched for it through windows explorer again and I actually *found it*
on this strange location: C:\VTRoot\HarddiskVolume1\projectdir\mysite
Do you have any clue how this happened?
How to make things right? :)

On Thu, May 3, 2018 at 5:08 PM, Anthony Flury 
wrote:

> On 03/05/18 08:06, Anthony Flury wrote:
>
>> On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:
>>
>> I tried what you suggested and got this:
>> D:\projectdir>python create_dir.py
>> Traceback (most recent call last):
>>   File "create_dir.py", line 1, in 
>> from os import mkdirs
>> ImportError: cannot import name 'mkdirs'
>>
>> Sorry - that should be :
>
> import os
> top_dir = path.join(os.getcwd(), 'python_created_me')
> os.makedirs(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.
>>
>> The other thing you could do is to use the File Manager search to see if
> 'my_site' has been created else where on your system
>
>
> --
> --
> Anthony Flury
> email : *anthony.fl...@btinternet.com*
> Twitter : *@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/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
Please try to create a different project specifying -v 3:
$ django-admin startapp -v 3 mytest

The output should tell you where django-admin is creating its files and
could be a clue about where is your mysite :)

El jue., 3 may. 2018 a las 14:24, Duška Miloradović (<
daisyfields...@gmail.com>) escribió:

> Ayser, thank you very much but that did not help neither. It is still the
> same - command ends successfully but still I do not see new folder created.
>
> On Thu, May 3, 2018 at 8:13 AM, Ayser shuhaib 
> wrote:
>
>> Create your projectdir manually then inside the projectdir folder (right
>> click with your mouse and open command window here)
>> After that continue with Django commands
>> django-admin startproject ...
>>
>> On Thu, 03 May 2018 at 07: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).
>>>
>>>   * 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.
>>>   * 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? :)
>>>
>>> четвртак, 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
 >  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
 > .
 > To post to this group, send email to django...@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/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_source=footer>.

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


 --
 --
 Anthony Flury

>>> email : *anthon...@btinternet.com*

>>> Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users

On 03/05/18 08:06, Anthony Flury wrote:

On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:

I tried what you suggested and got this:
D:\projectdir>python create_dir.py
Traceback (most recent call last):
  File "create_dir.py", line 1, in 
    from os import mkdirs
ImportError: cannot import name 'mkdirs'


Sorry - that should be :

            import os
            top_dir = path.join(os.getcwd(), 'python_created_me')
            os.makedirs(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.


The other thing you could do is to use the File Manager search to see if 
'my_site' has been created else where on your system


--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@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/4ae66204-5ad6-dfa4-28f7-d93b671bb7fb%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
I wrote what versions I have installed in first post, but here is a result
of what you've asked:
For the first command output is: Python 3.6.3 and for the second: 2.0.5

On Thu, May 3, 2018 at 3:43 PM, James Farris  wrote:

> If you run these two commands from your command line, what is the output?
>
> *python -V*
> *django-admin.py version*
>
>
> On May 3, 2018, at 5:23 AM, Duška Miloradović 
> wrote:
>
> Ayser, thank you very much but that did not help neither. It is still the
> same - command ends successfully but still I do not see new folder created.
>
> On Thu, May 3, 2018 at 8:13 AM, Ayser shuhaib 
> wrote:
>
>> Create your projectdir manually then inside the projectdir folder (right
>> click with your mouse and open command window here)
>> After that continue with Django commands
>> django-admin startproject ...
>>
>> On Thu, 03 May 2018 at 07: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).
>>>
>>>   * 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.
>>>   * 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? :)
>>>
>>> четвртак, 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
 >  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
 > .
 > To post to this group, send email to django...@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/c574d479-a1b6
 -4c20-91ab-208ae42d4996%40googlegroups.com
 > .
 > For more options, visit https://groups.google.com/d/optout.


 --
 --
 Anthony Flury

>>> email : *anthon...@btinternet.com*

>>> Twitter : *@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/ms
>>> gid/django-users/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com
>>> 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread James Farris
If you run these two commands from your command line, what is the output?

python -V 
django-admin.py version


> On May 3, 2018, at 5:23 AM, Duška Miloradović  
> wrote:
> 
> Ayser, thank you very much but that did not help neither. It is still the 
> same - command ends successfully but still I do not see new folder created.
> 
>> On Thu, May 3, 2018 at 8:13 AM, Ayser shuhaib  
>> wrote:
>> Create your projectdir manually then inside the projectdir folder (right 
>> click with your mouse and open command window here)
>> After that continue with Django commands
>> django-admin startproject ...
>> 
>>> On Thu, 03 May 2018 at 07: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). 
>>> 
>>>   * 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.
>>>   * 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? :)
>>> 
>>> четвртак, 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 
 >  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  
 > . 
 > To post to this group, send email to django...@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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
 >  
 > .
 >  
 > For more options, visit https://groups.google.com/d/optout. 
 
 
 -- 
 -- 
 Anthony Flury 
>>> 
 email : *anthon...@btinternet.com* 
>>> 
 Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> 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 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Ayser, thank you very much but that did not help neither. It is still the
same - command ends successfully but still I do not see new folder created.

On Thu, May 3, 2018 at 8:13 AM, Ayser shuhaib 
wrote:

> Create your projectdir manually then inside the projectdir folder (right
> click with your mouse and open command window here)
> After that continue with Django commands
> django-admin startproject ...
>
> On Thu, 03 May 2018 at 07: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).
>>
>>   * 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.
>>   * 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? :)
>>
>> четвртак, 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
>>> >  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
>>> > .
>>> > To post to this group, send email to django...@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/c574d479-
>>> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
>>> > >> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=
>>> email_source=footer>.
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> --
>>> Anthony Flury
>>>
>> email : *anthon...@btinternet.com*
>>>
>> Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Umar Kambala
That its not recognized as internal or external command
On May 3, 2018 11:21 AM, "Ayser shuhaib"  wrote:

> Create your projectdir manually then inside the projectdir folder (right
> click with your mouse and open command window here)
> After that continue with Django commands
> django-admin startproject ...
>
> On Thu, 03 May 2018 at 07: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).
>>
>>   * 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.
>>   * 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? :)
>>
>> четвртак, 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
>>> >  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
>>> > .
>>> > To post to this group, send email to django...@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/c574d479-
>>> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
>>> > >> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=
>>> email_source=footer>.
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> --
>>> Anthony Flury
>>>
>> email : *anthon...@btinternet.com*
>>>
>> Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAE0AZGKfOqYa3bpFi5LYXQgRNP1yx
> 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Ayser shuhaib
Create your projectdir manually then inside the projectdir folder (right
click with your mouse and open command window here)
After that continue with Django commands
django-admin startproject ...

On Thu, 03 May 2018 at 07: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).
>
>   * 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.
>   * 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? :)
>
> четвртак, 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
>> >  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
>> > .
>> > To post to this group, send email to django...@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/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_source=footer>.
>>
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> --
>> Anthony Flury
>>
> email : *anthon...@btinternet.com*
>>
> Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAE0AZGKfOqYa3bpFi5LYXQgRNP1yxus22gWfamXR8GYBxfyZrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
It is on C. I tried to create "mysite" also on C path but the result is the
same.

On Thu, May 3, 2018 at 9:49 AM, Gerald Brown  wrote:

> Is Django installed on your C: or D: drive?  If it is on C: then "mysite"
> should also be on C:
>
> On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:
>
> I tried what you suggested and got this:
> D:\projectdir>python create_dir.py
> Traceback (most recent call last):
>   File "create_dir.py", line 1, in 
> from os import mkdirs
> ImportError: cannot import name 'mkdirs'
>
> среда, 02. мај 2018. 23.13.29 UTC+2, Daisy је написао/ла:
>>
>> I installed django according to provided instructions and I am trying to
>> follow the Django article: Writing your first Django app, part 1
>>  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+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/58e5b0ab-46c5-46fe-a346-28d1f43619e7%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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/afa3504d-38a9-b56b-fbc7-353c14d698d4%40gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJ0SFUAXpQbFJ9iK-sSQAF%2BSfQhmsoGF8b2kvZrBJXskgGnzTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Gerald Brown
Is Django installed on your C: or D: drive?  If it is on C: then 
"mysite" should also be on C:



On Thursday, 03 May, 2018 03:25 PM, Daisy wrote:

I tried what you suggested and got this:
D:\projectdir>python create_dir.py
Traceback (most recent call last):
  File "create_dir.py", line 1, in 
    from os import mkdirs
ImportError: cannot import name 'mkdirs'

среда, 02. мај 2018. 23.13.29 UTC+2, Daisy је написао/ла:

I installed django according to provided instructions and I am
trying to follow the Django article: Writing your first Django
app, part 1
 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+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/58e5b0ab-46c5-46fe-a346-28d1f43619e7%40googlegroups.com 
.

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


--
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/afa3504d-38a9-b56b-fbc7-353c14d698d4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Daisy
I tried what you suggested and got this:
D:\projectdir>python create_dir.py
Traceback (most recent call last):
  File "create_dir.py", line 1, in 
from os import mkdirs
ImportError: cannot import name 'mkdirs'

среда, 02. мај 2018. 23.13.29 UTC+2, Daisy је написао/ла:
>
> I installed django according to provided instructions and I am trying to 
> follow the Django article: Writing your first Django app, part 1 
>  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+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/58e5b0ab-46c5-46fe-a346-28d1f43619e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users

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 *


четвртак, 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
> > 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 
> .
> To post to this group, send email to django...@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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com



>

>.

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


-- 
-- 
Anthony Flury

email : *anthon...@btinternet.com *
Twitter : *@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 

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread Daisy
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). 
  * 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.
  * 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? :)

четвртак, 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 
> >  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  
> > . 
> > To post to this group, send email to django...@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/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_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
> -- 
> -- 
> Anthony Flury 
> email : *anthon...@btinternet.com * 
> Twitter : *@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/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread 'Anthony Flury' via Django users

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 
 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+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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com 
.

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



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@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/77f18454-13a5-4e03-f791-7da59016e379%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.