summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project/scipycon/base/models.py4
-rw-r--r--project/scipycon/registration/models.py5
-rw-r--r--project/scipycon/registration/views.py4
-rw-r--r--project/settings.py27
4 files changed, 38 insertions, 2 deletions
diff --git a/project/scipycon/base/models.py b/project/scipycon/base/models.py
index 0e8d7c4..3146ca4 100644
--- a/project/scipycon/base/models.py
+++ b/project/scipycon/base/models.py
@@ -75,3 +75,7 @@ class ScopedBase(models.Model):
class Meta:
abstract = True
+
+
+class Paid(models.Model):
+ event_start = models.DateTimeField(blank=True, null=True)
diff --git a/project/scipycon/registration/models.py b/project/scipycon/registration/models.py
index a465bdc..87851cf 100644
--- a/project/scipycon/registration/models.py
+++ b/project/scipycon/registration/models.py
@@ -78,3 +78,8 @@ class Registration(base_models.ScopedBase):
return 'Registration for user: <%s %s> %s' % (
self.registrant.first_name,
self.registrant.last_name, self.registrant.email)
+
+
+class Payment(base_models.ScopedBase):
+ """ Defines Payment Details of Users """
+ pass
diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py
index 04d79a3..28f374c 100644
--- a/project/scipycon/registration/views.py
+++ b/project/scipycon/registration/views.py
@@ -227,7 +227,7 @@ def submit_registration(request, scope,
wifi = wifi_form.save(registrant, scope_entity)
- send_confirmation(registrant, scope_entity,password=passwd)
+ # send_confirmation(registrant, scope_entity,password=passwd)
redirect_to = reverse('scipycon_registrations',
kwargs={'scope': scope})
@@ -274,4 +274,4 @@ def regstats(request, scope,
'conf_num': conf_num,
'tut_num': tut_num,
'sprint_num': sprint_num,
- })) \ No newline at end of file
+ }))
diff --git a/project/settings.py b/project/settings.py
index b8a94ba..0287cf2 100644
--- a/project/settings.py
+++ b/project/settings.py
@@ -7,6 +7,7 @@ ADMINS = (
MANAGERS = ADMINS
+DEBUG=False
DATABASE_HOST = ''
DATABASE_PORT = ''
@@ -77,3 +78,29 @@ DEFAULT_FROM_EMAIL = 'admin@scipy.in'
CURRENT_SCOPE = 'scipyin/2010'
LOGIN_URL = '/%s/login' % (CURRENT_SCOPE)
+
+DATABASE_ENGINE = 'sqlite3'
+DATABASE_NAME = 'scipycon.db'
+DATABASE_USER = ''
+DATABASE_PASSWORD = ''
+
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.comments',
+ 'django.contrib.sessions',
+ 'django.contrib.admin',
+ 'django.contrib.sites',
+ 'django.contrib.flatpages',
+ 'django.contrib.markup',
+ 'django.contrib.sitemaps',
+ 'project.scipycon',
+ 'project.scipycon.base',
+ 'project.scipycon.proceedings',
+ 'project.scipycon.registration',
+ 'project.scipycon.user',
+ 'project.scipycon.talk',
+ 'tagging',
+ 'robots',
+)
+