1. Alex Kehayias
  2. Outbreak

Commits

Alex Kehayias  committed 41def6a

set up template directories and paths in settings

  • Participants
  • Parent commits 11a290e
  • Branches default

Comments (0)

Files changed (10)

File __init__.pyc

  • Ignore whitespace
Binary file modified.

File settings.py

View file
  • Ignore whitespace
 # Django settings for Fourskill project.
+import os
+PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
 
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
+    os.path.join(PROJECT_PATH, "templates"),
 )
 
 INSTALLED_APPS = (

File settings.pyc

  • Ignore whitespace
Binary file modified.

File team/__init__.pyc

  • Ignore whitespace
Binary file modified.

File team/admin.pyc

  • Ignore whitespace
Binary file modified.

File team/models.pyc

  • Ignore whitespace
Binary file modified.

File team/views.py

View file
  • Ignore whitespace
 venue = '4c5c076c7735c9b6af0e8b72'
 
 def index(request):
-    pass
+    return direct_to_template(request, 'index.html')
 
 def infect():
     #for "list of foursquare IDs":
     # direct_to_template('infected.html', {)
     pass
 
-def index(request):
+#def index(request):
     # here = fs.venues_herenow(venue)
     # for here.items:
     #     list_of_ids = [i['user']['id'] for i in items]
     # render_to_response (list_of_ids)
-    pass
+    
+    #pass
 
 # here.items()[1][1]['hereNow']['items'][0]['user']['id']
 # [i['user']['id'] for i in items]

File team/views.pyc

  • Ignore whitespace
Binary file modified.

File urls.py

View file
  • Ignore whitespace
     # Example:
     # (r'^Fourskill/', include('Fourskill.foo.urls')),
     url(r'^$', "team.views.index", name="team-index"),
+    url(r'^infected/', "team.views.infected", name="team-infected"),
     # Uncomment the admin/doc line below to enable admin documentation:
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 

File urls.pyc

  • Ignore whitespace
Binary file modified.