Commits

Victor Martinez committed 252c158

Fixed urls and wsgi settings for easier deployment

  • Participants
  • Parent commits 62b65b6

Comments (0)

Files changed (3)

File CPMX4Scheduler/settings.py

 # Examples: "http://example.com/media/", "http://media.example.com/"
 MEDIA_URL = ''
 
+STATIC_ROOT = ''
+ 
+ # URL prefix for static files.
+ # Example: "http://example.com/static/", "http://static.example.com/"
+STATIC_URL = '/static/'
+ 
+ # Additional locations of static files
+STATICFILES_DIRS = (
+    # Put strings here, like "/home/html/static" or "C:/www/django/static".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+)
+ 
 # Absolute path to the directory static files should be collected to.
 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
     'django.contrib.admin',
     # Uncomment the next line to enable admin documentation:
     # 'django.contrib.admindocs',
+    'bootstrap_toolkit',
 )
 
 # A sample logging configuration. The only tangible logging

File CPMX4Scheduler/urls.py

 from django.conf.urls import patterns, include, url
 
 # Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Examples:
     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
     # Uncomment the next line to enable the admin:
-    # url(r'^admin/', include(admin.site.urls)),
+     url(r'^admin/', include(admin.site.urls)),
 )

File CPMX4Scheduler/wsgi.py

 # Apply WSGI middleware here.
 # from helloworld.wsgi import HelloWorldApplication
 # application = HelloWorldApplication(application)
+
+from dj_static import Cling
+
+application = Cling(get_wsgi_application())