django-scheduler can't find static files

492 Views Asked by At

I'm new to Django. I followed the instructions on the README and then I couldn't find any further instructions on how to use scheduler, so I copied the fullcalendar.html from the django-scheduler-sample project into my project. However, it can't find any of the css or js files required after a collectstatic or a bower install. Is there a detailed tutorial somewhere on how to add django-scheduler to an app? Why is fullcalendar.css not being added to staticfiles? I'm using Django 1.10.5, Nginx, and Gunicorn.

1

There are 1 best solutions below

7
On

first u nead to install the django-scheduler with this command :

pip install django-scheduler

and add this to your setting.py on installed_apps:

'schedule',

second you need to install nodjs on your OS:

https://nodejs.org/en/download/package-manager/

after this you need to set up your assets :

run this commands:

npm install -g bower
pip install django-bower

add this to settings.py

add to INSTALLED_APPS:

'djangobower',

Add staticfinder to STATICFILES_FINDERS:

'djangobower.finders.BowerFinder',

Specify the path to the components root (you need to use an absolute path):

BOWER_COMPONENTS_ROOT = '/PROJECT_ROOT/components/'

Add the following Bower dependencies for scheduler:

BOWER_INSTALLED_APPS = (
    'jquery',
    'jquery-ui',
    'bootstrap'
)

Last step, install bower dependencies with:

./manage.py bower install

and for more information read this : https://github.com/llazzaro/django-scheduler

http://django-scheduler.readthedocs.io/en/latest/