Commit Graph

10 Commits

Author SHA1 Message Date
Anand Chitipothu
b8b7673985 fix: added a work-around to the issue of regex converter not loaded.
frappe app doesn't load all python modules of all the apps on startup. It
loads the hooks.py only if it is not already cached. Because of this the code
to install the regex coverter to not running, causing errors.

Fixed it by replacing the regex route with a string route. The issue is it
also matches the paths like `socket.io` and `website_script.js` etc. Handled
that by whitelisting those routes.
2021-04-07 12:41:17 +05:30
Anand Chitipothu
15b8b99ae2 fix: fixed the issue with dynamic routes.
- The code to install regex controller was not always executed. Forced the
  exection of that by adding it to community/__init__.py
- Renoved the that code from hooks.py
2021-04-07 01:40:13 +05:30
Anand Chitipothu
a3788a0f39 refactor: added nice urls for sketches.
- Sketches will be available at `/sketches/<sketch-id>`
2021-04-06 18:36:07 +05:30
Anand Chitipothu
06f7698e8f refactor: added custom routing for profiles
- installed a regex conveter to werkzeug to support regular expresions in routes
- added a website route rule to match all profiles
2021-04-06 18:07:05 +05:30
Anand Chitipothu
e42e00f83a Added nice urls to sketch pages.
The URL of a sketch will be `/skectes/<sketch-name>`. That would still be like
`/skectes/SKETCH-123`. It would interesting to try to make it `/sketches/123`.
2021-04-06 18:07:05 +05:30
Anand Chitipothu
53af969a2e Added nice URLs to course and topic pages.
The URL of a course will be `/courses/<course-name>` and a topic will be
`/courses/<course-name>/<topic-name>`.

Implemented this by adding entries to `website_route_rules`.
2021-04-06 18:07:05 +05:30
pateljannat
bf789c1891 feat: emails on messages 2021-03-31 10:48:23 +05:30
pateljannat
25a0dd02ac feat: community member for profile and edit profile form 2021-03-12 12:22:12 +05:30
pateljannat
acea59767d feat: course enrollment and my courses page 2021-03-03 17:44:46 +05:30
pateljannat
994ab1a42c feat: Initialize App 2021-02-12 15:10:30 +05:50