haqiba.org | Generate & download custom Emacs init file.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
emacshaqiba
haqiba
media
static
templates
COPYING
ReadMe.org
manage.py
populate_haqiba.py
requirements.txt

ReadMe.org

Haqiba

./static/images/backpack.png Generate & Download custom Emacs init file.

Currently supports GNU Emacs init configuration. Select codes you want to have in you Emacs init and generate it. It has a feature to submit new code(with screenshot) which will be available for download. The web-app is written in Python-django and can be extended for Vim.

Clone

  • Clone this repository
    git clone https://github.com/psachin/haqiba.git
        

Usage

  • Install dependency using virtualenv. To know more about virtualenv visit this link.
    pip install -r requirements.txt
        

Populate database

  • populate_haqiba.py will create an Admin user with one regular user, finally it populates the database with pre-written code snippets.
  • Create a new file store.py with following content.
    • - - - 8<- - - - - - - - - - - - - - - - - - - - - - -
      user1 = {
          'USERNAME': "sachin",
          'PASSWORD': "mysupersecretepassword",
          'EMAIL' : "isachin@iitb.ac.in",
          'WEBSITE': "haqiba.org",
          'PHOTO': "profile_image/tas_devil.gif"
      }
      
      user2 = {
          'USERNAME': "user2",
          'PASSWORD': "secretpassword",
          'EMAIL' : "user2@example.com",
          'WEBSITE': "example.com",
          'PHOTO': "profile_image/user2_photo.jpg"
      }
      
      ..
      
      users = [user1, user2, ..]
      
              
    • - - - - - - - - - - - - - - - - - - - - - >8- - - -
  • Note: You should copy profile images to media/profile_image directory and tarballs to media/deps.
  • And run the script
    python populate_haqiba.py
        

    It will prompt for admin password.

  • Finally run server
    python manage.py runserver
        

Deploying

  • Please refer this link for deploying on the server. The link refers to deployment of ‘webportal’ django app, make relevant changes with respect to haqiba(Use your commonsense).

Contributing

  • Never edit the master branch.
  • Make a branch specific to the feature you wish to contribute on.
  • Send us a pull request.
  • Please follow PEP8 style guide when coding in Python.

License