giant-events


Namegiant-events JSON
Version 0.2.8.1 PyPI version JSON
download
home_pagehttps://github.com/giantmade/giant-events
SummaryA small reusable package that adds an Events app to a project
upload_time2023-03-22 15:53:26
maintainer
docs_urlNone
authorWill-Hoey
requires_python>=3.6.2,<4.0.0
licenseMIT
keywords events app
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Giant Events

A re-usable package which can be used in any project that requires a generic `Events` app. 

This will include the basic formatting and functionality such as model creation via the admin.

## Installation

To install with the package manager, run:

    $ poetry add giant-events

You should then add `"events", "easy_thumbnails" and "filer"` to the `INSTALLED_APPS` in `base.py`.  


## Configuration

This application exposes the following settings:

- `EVENT_ADMIN_LIST_DISPLAY` is the field list for the admin index. This must be a list
- `EVENT_ADMIN_FIELDSETS` allows the user to define the admin fieldset. This must be a list of two-tuples
- `EVENT_ADMIN_READONLY_FIELDS` allows the user to configure readonly fields in the admin. This must be a list
- `EVENT_ADMIN_SEARCH_FIELDS` allows the user to configure search fields in the admin. This must be a list
- `EVENT_ADMIN_FILTER_FIELDS` allows the user to configure filter fields in the admin. This must be a list

By default the app will use the templates that are defined inside the app directory itself. However if you wish to override which template is used you will need to create a directory in the projects template directory
The structure should look something like this:

```
templates/
    events/
        index.html
        detail.html
```



## URLs

Add the following to `core.urls` for general functionality:

    path("events/", include("events.urls"), name="events"),

If you want to customize the urls to include a different path and/or templates, first you must import `from events import views as event_views` in `core.urls` and then you could add the following:

    path("events/", event_views.EventIndex.as_view(template_name="event/index.html"), name="event-index"),
    path("events/<slug:slug>/", event_views.EventDetail.as_view(template_name="event/detail.html"), name="event-detail"),
 
 ## Preparing for release
 
 In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the `pyproject.toml`.
 This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.
 
 ## Publishing
 
 Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.
 
    $ `poetry build` 

will package the project up for you into a way that can be published.
 
    $ `poetry publish`

will publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/giantmade/giant-events",
    "name": "giant-events",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.2,<4.0.0",
    "maintainer_email": "",
    "keywords": "events,app",
    "author": "Will-Hoey",
    "author_email": "will.hoey@giantmade.com",
    "download_url": "https://files.pythonhosted.org/packages/2f/50/8383ce3ded0c812876ea480e72041354b98a2c6ed102510d60bf6328ae64/giant-events-0.2.8.1.tar.gz",
    "platform": null,
    "description": "# Giant Events\n\nA re-usable package which can be used in any project that requires a generic `Events` app. \n\nThis will include the basic formatting and functionality such as model creation via the admin.\n\n## Installation\n\nTo install with the package manager, run:\n\n    $ poetry add giant-events\n\nYou should then add `\"events\", \"easy_thumbnails\" and \"filer\"` to the `INSTALLED_APPS` in `base.py`.  \n\n\n## Configuration\n\nThis application exposes the following settings:\n\n- `EVENT_ADMIN_LIST_DISPLAY` is the field list for the admin index. This must be a list\n- `EVENT_ADMIN_FIELDSETS` allows the user to define the admin fieldset. This must be a list of two-tuples\n- `EVENT_ADMIN_READONLY_FIELDS` allows the user to configure readonly fields in the admin. This must be a list\n- `EVENT_ADMIN_SEARCH_FIELDS` allows the user to configure search fields in the admin. This must be a list\n- `EVENT_ADMIN_FILTER_FIELDS` allows the user to configure filter fields in the admin. This must be a list\n\nBy default the app will use the templates that are defined inside the app directory itself. However if you wish to override which template is used you will need to create a directory in the projects template directory\nThe structure should look something like this:\n\n```\ntemplates/\n    events/\n        index.html\n        detail.html\n```\n\n\n\n## URLs\n\nAdd the following to `core.urls` for general functionality:\n\n    path(\"events/\", include(\"events.urls\"), name=\"events\"),\n\nIf you want to customize the urls to include a different path and/or templates, first you must import `from events import views as event_views` in `core.urls` and then you could add the following:\n\n    path(\"events/\", event_views.EventIndex.as_view(template_name=\"event/index.html\"), name=\"event-index\"),\n    path(\"events/<slug:slug>/\", event_views.EventDetail.as_view(template_name=\"event/detail.html\"), name=\"event-detail\"),\n \n ## Preparing for release\n \n In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the `pyproject.toml`.\n This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.\n \n ## Publishing\n \n Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.\n \n    $ `poetry build` \n\nwill package the project up for you into a way that can be published.\n \n    $ `poetry publish`\n\nwill publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A small reusable package that adds an Events app to a project",
    "version": "0.2.8.1",
    "split_keywords": [
        "events",
        "app"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "315ee82bfee4a558c2f806f0476e4a1c88ec062ddfc97c9e13e420c26a778be1",
                "md5": "978d41de4a45bbb9c85926f3e0c56f44",
                "sha256": "3aad42ccf0ab0b07b99f0803e7b057b0608c7e01a1bb977d4ef4815078897153"
            },
            "downloads": -1,
            "filename": "giant_events-0.2.8.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "978d41de4a45bbb9c85926f3e0c56f44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6.2,<4.0.0",
            "size": 15538,
            "upload_time": "2023-03-22T15:53:29",
            "upload_time_iso_8601": "2023-03-22T15:53:29.151858Z",
            "url": "https://files.pythonhosted.org/packages/31/5e/e82bfee4a558c2f806f0476e4a1c88ec062ddfc97c9e13e420c26a778be1/giant_events-0.2.8.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f508383ce3ded0c812876ea480e72041354b98a2c6ed102510d60bf6328ae64",
                "md5": "816456ea862b2f906dfe2c580d7340c9",
                "sha256": "82b1f537f40938055fc71634df1f3d4b91f6d8a2dc30f65fd29103a51f514020"
            },
            "downloads": -1,
            "filename": "giant-events-0.2.8.1.tar.gz",
            "has_sig": false,
            "md5_digest": "816456ea862b2f906dfe2c580d7340c9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.2,<4.0.0",
            "size": 10536,
            "upload_time": "2023-03-22T15:53:26",
            "upload_time_iso_8601": "2023-03-22T15:53:26.174353Z",
            "url": "https://files.pythonhosted.org/packages/2f/50/8383ce3ded0c812876ea480e72041354b98a2c6ed102510d60bf6328ae64/giant-events-0.2.8.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-22 15:53:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "giantmade",
    "github_project": "giant-events",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "giant-events"
}
        
Elapsed time: 0.04706s