getty708 / pubz Goto Github PK
View Code? Open in Web Editor NEWPublication Management System
License: MIT License
Publication Management System
License: MIT License
2021/01/22にサイトにアクセスしたら,検索条件が2021年度になっており.2020年度のデータが表示されなかった.
タイトルのprimaryとsecondaryを入れ替えたあたりで問題が起きたのか?
@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},
}
サイト名をHaraLabとかに変えたいよね
.env
ファイルにパスワードを移す必要がありそう.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")
関連する国際会議にまとめる? or 独立したエントリとして作成?
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,
PubZ/django/app/api/serializers.py
Line 57 in e512874
PubZ/django/app/api/serializers.py
Line 83 in e512874
add create
method to book and author
PubZ/django/app/api/serializers.py
Line 36 in e512874
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$
会議のプロシーディングの巻頭辞などは,一般 (others)扱い.
個別にBookを作るより,Bookのtypeを完全にオーバーライドできるようにした方が良いかもしれない.
http://www-nishio.ist.osaka-u.ac.jp/Pub/pman3/pman3.cgi?D=1921
python manage.py makemigrations core users
現在
修正案
現在言語によってBibtexのタイトルを分けて登録している.( title_en
, title_ja
)
データ入力の際に言語の選択と食い違うことがあり,表示が崩れる原因となる.
primaryのタイトルと,secondaryのタイトルに 置き換える.
またこれに合わせて,モデルのタイポを修正する.
title
, title_2nd_lang
を追加title_en
, title_ja
の変更メモはTextFieldに変えた方が良いのではないか?
Line 152 in e71156f
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
In the current deployment, media directory is made inside of containers.
We need to Update this as PV
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.