Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fullcalendar.css does not exist #38

Open
Liamhanninen opened this issue Nov 3, 2019 · 5 comments
Open

fullcalendar.css does not exist #38

Liamhanninen opened this issue Nov 3, 2019 · 5 comments

Comments

@Liamhanninen
Copy link

I couldn't find it in Windows file explorer. And just to make sure I wasn't crazy I used github's 'Find File' feature. It's referenced in fullcalendar.html:

<link rel='stylesheet' type='text/css' href="{% static 'fullcalendar/dist/fullcalendar.css' %}" />

@woody1329
Copy link
Contributor

I searched google and found a fullcalendar.css example from fullcalendar.io and copied it to bower_components\fullcalendar\dist and then ran collectstatic command and voila.

@Liamhanninen
Copy link
Author

Great solution thanks for digging that up! But before I close this I wonder if it's expected to be included. If I'm the only one who expects it then I'll close it but it seems like the fullcalendar.css is expected by design. In which case I should leave this open until it's added to the repo, correct?

@llazzaro
Copy link
Owner

The idea was not to include third party css into the repo. That's why bower was added.
However bower is almost dead now and we need to replace it.

@mhunchojack
Copy link

For the time-being, can you provide a fullcalendar.css? I tried using css from fullcalendar.io, but its only showing grids. Thanks

@robertpro
Copy link

So far, this is how I make the fullcalendar page work

{% extends "base.html" %}

{% load i18n static %}

{% block head_title %}{% trans "Fullcalendar" %}{% endblock %}

{% block tab_id %}id="home_tab"{% endblock %}

{% block extra_head %}
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@5/main.min.css">

    <script src="https://cdn.jsdelivr.net/npm/fullcalendar@5/locales-all.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/fullcalendar@5/main.min.js"></script>
{% endblock %}

{% block body %}
    <div id="calendar"></div>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            var calendarEl = document.getElementById('calendar');
            var calendar = new FullCalendar.Calendar(calendarEl, {
                initialView: 'dayGridMonth',
                timeZone: 'America/Mexico_City',
                events: '/schedule/api/occurrences?calendar_slug=example',
            });
            calendar.render();
        });
    </script>

{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants