diff --git a/sbhs/context_processors.py b/sbhs/context_processors.py index 104a55b..ff51f99 100644 --- a/sbhs/context_processors.py +++ b/sbhs/context_processors.py @@ -5,8 +5,8 @@ def production_details(request): Context processor to access settings.py CONSTANTS in django template. """ - return { - 'sitename':'vlabs.iitb.ac.in/sbhs', - 'domain':settings.PRODUCTION_URL, - 'vlabs_team':settings.SENDER_NAME, - } \ No newline at end of file + context={} + context['sitename'] = request.META['HTTP_HOST'] + context['domain'] = settings.PRODUCTION_URL + context['vlabs_team'] = settings.SENDER_NAME + return context \ No newline at end of file diff --git a/sbhs/models.py b/sbhs/models.py index 506ba14..b0154fb 100644 --- a/sbhs/models.py +++ b/sbhs/models.py @@ -11,6 +11,10 @@ MOD_GROUP_NAME = 'moderator' +SLOT_TYPES = ( + ('cs','CS'), + ('as','AS'), + ) def create_group(group_name, app_label): try: @@ -146,6 +150,7 @@ class Slot(models.Model): end_time = models.DateTimeField("End time of a slot", default=timezone.now()+timedelta( minutes=settings.SLOT_DURATION)) + type_ = models.CharField(max_length=10, choices=SLOT_TYPES) objects = SlotManager() diff --git a/sbhs/templates/base.html b/sbhs/templates/base.html index 5543e0c..6827e21 100644 --- a/sbhs/templates/base.html +++ b/sbhs/templates/base.html @@ -52,6 +52,8 @@
  • Info
  • Theory
  • Procedure
  • +
  • Contact Us
  • +
  • Forums
  • @@ -78,7 +80,6 @@
    - {% if messages %}