Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-newsbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebU
shared
django-newsbox
Commits
c7e271be
Commit
c7e271be
authored
6 years ago
by
Alexis Clément
Browse files
Options
Downloads
Patches
Plain Diff
Modification of classes inheritance in README.md
parent
3578eb59
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
README.md
+5
-5
5 additions, 5 deletions
README.md
with
6 additions
and
5 deletions
AUTHORS
+
1
−
0
View file @
c7e271be
* Webu (webu.coop) https://github.com/webu
* Webu (webu.coop) https://github.com/webu
* Dylann CORDEL <d.cordel@webu.coop> https://github.com/dylannCordel
* Dylann CORDEL <d.cordel@webu.coop> https://github.com/dylannCordel
* Olivier Le Brouster <o.lebrouster@webu.coop>
* Olivier Le Brouster <o.lebrouster@webu.coop>
* Alexis CLEMENT <a.clement@webu.coop> https://github.com/herawo
This diff is collapsed.
Click to expand it.
README.md
+
5
−
5
View file @
c7e271be
...
@@ -28,8 +28,9 @@ newsbox_i18n, add those too.
...
@@ -28,8 +28,9 @@ newsbox_i18n, add those too.
For basic news, you just have to inherit from NewsboxCMSBase :
For basic news, you just have to inherit from NewsboxCMSBase :
from newsbox_cms.models import NewsboxCMSBase
from newsbox_cms.models import NewsboxCMSBase
from newsbox.models import NewsboxBase
class News(NewsboxCMSBase):
class News(NewsboxCMSBase
, NewsboxBase
):
class Meta:
class Meta:
newsbox_detail_url_name = "news_detail" # optional
newsbox_detail_url_name = "news_detail" # optional
...
@@ -64,18 +65,17 @@ For the plugin, you just have to inherit from NewsboxPluginBase :
...
@@ -64,18 +65,17 @@ For the plugin, you just have to inherit from NewsboxPluginBase :
newsbox_model = News
newsbox_model = News
### cms_app.py
### cms_app
s
.py
Nothing special here. Just create your basic cms app :
Nothing special here. Just create your basic cms app :
from cms.app_base import CMSApp
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from cms.apphook_pool import apphook_pool
@apphook_pool.register
class NewsApphook(CMSApp):
class NewsApphook(CMSApp):
name = _("News")
name = _("News")
urls = ["myproject.news_urls"]
urls = ["myproject.news_urls"]
apphook_pool.register(NewsApphook)
### news_urls.py
### news_urls.py
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment