Commits

Udi Bauman committed 6549ca4

enabled static files

  • Participants
  • Parent commits 5c2d244

Comments (0)

Files changed (5)

django_ultrasound/app.yaml

   static_dir: django/contrib/admin/media
   expiration: '0'
 
+- url: /static/
+  static_dir: static/
+
 - url: /.*
   script: djangoappengine/main/main.py

django_ultrasound/employees/admin.py

     pass
 
 
+
 admin.site.register(EmployeeType, EmployeeTypeAdmin)
 
 
 class ActivityAdmin(admin.ModelAdmin):
     list_display = ["employee", "activity", "customer", "old_customer_status", "new_customer_status", "date_of_activity"]
     list_filter = ["employee", "activity", "old_customer_status", "new_customer_status", "customer"]
-    
-    
+
+
 admin.site.register(Activity, ActivityAdmin)
 
 

django_ultrasound/employees/templates/list_employees_report.html

 {% extends "admin/base_site.html" %}
 {% load i18n %}
 
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
+{% block extrastyle %}{{ block.super }}
+    <link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />
+    <link rel="stylesheet" type="text/css" href="/static/css/main.css" />
+{% endblock %}
 
 {% block coltype %}colMS{% endblock %}
 
 
 {% block content %}
 <div id="content-main">
-<table width="80%" border="1">
+<table class="report_table" width="80%" border="1">
 
     {% for et in types %}
 

django_ultrasound/settings.py

 
 
 ADMIN_MEDIA_PREFIX = '/media/admin/'
-STATICFILES_ROOT = os.path.join(os.path.dirname(__file__), '_generated_media')
+STATICFILES_ROOT = os.path.join(os.path.dirname(__file__), 'static')
 STATICFILES_DIRS = (
     os.path.join(os.path.dirname(__file__), 'static'),
 )
-STATICFILES_URL = '/media/'
-MEDIA_URL = '/files/'
+STATICFILES_URL = '/static/'
+MEDIA_URL = '/static/'
 TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),)
 
 ROOT_URLCONF = 'urls'

django_ultrasound/static/css/main.css

+
+
+.report_table {
+    background-color:#afeeff;
+}