2

I deployed an app in Pythonanywhere, and the Django autocomplete light for the admin page isn't being loaded, However when I run the app in the local host it works.

For it to load, I need to set where the static files for the DAL are

/home/myusername/.virtualenvs/django17/lib/python3.4/site-packages/dal/static/autocomplete_light

/home/myusername/.virtualenvs/django17/lib/python3.4/site-packages/dal_select2/static/autocomplete_light

I'm using django 1.10, python 3.4

karthikr
  • 97,368
  • 26
  • 197
  • 188
Goun2
  • 417
  • 1
  • 11
  • 22
  • 3
    You don't need to “set where the static files for the DAL are”. You need to run `./manage.py collectstatic` in the server. – Andrey Shipilov Mar 23 '17 at 00:33

1 Answers1

1

I solved by doing the following

STATIC_URL = '/static/'
STATIC_ROOT = '/home/myuser/myapp/static'

Static Files

URL Directory

/static/    /home/myuser/myapp/static
Goun2
  • 417
  • 1
  • 11
  • 22