Hi! I'm trying to display admin static files at mywebsite.pythonanywhere.com/admin
These are the commands that are giving me errors:
python shell manage.py
(venv) $ python manage.py collectstatic
Unknown command: 'collectstatic'
Type 'manage.py help' for usage.
python shell django-admin.py
(venv) $ python django-admin.py collectstatic --settings=mysite.settings.prod
Unknown command: 'collectstatic'
Type 'django-admin.py help' for usage.
And this is my setup:
Tree
/mysite/mysite/settings
init__.py
base.py
dev.py
prod.py
wsgi file
import os
import sys
path = '/home/username/mysite'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings.prod'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
prod.py
from base import *
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'username$name',
'USER': 'username',
'PASSWORD': 'password',
'HOST': 'username.mysql.pythonanywhere-services.com',
}
}