mbourqui / django-publications-bootstrap Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lucastheis/django-publications
A Django app for managing scientific publications.
License: MIT License
This project forked from lucastheis/django-publications
A Django app for managing scientific publications.
License: MIT License
Do not forget to also update the generated citations.
Replace in-code OrderedModel
and OrderedModelAdmin
with django-ordered-model.
Check that the templates are working fine with the latest stable release of Bootstrap v4.
Mainly for IEEE styles.
#5 must be resolved first.
When setting up the application I am getting a error
ERRORS:
publications_bootstrap.Publication.citekey: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
Te serve database I use mariadb-server-10.1
traceback.txt
v4.0.0-beta
card-block
--> card-body
Also depends on type of publication
order_by
does not account for publications already having a citekey.The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
Use translations to support several languages
While hidden publications do not appear in the 'year' view, they do appear in all other views. This defeats the purpose of them being "hidden".
Submitted by @AlexWillison, original issue: lucastheis/issues/38
django.template.exceptions.TemplateDoesNotExist: publications/publication.bib
Maybe something like https://research.google.com/pubs/AlgorithmsandTheory.html
Use pre_save(). Note: raw=True
since save() is not called.
Django 2.1 no longer allows to use fields multiple times in the fieldsets. Running manage.py check
will raise an error for this.
Hi, I'd love to try this out. What I did:
mkvirtualenv djangoTestPublicationsBootstrap
pip install django-publications-bootstrap
mkdir publicationsBootstrap
cd publicationsBootstrap
django-admin startproject test
django-admin startproject testPublications
cd testPublications
# did the changes to settings.py and url.py
./manage.py migrate publications_bootstrap
Traceback (most recent call last):
File "./manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/django/core/management/__init__.py", line 347, in execute
django.setup()
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/django/apps/registry.py", line 112, in populate
app_config.import_models()
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/publications_bootstrap/models/__init__.py", line 4, in <module>
from .catalog import Catalog
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/publications_bootstrap/models/catalog.py", line 4, in <module>
from .publication import Publication
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/publications_bootstrap/models/publication.py", line 20, in <module>
class Publication(models.Model):
File "/home/myuser/Envs/djangoTestPublicationsBootstrap/lib/python3.6/site-packages/publications_bootstrap/models/publication.py", line 55, in Publication
type = models.ForeignKey(Type, db_index=True)
TypeError: __init__() missing 1 required positional argument: 'on_delete'
No idea what the problem is. And by the way, I think it should be "Add publications_bootstrap", not "Add publications-bootstrap"
My packages:
pip freeze
Django==2.0.4
django-countries==5.3
django-echoices==2.2.5
django-ordered-model==1.4.3
django-publications-bootstrap==2.2.2
Pillow==5.1.0
pytz==2018.4
six==1.11.0
This project may come in handy:
https://github.com/secnot/django-isbn-field
Instead of just listing publications, also add picture, small bio, etc.
Without having to call up a view.
Traceback (most recent call last):
File "publications_bootstrap/tests/main.py", line 17, in
sys.exit(DiscoverRunner(verbosity=1).run_tests(['publications_bootstrap']))
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/test/runner.py", line 602, in run_tests
self.run_checks()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/test/runner.py", line 562, in run_checks
call_command('check', verbosity=self.verbosity)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/core/management/init.py", line 130, in call_command
return command.execute(*args, **defaults)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/core/management/commands/check.py", line 68, in handle
fail_level=getattr(checks, options['fail_level']),
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/django/core/management/base.py", line 405, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS:
?: (admin.E402) 'django.contrib.auth.context_processors.auth' must be in TEMPLATES in order to use the admin application.
Bootstrap v3 is still used by many sites, especially those already in production before the release of v4. Would be nice to support both.
Allow to embed (short) publications outside of the app. For example, on the host project's main page. Should only contain minimal content in a compact layout, without any interactions:
Could be a templatetag, with selectable output format (if #5 is resolved).
Embeded publication should still be able to be exportable. May also be optional.
Maybe a link to the full publication details page.
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.