Alex Kehayias avatar Alex Kehayias committed 41def6a

set up template directories and paths in settings

Comments (0)

Files changed (10)

Binary file modified.

 # 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 = (

Binary file modified.

Binary file modified.

Binary file modified.

Binary file modified.

 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]

Binary file modified.

     # 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')),
 

Binary file modified.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.