From 300b752fb20bdf42f24422e7c2291f256e827dec Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Wed, 13 Nov 2013 13:23:06 +0530 Subject: changes to make the static files work --- scipy2012/settings.py | 11 ++++++----- templates/base.html | 19 +++++++++++++++---- templates/conference/keynote.html | 6 +++--- templates/conference/sponsors.html | 8 ++++---- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/scipy2012/settings.py b/scipy2012/settings.py index 478ada0..8fe709b 100755 --- a/scipy2012/settings.py +++ b/scipy2012/settings.py @@ -1,5 +1,6 @@ # Django settings for scipy2012 project. from os.path import * +from local import * DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -14,11 +15,11 @@ MANAGERS = ADMINS DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'scipy2012.db', # Or path to database file if using sqlite3. + 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'scipy2012', # Or path to database file if using sqlite3. # The following settings are not used with sqlite3: - 'USER': '', - 'PASSWORD': '', + 'USER': 'root', + 'PASSWORD': DB_PASS, 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. 'PORT': '', # Set to empty string for default. } @@ -68,7 +69,7 @@ STATIC_ROOT = '' # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/" -STATIC_URL = '/static/' +STATIC_URL = '/2012/static/' # Additional locations of static files STATICFILES_DIRS = ( diff --git a/templates/base.html b/templates/base.html index 7fefd8a..266d5c3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,3 +1,4 @@ +{% load static %} @@ -7,7 +8,7 @@ - +
@@ -29,7 +30,6 @@
  • Sponsors
  • -
  • About
  • @@ -45,8 +45,19 @@

    SciPy India 2012

    Conference on Python for Education & Scientific Computing
    -

    SciPy India, a free, fully standards-compliant CSS template designed by FreeCSSTemplates.org. The photos in this template are from Fotogrph. This free template is released under a Creative Commons Attributions 3.0 license, so you are pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :)

    - Lear More +

    SciPy India, a conference providing opportunities to spread the use of + the Python programming language in the Scientific Computing community + in India. It provides a unique opportunity to interact with the "Who's + who" of the Python for Scientific Computing fraternity and learn, + understand, participate, and contribute to Scientific Computing using + Python. Attendees of the conference and participants of the sprints + planned will be able to access and review the tools available. They + will also be able to learn domain-specific applications and how the + tools apply to a plethora of application problems. + One of the goals of the conference is to combine education, engineering, + and science with computing through the medium of Python. This conference + also aims to spread the use of Python for Scientific Computing in + various fields and among different communities. This was the 4th Consecutive year of the conference.

    {% endblock %} diff --git a/templates/conference/keynote.html b/templates/conference/keynote.html index dc6f377..f38e299 100644 --- a/templates/conference/keynote.html +++ b/templates/conference/keynote.html @@ -1,16 +1,16 @@ {% extends "base.html" %} - +{% load static %} {% block content %}

    Keynote by Dr. Ole Nielsen

    Ole Nielsen has been an Open Source adopter, promotor and developer since the early nineties during his career as technical consultant, academic researcher, government scientist and development professional within an aid organisation. Ole has a double Master's degree in Mathematics and Computer Science as well as a PhD in scientific computing from universities in Denmark. Ole joined AusAID in Jakarta in 2010 to support the Indonesian government in multi-hazard disaster risk reduction.

    - + -Download Slides +Download Slides {% endblock %} diff --git a/templates/conference/sponsors.html b/templates/conference/sponsors.html index 9a7289a..bb2238e 100644 --- a/templates/conference/sponsors.html +++ b/templates/conference/sponsors.html @@ -1,23 +1,23 @@ {% extends "base.html" %} - +{% load static %} {% block content %}

    Sponsors


    -
         +
        

    Enthought Inc. is a software company based in Austin, Texas, USA that develops scientific computing solutions using primarily the Python programming language. It is best known for the early development and maintenance of the SciPy library of mathematics, science, and engineering algorithms and for its Python for scientific computing distribution Enthought Canopy (formerly EPD).

    -
         +
         The FOSSEE project undertaken by IIT Bombay is funded by Ministry of Human Resource Development(Govt. of India) under National Mission on Education through ICT

    Orgranizers

    -
         +
         Annual SciPy India conference is organized by the team members of FOSSEE project. For any queries you may writes us at info[at]fossee[dot]in
    -- cgit