I am looking to use the Django-Scheduler package in my Django project but am finding it difficult to understand how to actually implement the calendar so that it can be seen on the actual website. My website is meant to be a timetable scheduling system where users can login and use and edit there own timetable/calendar. I have already implemented the login and registrastion using django registration redux. I have also already installed django-scheduler using pip and have edited my projects settings like so:
我希望在Django项目中使用Django调度器包,但是我发现很难理解如何实际实现日历,以便在实际的网站上看到它。我的网站是一个时间表安排系统,用户可以登录,使用和编辑自己的时间表/日历。我已经使用django注册redux实现了登录和注册。我也已经安装了使用pip的django调度器,并编辑了我的项目设置如下:
INSTALLED_APPS += ('schedule',)
add to
添加到
TEMPLATE_CONTEXT_PROCESSORS += (
"django.core.context_processors.request",
)
This is explained on the github page for django-scheduler. I have read through the documentation but am still not sure as to how to have a usable calendar on the page the user is sent to after logging in.
这在github的django调度器页面上得到了解释。我已经阅读了文档,但仍然不确定如何在登录后发送给用户的页面上有一个可用的日历。
Could someone please explain to me as to how I can achieve this. What do I put in my projects url.py file for django-scheduler
like eg the url for django-calendarium
,
有人能向我解释一下我是如何做到这一点的吗?我把什么放到我的项目url里。py文件用于django调度器如django日历的url,
url(r'^calendar/', include('calendarium.urls')),
Do I have to create new templates etc.
我需要创建新的模板吗?
Hope somebody can help ! Thanks
希望有人能帮忙!谢谢
1 个解决方案
#1
1
this will serve you
这将为您服务
url(r'^calendar/', include('schedule.urls')),
if you still to know more about the url, views, models and config of schedule check https://github.com/llazzaro/django-scheduler/tree/develop/schedule and https://github.com/llazzaro/django-scheduler/tree/develop/schedule/urls.py for
如果您还想了解更多关于日程的url、视图、模型和配置的信息,请查看https://github.com/llazzaro/django调度器/ tree/develope/schedule以及https://github.com/llazzaro/django调度器/tree/develop/schedule/urls.py
#1
1
this will serve you
这将为您服务
url(r'^calendar/', include('schedule.urls')),
if you still to know more about the url, views, models and config of schedule check https://github.com/llazzaro/django-scheduler/tree/develop/schedule and https://github.com/llazzaro/django-scheduler/tree/develop/schedule/urls.py for
如果您还想了解更多关于日程的url、视图、模型和配置的信息,请查看https://github.com/llazzaro/django调度器/ tree/develope/schedule以及https://github.com/llazzaro/django调度器/tree/develop/schedule/urls.py