Official PSSI website
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
assets/static
pssi
templates
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
README.md
manage.py
requirements.txt

README.md

How to setup

  • Create a PostgreSQL 9.3 database

  • Create a file named local_settings.py inside the pssi directory. The file content looks like this -

     DEBUG=True
    
     DATABASES = {
         'default': {
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'NAME': 'LOCAL_DBNAME',
             'USER': 'USERNAME',
             'PASSWORD': 'PASSWORD',
             'HOST': '',
             'PORT': ''
         }
     }
    
     EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
    
  • Run python manage.py syncdb and create a superuser when prompted

  • Run python manage.py migrate to apply pending migrations

  • Run python manage.py runserver

Configuring Django-allauth

  • Go to /admin/ > Sites and change the default site's(the one with ID = 1) name and display to localhost:8000 or whatever you use to develop locally.
  • Go to Social Applications in admin panel and add Github and Google's auth details

Payment Link

  • Add MEMBERSHIP_PAYMENT_LINK in local_settings.py for testing Rs 0 payemnt. Url is https://www.instamojo.com/pssi/test-pssi-membership/.