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 <module>
        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 <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/4ae66204-5ad6-dfa4-28f7-d93b671bb7fb%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to