django-admin.py collectstatic command missing on 0.11 rc1

235 views
Skip to first unread message

Gianfilippo

unread,
Sep 4, 2014, 2:04:10 PM9/4/14
to ganeti...@googlegroups.com
Hi all,
following the docs attached to 0.11 rc1 , i'm trying to deploy ganeti
web manager 0.11 rc1 on apache using mod_wsgi.
anyways, it seems that the "collectstatic" command described in the
documentation is missing.

# source /opt/ganeti_webmgr/bin/activate
(ganeti_webmgr)-# django-admin.py collectstatic
Unknown command: 'collectstatic'
Type 'django-admin.py help' for usage.
(ganeti_webmgr)-# django-admin.py help
Usage: django-admin.py subcommand [options] [args]

Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't
provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --help show this help message and exit

Type 'django-admin.py help <subcommand>' for help on a specific subcommand.

Available subcommands:

[django]
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
reset
runfcgi
runserver
shell
sql
sqlall
sqlclear
sqlcustom
sqlflush
sqlindexes
sqlinitialdata
sqlreset
sqlsequencereset
startapp
startproject
syncdb
test
testserver
validate

Thanks for your help.

Evan Tschuy

unread,
Sep 4, 2014, 2:42:20 PM9/4/14
to ganeti...@googlegroups.com
Hi Gianfilippo!

Due to the change in how settings work in 0.11, you'll need to tell
Django where to find the settings each time you run the virtual
environment. Running the following command should fix your problem:

export DJANGO_SETTINGS_MODULE="ganeti_webmgr.ganeti_web.settings"

Hope this helps!

Evan
> --
> You received this message because you are subscribed to the Google Groups
> "ganeti-webmgr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ganeti-webmg...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

Gianfilippo

unread,
Sep 5, 2014, 10:13:40 AM9/5/14
to ganeti...@googlegroups.com
Thank you, it works.
just a note: in the example apache vhost at
http://ganeti-webmgr.readthedocs.org/en/develop/deployment/apache.html ,
i had to replace "python2.6" with "python2.7".

Cheers
--
Gianfilippo Giannini
System administration for the masses
mail me: gianfilipp...@kelyon.it - call me: +39 081 19753290
stuck in the '90s? fax me! +39 081 19753299
"I love deadlines. I love the whooshing noise they make as they pass" -
Douglas Adams

Reply all
Reply to author
Forward
0 new messages