This repository has been archived by the owner on May 21, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added django-registration as an AppHook example. It shows how theoret…
…ically any Django app can be used in CMS.
- Loading branch information
Showing
5 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
from cms.app_base import CMSApp | |||
from cms.apphook_pool import apphook_pool | |||
from django.utils.translation import ugettext_lazy as _ | |||
|
|||
class RegistrationApp(CMSApp): | |||
name = _("Registration") # give your app a name, this is required | |||
urls = ["registration.backends.default.urls"] # link your app to url configuration(s) | |||
|
|||
apphook_pool.register(RegistrationApp) # register your app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
{% extends "template_1.html" %} | |||
|
|||
{% block base_content %} | |||
<form action="">{% csrf_token %} | |||
{{ form.as_p }} | |||
<input type="submit" value="Submit"> | |||
</form> | |||
{% endblock base_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters