Giter Site home page Giter Site logo

radis / pyref Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hitranonline/pyref

0.0 0.0 0.0 146 KB

refs is an automatic referencing system for scientific databases.

License: Apache License 2.0

Python 48.09% CSS 0.92% HTML 2.51% Jupyter Notebook 48.48%

pyref's Introduction

refs

refs is a Django application to create references for scientific databases. The goal of the app is to create a referencing system where an administrator need only enter the Digital Object Identifier (DOI) of an article and in return get the full citation of the aforementioned article. This system is setup to output references in HTML, BibTeX and JSON format with the following information from the article: The citations in this notebook are retrieving the following information on a paper: Title, Authors, Journal Name, Volume Number, Page Range, Year, Hyperlink(s) to the Article and DOI of the Article.

Detailed Setup -----------1. Set up your local_settings.py file.

Include your Secret_Key in Secret_Key = : This is used to provide cryptographic signing, and should be set to a unique, unpredictable value.

django-admin startproject automatically adds a randomly-generated SECRET_KEY to each new project. Uses of the key shouldn’t assume that it’s text or bytes. Every use should go through force_str() or force_bytes() to convert it to the desired type. Django will refuse to start if SECRET_KEY is not set.

Setup your database information: An example is shown below, DATABASES = 'default': 'ENGINE': 'django.db.backends.postgresql',

'NAME': 'mydatabase',

'USER': 'mydatabaseuser',

'PASSWORD': 'mypassword',

'HOST': '127.0.0.1',

'PORT': '5432',

More information on how to setup your settings.py file can be found here: https://docs.djangoproject.com/en/3.0/ref/settings/

  1. Setup your conf.py file.

    webapp_path = os.path.join('/Users/user_name/name_of_file')

    In the above webapp_path information you should change user_name to your user name listed on your computer. file_name is the name of the file where the refs django application is stored.

  2. Create your environment and upload the required modules and packages. A good reference for this step is at https://tutorial.djangogirls.org/en/django_installation/

    Execute the following in your command line (for windows users) other users please refer to the link above

    cd file_name

    python -m venv myvenv

    myvenv\Scripts\activate

    pip install -r requirements.txt

    python manage.py migrate

    python manage.py runserver

Notes:

*S in Scripts is capitalized

*file_name is the file where this django application is stored

*myvenv is the created virtual environment, you can call it any name, here I chose myvenv

*you may need to manually install mysqlclient 1.4.4, django 1.11 and requests 2.22, and for windows you may need the binary file 'mysqlclient-1.4.4-64_or_32_bit.whl' which can be found online (commonly on university websites)

*after you complete runserver step, copy and paste the http generated link, in the webpage and upon reaching the refs page enter your doi press enter and observe your generated reference!

*depending on your database setup, upon pasting the link and reaching the webpage you may be prompted to enter a username and password. If you encounter problems with access to the refs webpage then run "python manage.py createsuperuser" this is a quick fix to the issue.

pyref's People

Contributors

dependabot[bot] avatar fskinner19 avatar hitranonline avatar xnx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.