django manage.py commands not displaying

47 views
Skip to first unread message

RSS

unread,
Aug 26, 2014, 9:28:43 AM8/26/14
to django...@googlegroups.com
sorry my bad English

i`m working on hosting

project structure:
--myenv
--rsskg.ru
----public_html
--virtaulenv-1.9

$ cd projects.ru/public_html
$ source ~/myenv/bin/activate
$ ./manage.py
...Available subcommands:
here nothing

$ django-admin.py
Available subcommands:
[django]
...
It`s Ok

Why this?

ma...@tubeards.com

unread,
Aug 27, 2014, 8:23:24 AM8/27/14
to django...@googlegroups.com
Can you please post the content of your manage.py?

Cheers

RSS

unread,
Aug 27, 2014, 8:58:49 AM8/27/14
to django...@googlegroups.com
Can you please post the content of your manage.py?
Cheers

it`s standart:
#!/usr/bin/env python
import os
import sys
import imp

try:
    imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
    import sys
    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
    sys.exit(1)

import settings

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") #path to the settings py file
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv) 

manage.py, settings... all in root folder: public_html

RSS

unread,
Aug 27, 2014, 9:01:44 AM8/27/14
to django...@googlegroups.com
it`s standart:
#!/usr/bin/env python
import os
import sys
import imp

try:
    imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
    import sys
    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
    sys.exit(1)

import settings

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") #path to the settings py file
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv) 

manage.py, settings... In root folder public_html

Collin Anderson

unread,
Aug 27, 2014, 10:11:43 AM8/27/14
to django...@googlegroups.com
wow. that's an ancient manage.py. now-a-days it looks like this:

RSS

unread,
Aug 28, 2014, 7:23:16 AM8/28/14
to django...@googlegroups.com
Thank you, Very much!
Yes, that's an ancient manage.py
Reply all
Reply to author
Forward
0 new messages