Code Monkey home page Code Monkey logo

pubz's People

Contributors

bunkicao avatar dependabot[bot] avatar getty708 avatar getty708-review avatar shinyaaa avatar umineko1339 avatar whx1994hans avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pubz's Issues

Topページに表示される業績リスト

Bug

2021/01/22にサイトにアクセスしたら,検索条件が2021年度になっており.2020年度のデータが表示されなかった.

修正方針

  • 1 ~ 3月: 今年度の業績 (4月 ~ 3月分)

bibtexのauthorに"}"がない

@inproceedings{id_1458,
  title     = {Monitoring Range Motif on Streaming Time-Series},
  author    = {Shinya Kato,Daichi Amagata,Shunya Nishio,Takahiro Hara,,
  booktitle = {in Proceedings of International Conference on Database and Expert Systems Applications},
  pages     = {251-266},
  month      = {9},
  year      = {2018},
}

DBのパスワードの設定

  • .env ファイルにパスワードを移す必要がありそう.
  • またすでにデータ入力が住んでいる場合は,コンソールからパスワードの変更が必要

BugfixRequest: Forms

  1. Bookの詳細ページから,編集ページがひらけない. 編集リンクが欲しい.

DB Error

When you merge the update of models (maybe Tag or Bibtex ), sometimes the error like bellow occurs.
This error is related to DB migrations.

ProgrammingError at /dashboard/
(1146, "Table 'docker.core_bibtex' doestn't exist")

Deployment: WSGサーバの整備

目的

  • 自家サーバで アプリケーションをproductionモードでてデプロイする.
  • 可能な限りdocker-compose でモデルを展開する.

Todo

  • WSGI サーバとの用意
  • Let's encryptの準備

参考

Workshopの扱い

関連する国際会議にまとめる? or 独立したエントリとして作成?

Owner is no registured when add objects from REST API

Bugfix Ruest

When you create new objects via REST API, owner fields are missing, This is because REST owner should be added after make objects.

Modifiy here,

add create method to book and author

[Bug] 入力フォームのエラーハンドリング (AuthroOrder)

AuthorOrderの数字の入力に関してエラーが生じている?

[20/Aug/2020 16:38:19] "GET /static/js/tether/dist/js/tether.min.js HTTP/1.1" 404 1720
[20/Aug/2020 16:38:26] "GET /core/edit/9843/ HTTP/1.1" 200 19577
[20/Aug/2020 16:38:26] "GET /static/js/tether/dist/js/tether.min.js HTTP/1.1" 404 1720
GET
Internal Server Error: /core/author/order/add
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/code/core/views_edit.py", line 193, in author_order_edit
    'submit_url': submit_url})
  File "/usr/local/lib/python3.7/site-packages/django/shortcuts.py", line 36, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/usr/local/lib/python3.7/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python3.7/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 993, in render
    return render_value_in_context(output, context)
  File "/usr/local/lib/python3.7/site-packages/django/template/base.py", line 972, in render_value_in_context
    value = str(value)
  File "/usr/local/lib/python3.7/site-packages/django/utils/html.py", line 388, in <lambda>
    klass.__str__ = lambda self: mark_safe(klass_str(self))
  File "/usr/local/lib/python3.7/site-packages/django/forms/boundfield.py", line 33, in __str__
    return self.as_widget()
  File "/usr/local/lib/python3.7/site-packages/django/forms/boundfield.py", line 93, in as_widget
    renderer=self.form.renderer,
  File "/usr/local/lib/python3.7/site-packages/django/forms/widgets.py", line 241, in render
    context = self.get_context(name, value, attrs)
  File "/usr/local/lib/python3.7/site-packages/django/forms/widgets.py", line 678, in get_context
    context = super().get_context(name, value, attrs)
  File "/usr/local/lib/python3.7/site-packages/django/forms/widgets.py", line 639, in get_context
    context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)
  File "/usr/local/lib/python3.7/site-packages/django/forms/widgets.py", line 587, in optgroups
    for index, (option_value, option_label) in enumerate(self.choices):
  File "/usr/local/lib/python3.7/site-packages/django/forms/models.py", line 1138, in __iter__
    yield self.choice(obj)
  File "/usr/local/lib/python3.7/site-packages/django/forms/models.py", line 1150, in choice
    return (self.field.prepare_value(obj), self.field.label_from_instance(obj))
  File "/usr/local/lib/python3.7/site-packages/django/forms/models.py", line 1216, in label_from_instance
    return str(obj)
TypeError: __str__ returned non-string (type NoneType)
[20/Aug/2020 16:38:30] "GET /core/author/order/add?bibtex=9843 HTTP/1.1" 500 210933
netwg@web2:~/Codes/PubZ$
netwg@web2:~/Codes/PubZ$

titleの統合

目的

  • 現在言語によってBibtexのタイトルを分けて登録している.( title_en, title_ja )

  • データ入力の際に言語の選択と食い違うことがあり,表示が崩れる原因となる.

  • primaryのタイトルと,secondaryのタイトルに 置き換える.

  • またこれに合わせて,モデルのタイポを修正する.

Todo

  • Bibtexモデルにtitle, title_2nd_lang を追加
  • テンプレートの修正
  • title_en, title_ja の変更
  • abstruct ==> abstract

注意

  • この変更は破壊的な変更になるので,実行には注意が必要.

Method to access ManyToMany attribute

For ManyToMany attribute such as author and tags in Bibtex, we can access the record by all() method.

// tag_name is the name attribute of the 1st tag combines to 1st Bibtex 
bibtex = Bibtex.objects.order_by('-pub_date')
tag_name = bibtex[0].tags.all()[0].name

データのExport/Import機能の実装

目的

  • 登録したBibtexのデータをCSV形式などで出力できるようにする.
  • Major Version UpやSecretの更新の際に,データベースを作り直せるようにする.

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.