Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-academic-community is a representation of an academic community on the web using Django.

Some more documentation is in the “docs” directory, but we are working on improving this.

Quick start for development

  1. You need at least python 3.7, postgres and pip installed

  2. Clone this repository:

    git clone https://gitlab.hzdr.de/hcdc/django/django-academic-community.git
    cd django-academic-communty
  3. Install the packages (in development mode):

    pip install .[dev]
  1. By default, we assume that there exists a django_academic_community database that is writeable for a user name django_academic_user with password admin. But you can change this with environment variables (see settings.py). Run:

    python manage.py migrate

    to setup the database.

  2. Install the packages for the JS and CSS files:

    npm install
  3. Build the JS and CSS files:

    make css
    make js
  4. Create a superuser via:

    python manage.py createsuperuser
  5. Run the local development server via:

    python manage.py runserver

    Open the topic browser at http://127.0.0.1:8000/topics, and the admin site at http://127.0.0.1:8000/admin

Building the docs

There is some static files generated via sphinx, together with an API documentation. The source code for this documentation is in the docs folder. If you installed this package with the above pip install command, you already have everything you need. The only thing that you should have installed already is graphviz (e.g. via conda install graphviz).

Navigate to the docs folder and run make html (on linux) or make.bat html on windows and open the file at docs/_build/html/index.html in your browser.

Some of the documentation in this content is also available through the admin docs. When you run the server (python manage.py runserver), navigate to the docs under http://127.0.0.1:8000/admin/docs.

Note that there is still a lot to work on for the documentation, so in case you are missing something, please do not hesitate to ask.

Running the tests

Just run tox (you installed it with pip install .[dev]). Note that you will need a running postgres server and a user with the rights to create a new postgres database.

Contributing

We are working on a more detailed contributing guide, but here is the short version:

When you want to contribute to the code, please do clone the source code repository and install it with the [dev] extra, i.e.

git clone https://gitlab.hzdr.de/hcdc/django/clm-community/django-academic-community/
cd django-academic-community
pip install -e .[dev]

We use automated formatters (see their config in pyproject.toml and setup.cfg), namely

  • Black for standardized code formatting

  • blackdoc for standardized code formatting in documentation

  • Flake8 for general code quality

  • isort for standardized order in imports.

  • mypy for static type checking on type hints

We highly recommend that you setup pre-commit hooks to automatically run all the above tools every time you make a git commit. This can be done by running

pre-commit install

from the root of the repository. You can skip the pre-commit checks with git commit --no-verify but note that the CI will fail if it encounters any formatting errors.

You can also run the pre-commit step manually by invoking

pre-commit run --all-files

Metadata

Release files for django-academic-community 0.0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-academic-community 0.0.1.dev0
File Size Uploaded Provenance Actions
django-academic-community-0.0.1.dev0.tar.gz 827.5 kB Without provenance Details for django-academic-community-0.0.1.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-academic-community 0.0.1.dev0
File Interpreter ABI Platform Actions
django_academic_community-0.0.1.dev0-py3-none-any.whl Python 3 none any Details for django_academic_community-0.0.1.dev0-py3-none-any.whl

Total release size: 2.2 MB

Release files / django-academic-community-0.0.1.dev0.tar.gz

Download URL django-academic-community-0.0.1.dev0.tar.gz
Size 827.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ee24c27fc67543c23c8f44069fb79f18bd0cb0b5d7389279015347ad12efa2de
BLAKE2b-256 checksum
How to use checksums
ab9746b2a2f40c25565e869baafeb7f29407da1fe690863e6e7cd25699e47454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / django_academic_community-0.0.1.dev0-py3-none-any.whl

Download URL django_academic_community-0.0.1.dev0-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3716ec459184006644f608f0ac0dd0a7dbd729ea5b123ca76315fd3b258e5653
BLAKE2b-256 checksum
How to use checksums
022cb4b72d8e2d4b9690230bbdbd9b0f946a94601361b82fb054e416d79f5b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for django-academic-community 0.0.1.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page