Skip to content

Commit

Permalink
Add a template for local_settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xnx committed Nov 23, 2019
1 parent ce23fc6 commit 98bcb0d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 54 deletions.
119 changes: 65 additions & 54 deletions notebooks/References Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -85,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -107,15 +107,15 @@
},
{
"cell_type": "code",
"execution_count": 99,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Enter DOI Here: 10.1016/j.jqsrt.2019.04.040\n",
"2019JQSRT.232...35H\n"
"Enter DOI Here: 10.1016/j.jqsrt.2019.106711\n",
"2020JQSRT.24106711C\n"
]
}
],
Expand Down Expand Up @@ -256,22 +256,22 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"authors: Hargreaves, R. J., I. E. Gordon, L. S. Rothman, S. A. Tashkun, V. I. Perevalov, A. A. Lukashevskaya, S. N. Yurchenko, J. Tennyson, and H. S. P. Müller\n",
"title: Spectroscopic line parameters of NO, NO<SUB>2</SUB>, and N<SUB>2</SUB>O for the HITEMP database\n",
"authors: Conway, E. K., I. E. Gordon, A. A. Kyuberis, O. L. Polyansky, J. Tennyson, and N. F. Zobov\n",
"title: Calculated line lists for H<SUB>2</SUB><SUP>16</SUP>O and H<SUB>2</SUB><SUP>18</SUP>O with extensive comparisons to theoretical and experimental sources including the HITRAN2016 database\n",
"journal: Journal of Quantitative Spectroscopy and Radiative Transfer\n",
"volume: 232\n",
"start-page: 35\n",
"end-page: 53\n",
"year: 2019\n",
"doi: 10.1016/j.jqsrt.2019.04.040\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2019JQSRT.232...35H\n"
"volume: 241\n",
"start-page: 106711\n",
"end-page: %P\n",
"year: 2020\n",
"doi: 10.1016/j.jqsrt.2019.106711\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2020JQSRT.24106711C\n"
]
}
],
Expand Down Expand Up @@ -315,22 +315,22 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"authors: Hargreaves, R.~J., I.~E. Gordon, L.~S. Rothman, S.~A. Tashkun, V.~I. Perevalov, A.~A. Lukashevskaya, S.~N. Yurchenko, J. Tennyson, and H.~S.~P. M{\"u}ller\n",
"title: Spectroscopic line parameters of NO, NO$_{2}$, and N$_{2}$O for the HITEMP database\n",
"authors: Conway, E.~K., I.~E. Gordon, A.~A. Kyuberis, O.~L. Polyansky, J. Tennyson, and N.~F. Zobov\n",
"title: Calculated line lists for H$_{2}$$^{16}$O and H$_{2}$$^{18}$O with extensive comparisons to theoretical and experimental sources including the HITRAN2016 database\n",
"journal: Journal of Quantitative Spectroscopy and Radiative Transfer\n",
"volume: 232\n",
"start-page: 35\n",
"end-page: 53\n",
"year: 2019\n",
"doi: 10.1016/j.jqsrt.2019.04.040\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2019JQSRT.232...35H\n"
"volume: 241\n",
"start-page: 106711\n",
"end-page: %P\n",
"year: 2020\n",
"doi: 10.1016/j.jqsrt.2019.106711\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2020JQSRT.24106711C\n"
]
}
],
Expand Down Expand Up @@ -375,22 +375,22 @@
},
{
"cell_type": "code",
"execution_count": 102,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"authors: Hargreaves, R. J., I. E. Gordon, L. S. Rothman, S. A. Tashkun, V. I. Perevalov, A. A. Lukashevskaya, S. N. Yurchenko, J. Tennyson, and H. S. P. Müller\n",
"title: Spectroscopic line parameters of NO, NO&lt;SUB&gt;2&lt;/SUB&gt;, and N&lt;SUB&gt;2&lt;/SUB&gt;O for the HITEMP database\n",
"authors: Conway, E. K., I. E. Gordon, A. A. Kyuberis, O. L. Polyansky, J. Tennyson, and N. F. Zobov\n",
"title: Calculated line lists for H&lt;SUB&gt;2&lt;/SUB&gt;&lt;SUP&gt;16&lt;/SUP&gt;O and H&lt;SUB&gt;2&lt;/SUB&gt;&lt;SUP&gt;18&lt;/SUP&gt;O with extensive comparisons to theoretical and experimental sources including the HITRAN2016 database\n",
"journal: Journal of Quantitative Spectroscopy and Radiative Transfer\n",
"volume: 232\n",
"start-page: 35\n",
"end-page: 53\n",
"year: 2019\n",
"doi: 10.1016/j.jqsrt.2019.04.040\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2019JQSRT.232...35H\n"
"volume: 241\n",
"start-page: 106711\n",
"end-page: %P\n",
"year: 2020\n",
"doi: 10.1016/j.jqsrt.2019.106711\n",
"bibcode: https://ui.adsabs.harvard.edu/abs/2020JQSRT.24106711C\n"
]
}
],
Expand Down Expand Up @@ -436,28 +436,29 @@
},
{
"cell_type": "code",
"execution_count": 103,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Authors: R. J. Hargreaves, I. E. Gordon, L. S. Rothman, S. A. Tashkun, V. I. Perevalov, A. A. Lukashevskaya, S. N. Yurchenko, J. Tennyson, H. S.P. Müller \n",
"Title: Spectroscopic line parameters of NO, NO2, and N2O for the HITEMP database \n",
"Journal: Journal of Quantitative Spectroscopy and Radiative Transfer \n",
"Volume: 232 \n",
"Year: 2019 \n",
"Page Start: 35 \n",
"Page End: 53 \n",
"Enter doi Here: 10.1093/mnras/stt1971\n",
"Authors: S. Recchi, F. Calura, B. K. Gibson, P. Kroupa \n",
"Title: The [ /Fe] ratios of very metal-poor stars within the integrated galactic initial mass function theory \n",
"Journal: Monthly Notices of the Royal Astronomical Society \n",
"Volume: 437 \n",
"Year: 2013 \n",
"Page Start: 994 \n",
"Page End: 1008 \n",
"Article Number: \n",
"DOI: 10.1016/j.jqsrt.2019.04.040 \n",
"URL: http://dx.doi.org/10.1016/j.jqsrt.2019.04.040 \n"
"DOI: 10.1093/mnras/stt1971 \n",
"URL: http://dx.doi.org/10.1093/mnras/stt1971 \n"
]
}
],
"source": [
"#doi = input(\"Enter doi Here: \")\n",
"doi = input(\"Enter doi Here: \")\n",
"doi_fetched = get_source_from_doi('{}'.format(doi))\n",
"\n",
"# Below are the parameters for searching your citation\n",
Expand Down Expand Up @@ -486,16 +487,16 @@
},
{
"cell_type": "code",
"execution_count": 104,
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'(&#x27;R. J. Hargreaves, I. E. Gordon, L. S. Rothman, S. A. Tashkun, V. I. Perevalov, A. A. Lukashevskaya, S. N. Yurchenko, J. Tennyson, H. S.P. Müller&#x27;, &#x27;Spectroscopic line parameters of NO, NO2, and N2O for the HITEMP database&#x27;, &#x27;Journal of Quantitative Spectroscopy and Radiative Transfer&#x27;, &#x27;232&#x27;, 2019, &#x27;35&#x27;, &#x27;53&#x27;, &#x27;10.1016/j.jqsrt.2019.04.040&#x27;, &#x27;http://dx.doi.org/10.1016/j.jqsrt.2019.04.040&#x27;, &#x27;&#x27;)'"
"'(&#x27;S. Recchi, F. Calura, B. K. Gibson, P. Kroupa&#x27;, &#x27;The [\\\\xa0/Fe] ratios of very metal-poor stars within the integrated galactic initial mass function theory&#x27;, &#x27;Monthly Notices of the Royal Astronomical Society&#x27;, &#x27;437&#x27;, 2013, &#x27;994&#x27;, &#x27;1008&#x27;, &#x27;10.1093/mnras/stt1971&#x27;, &#x27;http://dx.doi.org/10.1093/mnras/stt1971&#x27;, &#x27;&#x27;)'"
]
},
"execution_count": 104,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -517,18 +518,22 @@
},
{
"cell_type": "code",
"execution_count": 110,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"@article{tanintroduction,\n",
" title={Introduction of water-vapor broadening parameters and their temperature-dependence exponents into the HITRAN database, Part I: CO2, N2O, CO, CH4, O2, NH3, and H2S},\n",
" author={Tan, Y and Kochanov, RV and Rothman, LS and Gordon, IE},\n",
" journal={Journal of Geophysical Research: Atmospheres},\n",
" publisher={Wiley Online Library}\n",
"@article{recchi2013alpha,\n",
" title={The [$\\alpha$/Fe] ratios of very metal-poor stars within the integrated galactic initial mass function theory},\n",
" author={Recchi, S and Calura, F and Gibson, Brad K and Kroupa, P},\n",
" journal={Monthly Notices of the Royal Astronomical Society},\n",
" volume={437},\n",
" number={1},\n",
" pages={994--1008},\n",
" year={2013},\n",
" publisher={The Royal Astronomical Society}\n",
"}\n"
]
}
Expand Down Expand Up @@ -655,6 +660,13 @@
"bib = bib.getGScholar()\n",
"print(bib)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -673,10 +685,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

21 changes: 21 additions & 0 deletions pyref/pyref/local_settings-TEMPLATE.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '<<< SECRET_KEY >>>'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ADS_TOKEN = '<<< ADS_TOKEN >>>'

ALLOWED_HOSTS = []

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '<<< DATABASE NAME >>>',
'USER': '<<< DATABASE USER >>>',
'PASSWORD': '<<< DATABASE USER PASSWORD >>>',
'HOST': '',
'PORT': '',
}
}

0 comments on commit 98bcb0d

Please sign in to comment.