Giter Club home page Giter Club logo

django-publications-bootstrap's People

Contributors

aleray avatar gjstein avatar jlelli avatar linkid avatar lucastheis avatar mbourqui avatar peterisp avatar vdboor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-publications-bootstrap's Issues

Add more bibtex fields

  • school (for theses)
  • editor
  • organization (for conferences)

Do not forget to also update the generated citations.

Mysql Error

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

Support output styles

  • ACM
  • MLA
  • APA
  • Chicago
  • And many more
  • Custom style

Also depends on type of publication

Citekey generation fails if publication w/ month follow publication w/out month

  • Publication without month (thus NULL) are listed before publications with month. Roughly, if a publication with month is saved after a publication without month, the publication with month will get the same citekey as the previous publication.
  • Also, when fetching the publications, the order_by does not account for publications already having a citekey.

Initial Update

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.

Multilingual

Use translations to support several languages

  • Publication
  • PublicationFile
  • PublicationLink
  • Type
  • Catalog
  • Citation
  • PublicationAdmin
  • TypeAdmin
  • CatalogAdmin
  • templates/admin
  • templates/frontend
  • Admin views

Unable to set up

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

Support Django 1.11

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.

Support Bootstrap 3

Bootstrap v3 is still used by many sites, especially those already in production before the release of v4. Would be nice to support both.

Embed publications

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:

  • title
  • authors
  • publishing data

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.

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.