diff --git a/blechreiz/calendarCredentials.dat b/blechreiz/calendarCredentials.dat new file mode 100644 index 0000000..4e71385 --- /dev/null +++ b/blechreiz/calendarCredentials.dat @@ -0,0 +1 @@ +{"_module": "oauth2client.client", "token_expiry": "2014-04-19T18:37:13Z", "access_token": "ya29.1.AADtN_UNi3N8wJ5AiTZ3ced1ho7-ZOhe9cV0TqJ7lByEy_h5SHGm0EuZBSWVOQ3q3g", "token_uri": "https://accounts.google.com/o/oauth2/token", "invalid": false, "token_response": {"access_token": "ya29.1.AADtN_UNi3N8wJ5AiTZ3ced1ho7-ZOhe9cV0TqJ7lByEy_h5SHGm0EuZBSWVOQ3q3g", "token_type": "Bearer", "expires_in": 3600}, "client_id": "34462582242-4kpdvvbi27ajt4u22uitqurpve9o8ipj.apps.googleusercontent.com", "id_token": null, "client_secret": "y4t9XBrJdCODPTO5UvtONWWn", "revoke_uri": "https://accounts.google.com/o/oauth2/revoke", "_class": "OAuth2Credentials", "refresh_token": "1/7-6-m_lLAKX8IeD7OuGtkcIiprty_nZUSxhMunSC5b0", "user_agent": null} \ No newline at end of file diff --git a/blechreiz/settings.py b/blechreiz/settings.py index 1998979..137fdd7 100644 --- a/blechreiz/settings.py +++ b/blechreiz/settings.py @@ -183,6 +183,8 @@ GCAL_COUPLING = { 'clientId' : '34462582242-4kpdvvbi27ajt4u22uitqurpve9o8ipj.apps.googleusercontent.com', 'client_secret' : 'y4t9XBrJdCODPTO5UvtONWWn', 'credentials_file' : PROJECT_PATH + '/calendarCredentials.dat', + 'push_url' : "https://test.bauer.technology/eventplanner_gcal/gcalApiCallback", + #'push_url' : "https://test.bauer.technology/callbackTest2.php", } diff --git a/blechreiz/urls.py b/blechreiz/urls.py index bb14405..360a9bf 100644 --- a/blechreiz/urls.py +++ b/blechreiz/urls.py @@ -9,8 +9,9 @@ import musicians.urls #import imagestore.urls import website.urls import scoremanager.urls +import eventplanner_gcal.urls + -from eventplanner_gcal.views import * import settings from django.conf.urls.static import static @@ -18,13 +19,13 @@ from django.conf.urls.static import static admin.autodiscover() urlpatterns = patterns('', - url(r'^', include(website.urls) ), - url(r'^events/', include( eventplanner.urls.urlpatterns) ), - url(r'^musicians/', include( musicians.urls.urlpatterns) ), - url(r'^scores/', include( scoremanager.urls.urlpatterns) ), - url(r'^messages/$', simpleforum.views.message_view ), - url(r'^admin/', include(admin.site.urls) ), - url(r'^location_field/', include('location_field.urls')), + url(r'^', include( website.urls ) ), + url(r'^events/', include( eventplanner.urls.urlpatterns) ), + url(r'^musicians/', include( musicians.urls.urlpatterns) ), + url(r'^scores/', include( scoremanager.urls.urlpatterns) ), + url(r'^messages/$', simpleforum.views.message_view ), + url(r'^admin/', include( admin.site.urls ) ), + url(r'^location_field/', include( 'location_field.urls' ) ), + url(r'^eventplanner_gcal/', include( eventplanner_gcal.urls) ), #url(r'^gallery/', include(imagestore.urls, namespace='imagestore') ), - url(r'^eventSync/', runSync ) ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/bootstrapTheme/templates/bootstrapTheme/bootstrapTheme.html b/bootstrapTheme/templates/bootstrapTheme/bootstrapTheme.html index 69c8926..d633e7d 100644 --- a/bootstrapTheme/templates/bootstrapTheme/bootstrapTheme.html +++ b/bootstrapTheme/templates/bootstrapTheme/bootstrapTheme.html @@ -6,7 +6,7 @@ {% addtoblock "css" strip %} {% endaddtoblock %} {% addtoblock "css" strip %} {% endaddtoblock %} {% addtoblock "css" strip %} {% endaddtoblock %} -{% addtoblock "css" strip %} {% endaddtoblock %} +{% addtoblock "css" strip %} {% endaddtoblock %} {% addtoblock "css" %} {% endblock %} {% if user.is_authenticated %}